Mercurial > hg > soundsoftware-site
comparison app/views/users/_form.rhtml @ 107:361f1e8b2e23 luisf
Feature #1:
Fixed the collection_select variable issue
User edit view: removed wiki toolbar and description from the description text area in the user;
User edit view: added institutions collection select;
User show view: institution name now visible.
Users_controller: fixed a bug retrieving the institution name
author | luisf |
---|---|
date | Fri, 17 Dec 2010 11:18:51 +0000 |
parents | d9df68bf8907 |
children | e6ed6c7a2ce9 |
comparison
equal
deleted
inserted
replaced
106:f6ea6ffaaeeb | 107:361f1e8b2e23 |
---|---|
21 | 21 |
22 <div class="box tabular"> | 22 <div class="box tabular"> |
23 <h3><%=l(:label_ssamr_details)%></h3> | 23 <h3><%=l(:label_ssamr_details)%></h3> |
24 <% fields_for :ssamr_user_details, :builder => TabularFormBuilder, :lang => current_language do |ssamr_user_detail| %> | 24 <% fields_for :ssamr_user_details, :builder => TabularFormBuilder, :lang => current_language do |ssamr_user_detail| %> |
25 <p> | 25 <p> |
26 <%= ssamr_user_detail.text_area :description, :rows => 3, :cols => 40, :required => true, :class => 'wiki-edit' %> | 26 <%= ssamr_user_detail.text_area :description, :rows => 3, :cols => 40, :required => true, :class => 'wiki-edit' %> |
27 <%= wikitoolbar_for 'ssamr_user_details_description' %> | 27 </p> |
28 <br /> | 28 <p> |
29 <em> <%=l(:text_user_ssamr_description_info)%></em> | 29 <label for="ssamr_user_institution"><%=l(:label_ssamr_institution)%></label> |
30 <%= ssamr_user_detail.collection_select(:institution_id, Institution.all, :id, :name, {:selected => @user.ssamr_user_detail.institution_id.to_i} ) %> | |
30 </p> | 31 </p> |
31 <% end %> | 32 <% end %> |
32 </div> | 33 </div> |
33 | 34 |
34 | 35 |