@@ -1,7 +1,7 | |||
|
1 | <% labelled_tabular_form_for :user, @user, :url => { :controller => 'users', :action => "update", :tab => nil }, :html => { :method => :put, :class => nil } do |f| %> | |
|
1 | <% form_for @user, :builder => TabularFormBuilder do |f| %> | |
|
2 | 2 | <%= render :partial => 'form', :locals => { :f => f } %> |
|
3 | 3 | <% if @user.active? && email_delivery_enabled? -%> |
|
4 | 4 | <p><label><%= check_box_tag 'send_information', 1, true %> <%= l(:label_send_information) %></label></p> |
|
5 | 5 | <% end -%> |
|
6 | 6 | <p><%= submit_tag l(:button_save) %></p> |
|
7 | 7 | <% end %> |
@@ -1,11 +1,11 | |||
|
1 | 1 | <div class="contextual"> |
|
2 | 2 | <%= link_to l(:label_profile), user_path(@user), :class => 'icon icon-user' %> |
|
3 | 3 | <%= change_status_link(@user) %> |
|
4 | 4 | <%= link_to(l(:button_delete), @user, :confirm => l(:text_are_you_sure), :method => :delete, :class => 'icon icon-del') if User.current != @user %> |
|
5 | 5 | </div> |
|
6 | 6 | |
|
7 |
<h2><%= link_to l(:label_user_plural), |
|
|
7 | <h2><%= link_to l(:label_user_plural), users_path %> » <%=h @user.login %></h2> | |
|
8 | 8 | |
|
9 | 9 | <%= render_tabs user_settings_tabs %> |
|
10 | 10 | |
|
11 | 11 | <% html_title(l(:label_user), @user.login, l(:label_administration)) -%> |
@@ -1,58 +1,58 | |||
|
1 | 1 | <div class="contextual"> |
|
2 |
<%= link_to l(:label_user_new), |
|
|
2 | <%= link_to l(:label_user_new), new_user_path, :class => 'icon icon-add' %> | |
|
3 | 3 | </div> |
|
4 | 4 | |
|
5 | 5 | <h2><%=l(:label_user_plural)%></h2> |
|
6 | 6 | |
|
7 | 7 | <% form_tag({}, :method => :get) do %> |
|
8 | 8 | <fieldset><legend><%= l(:label_filter_plural) %></legend> |
|
9 | 9 | <label for='status'><%= l(:field_status) %>:</label> |
|
10 | 10 | <%= select_tag 'status', users_status_options_for_select(@status), :class => "small", :onchange => "this.form.submit(); return false;" %> |
|
11 | 11 | |
|
12 | 12 | <% if @groups.present? %> |
|
13 | 13 | <label for='group_id'><%= l(:label_group) %>:</label> |
|
14 | 14 | <%= select_tag 'group_id', '<option></option>' + options_from_collection_for_select(@groups, :id, :name, params[:group_id].to_i), :onchange => "this.form.submit(); return false;" %> |
|
15 | 15 | <% end %> |
|
16 | 16 | |
|
17 | 17 | <label for='name'><%= l(:label_user) %>:</label> |
|
18 | 18 | <%= text_field_tag 'name', params[:name], :size => 30 %> |
|
19 | 19 | <%= submit_tag l(:button_apply), :class => "small", :name => nil %> |
|
20 | 20 | <%= link_to l(:button_clear), users_path, :class => 'icon icon-reload' %> |
|
21 | 21 | </fieldset> |
|
22 | 22 | <% end %> |
|
23 | 23 | |
|
24 | 24 | |
|
25 | 25 | <div class="autoscroll"> |
|
26 | 26 | <table class="list"> |
|
27 | 27 | <thead><tr> |
|
28 | 28 | <%= sort_header_tag('login', :caption => l(:field_login)) %> |
|
29 | 29 | <%= sort_header_tag('firstname', :caption => l(:field_firstname)) %> |
|
30 | 30 | <%= sort_header_tag('lastname', :caption => l(:field_lastname)) %> |
|
31 | 31 | <%= sort_header_tag('mail', :caption => l(:field_mail)) %> |
|
32 | 32 | <%= sort_header_tag('admin', :caption => l(:field_admin), :default_order => 'desc') %> |
|
33 | 33 | <%= sort_header_tag('created_on', :caption => l(:field_created_on), :default_order => 'desc') %> |
|
34 | 34 | <%= sort_header_tag('last_login_on', :caption => l(:field_last_login_on), :default_order => 'desc') %> |
|
35 | 35 | <th></th> |
|
36 | 36 | </tr></thead> |
|
37 | 37 | <tbody> |
|
38 | 38 | <% for user in @users -%> |
|
39 | 39 | <tr class="user <%= cycle("odd", "even") %> <%= %w(anon active registered locked)[user.status] %>"> |
|
40 | 40 | <td class="username"><%= avatar(user, :size => "14") %><%= link_to h(user.login), edit_user_path(user) %></td> |
|
41 | 41 | <td class="firstname"><%= h(user.firstname) %></td> |
|
42 | 42 | <td class="lastname"><%= h(user.lastname) %></td> |
|
43 | 43 | <td class="email"><%= mail_to(h(user.mail)) %></td> |
|
44 | 44 | <td align="center"><%= checked_image user.admin? %></td> |
|
45 | 45 | <td class="created_on" align="center"><%= format_time(user.created_on) %></td> |
|
46 | 46 | <td class="last_login_on" align="center"><%= format_time(user.last_login_on) unless user.last_login_on.nil? %></td> |
|
47 | 47 | <td class="buttons"> |
|
48 | 48 | <%= change_status_link(user) %> |
|
49 | 49 | <%= link_to(l(:button_delete), user, :confirm => l(:text_are_you_sure), :method => :delete, :class => 'icon icon-del') unless User.current == user %> |
|
50 | 50 | </td> |
|
51 | 51 | </tr> |
|
52 | 52 | <% end -%> |
|
53 | 53 | </tbody> |
|
54 | 54 | </table> |
|
55 | 55 | </div> |
|
56 | 56 | <p class="pagination"><%= pagination_links_full @user_pages, @user_count %></p> |
|
57 | 57 | |
|
58 | 58 | <% html_title(l(:label_user_plural)) -%> |
@@ -1,12 +1,12 | |||
|
1 |
<h2><%= link_to l(:label_user_plural), |
|
|
1 | <h2><%= link_to l(:label_user_plural), users_path %> » <%=l(:label_user_new)%></h2> | |
|
2 | 2 | |
|
3 | <% labelled_tabular_form_for :user, @user, :url => { :action => "create" }, :html => { :class => nil } do |f| %> | |
|
3 | <% form_for @user, :builder => TabularFormBuilder do |f| %> | |
|
4 | 4 | <%= render :partial => 'form', :locals => { :f => f } %> |
|
5 | 5 | <% if email_delivery_enabled? %> |
|
6 | 6 | <p><label><%= check_box_tag 'send_information', 1, true %> <%= l(:label_send_information) %></label></p> |
|
7 | 7 | <% end %> |
|
8 | 8 | <p> |
|
9 | 9 | <%= submit_tag l(:button_create) %> |
|
10 | 10 | <%= submit_tag l(:button_create_and_continue), :name => 'continue' %> |
|
11 | 11 | </p> |
|
12 | 12 | <% end %> |
General Comments 0
You need to be logged in to leave comments.
Login now