[ARVADOS] updated: 91d83dc26c64bb0eff00e1c73e284a2dacafc840

git at public.curoverse.com git at public.curoverse.com
Tue Aug 5 10:25:09 EDT 2014


Summary of changes:
 apps/workbench/app/views/users/_profile.html.erb   | 13 +++++++----
 apps/workbench/config/application.default.yml      | 27 ++++++++++++++++++++++
 .../test/integration/pipeline_templates_test.rb    | 15 ++++++++++++
 doc/_includes/_tutorial_expectations.liquid        |  2 +-
 .../check-environment.html.textile.liquid          |  2 +-
 5 files changed, 53 insertions(+), 6 deletions(-)
 create mode 100644 apps/workbench/test/integration/pipeline_templates_test.rb

       via  91d83dc26c64bb0eff00e1c73e284a2dacafc840 (commit)
       via  dd89205a44c5eae19b830c3f48ff4852bc81a047 (commit)
       via  14878e2c9e384381b5797c644570d5e19718ed5c (commit)
       via  ba74da924cccb098e3cc0dc4f5c44c1666395795 (commit)
      from  b3d92b09ab0e06c1719d541d4704ec89113ee3cd (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 91d83dc26c64bb0eff00e1c73e284a2dacafc840
Merge: 14878e2 dd89205
Author: radhika <radhika at curoverse.com>
Date:   Tue Aug 5 10:10:14 2014 -0400

    Merge branch 'master' into 3296-user-profile


commit 14878e2c9e384381b5797c644570d5e19718ed5c
Author: radhika <radhika at curoverse.com>
Date:   Tue Aug 5 10:07:38 2014 -0400

    3296: add comments to applicaiton.defaults.yml describing the user_profile_form_fields configuration parameter.

diff --git a/apps/workbench/app/views/users/_profile.html.erb b/apps/workbench/app/views/users/_profile.html.erb
index 47bb9b1..33e0292 100644
--- a/apps/workbench/app/views/users/_profile.html.erb
+++ b/apps/workbench/app/views/users/_profile.html.erb
@@ -7,6 +7,11 @@
         </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| %>
               <% 
@@ -16,11 +21,11 @@
               %>
                 <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>
@@ -28,7 +33,7 @@
                       </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 %>
@@ -37,7 +42,7 @@
 
                 <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>
 
diff --git a/apps/workbench/config/application.default.yml b/apps/workbench/config/application.default.yml
index eea16c0..5c6d6f1 100644
--- a/apps/workbench/config/application.default.yml
+++ b/apps/workbench/config/application.default.yml
@@ -75,4 +75,31 @@ common:
   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

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list