Project

General

Profile

« Previous | Next » 

Revision fdc29eca

Added by Marc Dequènes almost 16 years ago

  • ID fdc29ecaac9e083b699305bb184aea528549a756

[evol] add complete user management interface #2

View differences:

app/views/admin/users/_form.rhtml
<p>
<%
selected_artwork_set_id = (@artwork ? @artwork.artwork_set_id : nil)
selected_artwork_group_id = (@artwork ? @artwork.artwork_group_id : nil)
selected_artwork_size_id = (@artwork ? @artwork.artwork_size_id : nil)
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
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>
app/views/admin/users/edit.rhtml
<h2><%= _("Modify User") %></h2>
<%= error_messages_for_resource %>
<%= render :partial => "form", :locals => {:submit_label => _("Modify")} %>
app/views/admin/users/new.rhtml
<h2><%= _("New User") %></h2>
<%= error_messages_for_resource %>
<%= render :partial => "form", :locals => {:submit_label => _("Add")} %>
app/views/admin/users/show.rhtml
<h2><%= sprintf(_("User '%s'"), @user.login) %></h2>
<p>
<%=
stacking_table do |table|
table.content [_("Login:"), @user.login]
table.content [_("Real Name:"), @user.real_name]
table.content [_("Email:"), @user.email]
table.content [_("Administrator?"), display_boolean(@user.admin)]
table.category _("Entry Status") do |cat|
cat.content [_("First Created:"), "#{display_timestamp(@user.created_at)}"]
cat.content [_("Last Updated:"), "#{display_timestamp(@user.updated_at)}"]
end
end
%>
<%= display_standard_item_actions %>
</p>
<p><%= link_to_resource_index _("Display all users") %></p>

Also available in: Unified diff