replace tabs to spaces and remove trailing white-spaces at app/views/users/_form.html.erb

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7260 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-09-16 23:55:07 +00:00
parent 420f10ee49
commit 205369616a
1 changed files with 29 additions and 29 deletions

View File

@ -4,46 +4,46 @@
<!--[form:user]--> <!--[form:user]-->
<div class="splitcontentleft"> <div class="splitcontentleft">
<fieldset class="box tabular"> <fieldset class="box tabular">
<legend><%=l(:label_information_plural)%></legend> <legend><%=l(:label_information_plural)%></legend>
<p><%= f.text_field :login, :required => true, :size => 25 %></p> <p><%= f.text_field :login, :required => true, :size => 25 %></p>
<p><%= f.text_field :firstname, :required => true %></p> <p><%= f.text_field :firstname, :required => true %></p>
<p><%= f.text_field :lastname, :required => true %></p> <p><%= f.text_field :lastname, :required => true %></p>
<p><%= f.text_field :mail, :required => true %></p> <p><%= f.text_field :mail, :required => true %></p>
<p><%= f.select :language, lang_options_for_select %></p> <p><%= f.select :language, lang_options_for_select %></p>
<% if Setting.openid? %> <% if Setting.openid? %>
<p><%= f.text_field :identity_url %></p> <p><%= f.text_field :identity_url %></p>
<% end %> <% end %>
<% @user.custom_field_values.each do |value| %> <% @user.custom_field_values.each do |value| %>
<p><%= custom_field_tag_with_label :user, value %></p> <p><%= custom_field_tag_with_label :user, value %></p>
<% end %> <% end %>
<p><%= f.check_box :admin, :disabled => (@user == User.current) %></p> <p><%= f.check_box :admin, :disabled => (@user == User.current) %></p>
<%= call_hook(:view_users_form, :user => @user, :form => f) %> <%= call_hook(:view_users_form, :user => @user, :form => f) %>
</fieldset> </fieldset>
<fieldset class="box tabular"> <fieldset class="box tabular">
<legend><%=l(:label_authentication)%></legend> <legend><%=l(:label_authentication)%></legend>
<% unless @auth_sources.empty? %> <% unless @auth_sources.empty? %>
<p><%= f.select :auth_source_id, ([[l(:label_internal), ""]] + @auth_sources.collect { |a| [a.name, a.id] }), {}, :onchange => "if (this.value=='') {Element.show('password_fields');} else {Element.hide('password_fields');}" %></p> <p><%= f.select :auth_source_id, ([[l(:label_internal), ""]] + @auth_sources.collect { |a| [a.name, a.id] }), {}, :onchange => "if (this.value=='') {Element.show('password_fields');} else {Element.hide('password_fields');}" %></p>
<% end %> <% end %>
<div id="password_fields" style="<%= 'display:none;' if @user.auth_source %>"> <div id="password_fields" style="<%= 'display:none;' if @user.auth_source %>">
<p><%= f.password_field :password, :required => true, :size => 25 %><br /> <p><%= f.password_field :password, :required => true, :size => 25 %><br />
<em><%= l(:text_caracters_minimum, :count => Setting.password_min_length) %></em></p> <em><%= l(:text_caracters_minimum, :count => Setting.password_min_length) %></em></p>
<p><%= f.password_field :password_confirmation, :required => true, :size => 25 %></p> <p><%= f.password_field :password_confirmation, :required => true, :size => 25 %></p>
</div> </div>
</fieldset> </fieldset>
</div> </div>
<div class="splitcontentright"> <div class="splitcontentright">
<fieldset class="box"> <fieldset class="box">
<legend><%=l(:field_mail_notification)%></legend> <legend><%=l(:field_mail_notification)%></legend>
<%= render :partial => 'users/mail_notifications' %> <%= render :partial => 'users/mail_notifications' %>
</fieldset> </fieldset>
<fieldset class="box tabular"> <fieldset class="box tabular">
<legend><%=l(:label_preferences)%></legend> <legend><%=l(:label_preferences)%></legend>
<%= render :partial => 'users/preferences' %> <%= render :partial => 'users/preferences' %>
</fieldset> </fieldset>
</div> </div>
</div> </div>