2006-06-28 22:11:03 +04:00
|
|
|
<%= error_messages_for 'user' %>
|
|
|
|
|
|
|
|
<!--[form:user]-->
|
2006-11-12 21:50:30 +03:00
|
|
|
<div class="box">
|
|
|
|
<h3><%=l(:label_information_plural)%></h3>
|
2006-09-02 17:33:23 +04:00
|
|
|
<p><%= f.text_field :login, :required => true, :size => 25 %></p>
|
2007-03-12 20:59:02 +03:00
|
|
|
<p><%= f.text_field :firstname, :required => true %></p>
|
2006-09-02 17:33:23 +04:00
|
|
|
<p><%= f.text_field :lastname, :required => true %></p>
|
2007-03-12 20:59:02 +03:00
|
|
|
<p><%= f.text_field :mail, :required => true %></p>
|
|
|
|
<p><%= f.select :language, lang_options_for_select %></p>
|
|
|
|
|
2006-07-31 23:52:08 +04:00
|
|
|
<% for @custom_value in @custom_values %>
|
|
|
|
<p><%= custom_field_tag_with_label @custom_value %></p>
|
2007-03-12 20:59:02 +03:00
|
|
|
<% end if @custom_values%>
|
|
|
|
|
|
|
|
<p><%= f.check_box :admin %></p>
|
|
|
|
<p><%= f.check_box :mail_notification %></p>
|
2006-07-29 13:32:58 +04:00
|
|
|
</div>
|
2006-11-12 21:50:30 +03:00
|
|
|
|
|
|
|
<div class="box">
|
|
|
|
<h3><%=l(:label_authentication)%></h3>
|
|
|
|
<% unless @auth_sources.empty? %>
|
2007-05-27 15:57:49 +04:00
|
|
|
<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>
|
2006-11-12 21:50:30 +03:00
|
|
|
<% end %>
|
2007-05-27 15:57:49 +04:00
|
|
|
<div id="password_fields" style="<%= 'display:none;' if @user.auth_source %>">
|
2006-11-12 21:50:30 +03:00
|
|
|
<p><label for="password"><%=l(:field_password)%><span class="required"> *</span></label>
|
2007-04-02 22:44:35 +04:00
|
|
|
<%= password_field_tag 'password', nil, :size => 25 %><br />
|
|
|
|
<em><%= l(:text_length_between, 4, 12) %></em></p>
|
2006-11-12 21:50:30 +03:00
|
|
|
<p><label for="password_confirmation"><%=l(:field_password_confirmation)%><span class="required"> *</span></label>
|
|
|
|
<%= password_field_tag 'password_confirmation', nil, :size => 25 %></p>
|
|
|
|
</div>
|
2007-05-27 15:57:49 +04:00
|
|
|
</div>
|
2006-11-12 21:50:30 +03:00
|
|
|
<!--[eoform:user]-->
|
2007-01-06 12:08:17 +03:00
|
|
|
|
|
|
|
<% content_for :header_tags do %>
|
|
|
|
<%= javascript_include_tag 'calendar/calendar' %>
|
|
|
|
<%= javascript_include_tag "calendar/lang/calendar-#{current_language}.js" %>
|
|
|
|
<%= javascript_include_tag 'calendar/calendar-setup' %>
|
|
|
|
<%= stylesheet_link_tag 'calendar' %>
|
|
|
|
<% end %>
|