##// END OF EJS Templates
Introduce virtual MenuNodes (#15880)....
Introduce virtual MenuNodes (#15880). They are characterized by having a blank url. they will only be rendered if the user is authorized to see at least one of its children. they render as links which do nothing when clicked. Patch by Jan Schulz-Hofen. git-svn-id: http://svn.redmine.org/redmine/trunk@15501 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r12416:e391be40866f
r15119:53710d80fc88
Show More
_form.html.erb
69 lines | 2.5 KiB | text/plain | TextLexer
Jean-Philippe Lang
Initial commit...
r2 <%= error_messages_for 'user' %>
Jean-Philippe Lang
Makes the user form look like account form....
r5052 <div id="user_form">
Jean-Philippe Lang
Initial commit...
r2 <!--[form:user]-->
Jean-Philippe Lang
Makes the user form look like account form....
r5052 <div class="splitcontentleft">
Jean-Philippe Lang
Replaced h3+div with fieldsets on my account and user form....
r6045 <fieldset class="box tabular">
Toshi MARUYAMA
replace tabs to spaces and remove trailing white-spaces at app/views/users/_form.html.erb...
r7140 <legend><%=l(:label_information_plural)%></legend>
<p><%= f.text_field :login, :required => true, :size => 25 %></p>
<p><%= f.text_field :firstname, :required => true %></p>
<p><%= f.text_field :lastname, :required => true %></p>
<p><%= f.text_field :mail, :required => true %></p>
Jean-Philippe Lang
Adds settings for disabling browser language detection and language preference (#2691)....
r12416 <% unless @user.force_default_language? %>
Toshi MARUYAMA
replace tabs to spaces and remove trailing white-spaces at app/views/users/_form.html.erb...
r7140 <p><%= f.select :language, lang_options_for_select %></p>
Jean-Philippe Lang
Adds settings for disabling browser language detection and language preference (#2691)....
r12416 <% end %>
Toshi MARUYAMA
replace tabs to spaces and remove trailing white-spaces at app/views/users/_form.html.erb...
r7140 <% if Setting.openid? %>
<p><%= f.text_field :identity_url %></p>
<% end %>
<% @user.custom_field_values.each do |value| %>
<p><%= custom_field_tag_with_label :user, value %></p>
<% end %>
<p><%= f.check_box :admin, :disabled => (@user == User.current) %></p>
<%= call_hook(:view_users_form, :user => @user, :form => f) %>
Jean-Philippe Lang
Replaced h3+div with fieldsets on my account and user form....
r6045 </fieldset>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330
Jean-Philippe Lang
Replaced h3+div with fieldsets on my account and user form....
r6045 <fieldset class="box tabular">
Toshi MARUYAMA
replace tabs to spaces and remove trailing white-spaces at app/views/users/_form.html.erb...
r7140 <legend><%=l(:label_authentication)%></legend>
<% unless @auth_sources.empty? %>
Jean-Philippe Lang
JQuery in, Prototype/Scriptaculous out (#11445)....
r9885 <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>
Toshi MARUYAMA
replace tabs to spaces and remove trailing white-spaces at app/views/users/_form.html.erb...
r7140 <% end %>
<div id="password_fields" style="<%= 'display:none;' if @user.auth_source %>">
Jean-Philippe Lang
Adds specific css class for information in forms....
r8634 <p><%= f.password_field :password, :required => true, :size => 25 %>
<em class="info"><%= l(:text_caracters_minimum, :count => Setting.password_min_length) %></em></p>
Toshi MARUYAMA
replace tabs to spaces and remove trailing white-spaces at app/views/users/_form.html.erb...
r7140 <p><%= f.password_field :password_confirmation, :required => true, :size => 25 %></p>
Jean-Philippe Lang
Option to force a user to change his password (#3872)....
r11851 <p><%= f.check_box :generate_password %></p>
<p><%= f.check_box :must_change_passwd %></p>
Toshi MARUYAMA
replace tabs to spaces and remove trailing white-spaces at app/views/users/_form.html.erb...
r7140 </div>
Jean-Philippe Lang
Replaced h3+div with fieldsets on my account and user form....
r6045 </fieldset>
Jean-Philippe Lang
Makes the user form look like account form....
r5052 </div>
Eric Davis
Allow admins to edit user's email notifications and preferences. #3503...
r4109
Jean-Philippe Lang
Makes the user form look like account form....
r5052 <div class="splitcontentright">
Jean-Philippe Lang
Replaced h3+div with fieldsets on my account and user form....
r6045 <fieldset class="box">
Toshi MARUYAMA
replace tabs to spaces and remove trailing white-spaces at app/views/users/_form.html.erb...
r7140 <legend><%=l(:field_mail_notification)%></legend>
<%= render :partial => 'users/mail_notifications' %>
Jean-Philippe Lang
Replaced h3+div with fieldsets on my account and user form....
r6045 </fieldset>
Eric Davis
Allow admins to edit user's email notifications and preferences. #3503...
r4109
Jean-Philippe Lang
Replaced h3+div with fieldsets on my account and user form....
r6045 <fieldset class="box tabular">
Toshi MARUYAMA
replace tabs to spaces and remove trailing white-spaces at app/views/users/_form.html.erb...
r7140 <legend><%=l(:label_preferences)%></legend>
<%= render :partial => 'users/preferences' %>
Jean-Philippe Lang
Add hooks for user preferences (#14614)....
r11855 <%= call_hook(:view_users_form_preferences, :user => @user, :form => f) %>
Jean-Philippe Lang
Replaced h3+div with fieldsets on my account and user form....
r6045 </fieldset>
Jean-Philippe Lang
Makes the user form look like account form....
r5052 </div>
</div>
<div style="clear:left;"></div>
Jean-Philippe Lang
* new report: project activity...
r42 <!--[eoform:user]-->
Jean-Philippe Lang
Option to generate a random password on user creation/update....
r11226
<%= javascript_tag do %>
$(document).ready(function(){
$('#user_generate_password').change(function(){
var passwd = $('#user_password, #user_password_confirmation');
if ($(this).is(':checked')){
passwd.val('').attr('disabled', true);
}else{
passwd.removeAttr('disabled');
}
}).trigger('change');
});
<% end %>