kanbanworkflowstimelinescrumrubyroadmapproject-planningproject-managementopenprojectangularissue-trackerifcgantt-chartganttbug-trackerboardsbcf
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.9 KiB
46 lines
1.9 KiB
19 years ago
|
<h2><%=l(:label_user_plural)%></h2>
|
||
19 years ago
|
|
||
18 years ago
|
<table class="listTableContent">
|
||
19 years ago
|
<tr class="ListHead">
|
||
19 years ago
|
<%= sort_header_tag('login', :caption => l(:field_login)) %>
|
||
|
<%= sort_header_tag('firstname', :caption => l(:field_firstname)) %>
|
||
|
<%= sort_header_tag('lastname', :caption => l(:field_lastname)) %>
|
||
|
<th><%=l(:field_mail)%></th>
|
||
|
<%= sort_header_tag('admin', :caption => l(:field_admin)) %>
|
||
|
<%= sort_header_tag('status', :caption => l(:field_status)) %>
|
||
|
<%= sort_header_tag('created_on', :caption => l(:field_created_on)) %>
|
||
|
<%= sort_header_tag('last_login_on', :caption => l(:field_last_login_on)) %>
|
||
19 years ago
|
<th></th>
|
||
|
</tr>
|
||
|
<% for user in @users %>
|
||
19 years ago
|
<tr class="<%= cycle("odd", "even") %>">
|
||
19 years ago
|
<td><%= link_to user.login, :action => 'edit', :id => user %></td>
|
||
|
<td><%= user.firstname %></td>
|
||
|
<td><%= user.lastname %></td>
|
||
|
<td><%= user.mail %></td>
|
||
|
<td align="center"><%= image_tag 'true' if user.admin? %></td>
|
||
18 years ago
|
<td align="center"><%= image_tag 'locked' if user.locked? %><%= image_tag 'user_new' if user.registered? %></td>
|
||
19 years ago
|
<td align="center"><%= format_time(user.created_on) %></td>
|
||
|
<td align="center"><%= format_time(user.last_login_on) unless user.last_login_on.nil? %></td>
|
||
|
<td align="center">
|
||
|
<%= start_form_tag :action => 'edit', :id => user %>
|
||
|
<% if user.locked? %>
|
||
19 years ago
|
<%= hidden_field_tag 'user[status]', User::STATUS_ACTIVE %>
|
||
19 years ago
|
<%= submit_tag l(:button_unlock), :class => "button-small" %>
|
||
19 years ago
|
<% else %>
|
||
19 years ago
|
<%= hidden_field_tag 'user[status]', User::STATUS_LOCKED %>
|
||
19 years ago
|
<%= submit_tag l(:button_lock), :class => "button-small" %>
|
||
19 years ago
|
<% end %>
|
||
|
<%= end_form_tag %>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<% end %>
|
||
|
</table>
|
||
|
|
||
|
<p><%= pagination_links_full @user_pages %>
|
||
|
[ <%= @user_pages.current.first_item %> - <%= @user_pages.current.last_item %> / <%= @user_count %> ]
|
||
|
</p>
|
||
|
|
||
|
<p>
|
||
19 years ago
|
<%= link_to '» ' + l(:label_user_new), :action => 'add' %>
|
||
19 years ago
|
</p>
|