To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / .svn / pristine / b2 / b279683e40e793804fbad932586afda247f91b94.svn-base @ 1297:0a574315af3e
History | View | Annotate | Download (1.91 KB)
| 1 | 1296:038ba2d95de8 | Chris | <%= error_messages_for 'user' %> |
|---|---|---|---|
| 2 | |||
| 3 | <div id="user_form"> |
||
| 4 | <!--[form:user]--> |
||
| 5 | <div class="splitcontentleft"> |
||
| 6 | <fieldset class="box tabular"> |
||
| 7 | <legend><%=l(:label_information_plural)%></legend> |
||
| 8 | <p><%= f.text_field :login, :required => true, :size => 25 %></p> |
||
| 9 | <p><%= f.text_field :firstname, :required => true %></p> |
||
| 10 | <p><%= f.text_field :lastname, :required => true %></p> |
||
| 11 | <p><%= f.text_field :mail, :required => true %></p> |
||
| 12 | <p><%= f.select :language, lang_options_for_select %></p> |
||
| 13 | <% if Setting.openid? %> |
||
| 14 | <p><%= f.text_field :identity_url %></p> |
||
| 15 | <% end %> |
||
| 16 | |||
| 17 | <% @user.custom_field_values.each do |value| %> |
||
| 18 | <p><%= custom_field_tag_with_label :user, value %></p> |
||
| 19 | <% end %> |
||
| 20 | |||
| 21 | <p><%= f.check_box :admin, :disabled => (@user == User.current) %></p> |
||
| 22 | <%= call_hook(:view_users_form, :user => @user, :form => f) %> |
||
| 23 | </fieldset> |
||
| 24 | |||
| 25 | <fieldset class="box tabular"> |
||
| 26 | <legend><%=l(:label_authentication)%></legend> |
||
| 27 | <% unless @auth_sources.empty? %> |
||
| 28 | <p><%= f.select :auth_source_id, ([[l(:label_internal), ""]] + @auth_sources.collect { |a| [a.name, a.id] }), {}, :onchange => "if (this.value=='') {$('#password_fields').show();} else {$('#password_fields').hide();}" %></p>
|
||
| 29 | <% end %> |
||
| 30 | <div id="password_fields" style="<%= 'display:none;' if @user.auth_source %>"> |
||
| 31 | <p><%= f.password_field :password, :required => true, :size => 25 %> |
||
| 32 | <em class="info"><%= l(:text_caracters_minimum, :count => Setting.password_min_length) %></em></p> |
||
| 33 | <p><%= f.password_field :password_confirmation, :required => true, :size => 25 %></p> |
||
| 34 | </div> |
||
| 35 | </fieldset> |
||
| 36 | </div> |
||
| 37 | |||
| 38 | <div class="splitcontentright"> |
||
| 39 | <fieldset class="box"> |
||
| 40 | <legend><%=l(:field_mail_notification)%></legend> |
||
| 41 | <%= render :partial => 'users/mail_notifications' %> |
||
| 42 | </fieldset> |
||
| 43 | |||
| 44 | <fieldset class="box tabular"> |
||
| 45 | <legend><%=l(:label_preferences)%></legend> |
||
| 46 | <%= render :partial => 'users/preferences' %> |
||
| 47 | </fieldset> |
||
| 48 | </div> |
||
| 49 | </div> |
||
| 50 | <div style="clear:left;"></div> |
||
| 51 | <!--[eoform:user]--> |