root/app/views/admin/users/_form.rhtml @ 1caaf4a7
fdc29eca | Marc Dequènes (Duck) | <p>
|
|
<%
|
|||
73f2fc18 | Marc Dequènes (Duck) | language_list = @config.available_languages.collect{|id, name| [name, id] }
|
|
fdc29eca | Marc Dequènes (Duck) | ||
form_for_resource do |f|
|
|||
%>
|
|||
<%=
|
|||
stacking_form(f) do |table|
|
|||
table.field :login, _("Login"), :text_field
|
|||
table.field :real_name, _("Real Name"), :text_field
|
|||
table.field :email, _("eMail"), :text_field
|
|||
73f2fc18 | Marc Dequènes (Duck) | table.field :prefered_language, _("Prefered language"), :select, language_list
|
|
fdc29eca | Marc Dequènes (Duck) | table.field :admin, _("Administrator?"), :check_box
|
|
table.field :password, _("Password"), :password_field
|
|||
table.field :password_confirmation, _("Password (confirmation)"), :password_field
|
|||
table.content display_standard_form_buttons(submit_label)
|
|||
end
|
|||
%>
|
|||
<%
|
|||
end
|
|||
%>
|
|||
</p>
|