</h4>
</div>
<div class="panel-body">
+ <div>
+ <p>You can manage your profile using this page.
+ Any feilds in <font style="color:red">red</font> are required and missing.
+ Please fill in those fields before you can accesse Arvados Workbench.</p><br/>
+ </div>
<div>
<%= form_tag update_profile_path, {method: 'get', id: 'save_profile_form', name: 'save_profile_form', class: 'form-horizontal', remote: true} do %>
<% @profile_config.andand.each do |entry| %>
%>
<div class="form-group">
<label for="<%=entry['key']%>"
- class="col-sm-2 control-label"
+ class="col-sm-3 control-label"
style=<%="color:red" if entry['required']&&!value%>> <%=label%>
</label>
<% if entry['type'] == 'select' %>
- <div class="col-sm-10">
+ <div class="col-sm-9">
<select class="form-control" id="<%=entry['key']%>" name="<%=entry['key']%>">
<% entry['options'].each do |option| %>
<option value="<%=option%>" <%='selected' if option==value%>><%=option%></option>
</select>
</div>
<% else %>
- <div class="col-sm-10">
+ <div class="col-sm-9">
<input type="text" class="form-control" id="<%=entry['key']%>" name="<%=entry['key']%>" placeholder="<%=entry['form_field_description']%>" value="<%=value%>" ></input>
</div>
<% end %>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
- <button type="submit" class="btn btn-default">Save profile</button>
+ <button type="submit" class="btn btn-primary">Save profile</button>
</div>
</div>
default_openid_prefix: https://www.google.com/accounts/o8/id
send_user_setup_notification_email: true
+ # Set user_profile_form_fields to enable and configure the user profile page.
+ # A commented setting with full description is provided below.
user_profile_form_fields: false
+
+ # Below is a sample setting of user_profile_form_fields.
+ # This sample configures two fields as represented by the attribute "key".
+ # You can specify "type" as "text" or "select".
+ # Specify "options" when using the type "select".
+ # Set "required" as "true" for any of the fields to make them required.
+ # If any of the required fields are missing in the user's profile, the user will be
+ # redirected to the "/profile" page before they can access any Workbench features.
+ #user_profile_form_fields:
+ # - key: organization
+ # type: text
+ # form_field_title: Institution/Company
+ # form_field_description: Your organization
+ # required: true
+ # - key: role
+ # type: select
+ # form_field_title: Your role
+ # form_field_description: Choose the category that best describes your role in your lab.
+ # options:
+ # - Bio-informatician
+ # - Computational biologist
+ # - Biologist or geneticist
+ # - Software developer
+ # - IT
+ # - Other