summaryrefslogtreecommitdiffstats
path: root/app/views/users/_form.rhtml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/users/_form.rhtml')
-rw-r--r--app/views/users/_form.rhtml30
1 files changed, 30 insertions, 0 deletions
diff --git a/app/views/users/_form.rhtml b/app/views/users/_form.rhtml
new file mode 100644
index 000000000..089d4d23c
--- /dev/null
+++ b/app/views/users/_form.rhtml
@@ -0,0 +1,30 @@
+<%= error_messages_for 'user' %>
+
+<!--[form:user]-->
+<div class="box">
+<h3><%=l(:label_information_plural)%></h3>
+<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>
+<p><%= f.select :language, lang_options_for_select %></p>
+
+<% for @custom_value in @custom_values %>
+ <p><%= custom_field_tag_with_label @custom_value %></p>
+<% end %>
+
+<p><%= f.check_box :admin %></p>
+<p><%= f.check_box :mail_notification %></p>
+</div>
+
+<div class="box">
+<h3><%=l(:label_authentication)%></h3>
+<% unless @auth_sources.empty? %>
+<p><%= f.select :auth_source_id, [[l(:label_internal), ""]] + @auth_sources.collect { |a| [a.name, a.id] } %></p>
+<% end %>
+<p><label for="password"><%=l(:field_password)%><span class="required"> *</span></label>
+<%= password_field_tag 'password', nil, :size => 25 %></p>
+<p><label for="password_confirmation"><%=l(:field_password_confirmation)%><span class="required"> *</span></label>
+<%= password_field_tag 'password_confirmation', nil, :size => 25 %></p>
+</div>
+<!--[eoform:user]-->