2006-12-16 15:15:31 +03:00
|
|
|
<div class="contextual">
|
2007-01-08 22:21:59 +03:00
|
|
|
<%= link_to l(:label_auth_source_new), {:action => 'new'}, :class => 'icon icon-add' %>
|
2006-12-16 15:15:31 +03:00
|
|
|
</div>
|
|
|
|
|
2006-07-29 13:32:58 +04:00
|
|
|
<h2><%=l(:label_auth_source_plural)%></h2>
|
|
|
|
|
2006-12-24 19:35:25 +03:00
|
|
|
<table class="list">
|
|
|
|
<thead><tr>
|
2006-10-21 14:38:53 +04:00
|
|
|
<th><%=l(:field_name)%></th>
|
|
|
|
<th><%=l(:field_type)%></th>
|
|
|
|
<th><%=l(:field_host)%></th>
|
2008-10-24 19:39:40 +04:00
|
|
|
<th><%=l(:label_user_plural)%></th>
|
2006-10-21 14:38:53 +04:00
|
|
|
<th></th>
|
|
|
|
<th></th>
|
2006-12-24 19:35:25 +03:00
|
|
|
</tr></thead>
|
|
|
|
<tbody>
|
2006-07-29 13:32:58 +04:00
|
|
|
<% for source in @auth_sources %>
|
|
|
|
<tr class="<%= cycle("odd", "even") %>">
|
|
|
|
<td><%= link_to source.name, :action => 'edit', :id => source%></td>
|
|
|
|
<td align="center"><%= source.auth_method_name %></td>
|
|
|
|
<td align="center"><%= source.host %></td>
|
2008-10-24 19:39:40 +04:00
|
|
|
<td align="center"><%= source.users.count %></td>
|
2006-12-24 19:35:25 +03:00
|
|
|
<td align="center"><%= link_to l(:button_test), :action => 'test_connection', :id => source %></td>
|
2008-10-24 19:39:40 +04:00
|
|
|
<td align="center"><%= button_to l(:button_delete), { :action => 'destroy', :id => source },
|
|
|
|
:confirm => l(:text_are_you_sure),
|
|
|
|
:class => "button-small",
|
|
|
|
:disabled => source.users.any? %></td>
|
2006-12-24 19:35:25 +03:00
|
|
|
</tr>
|
2006-07-29 13:32:58 +04:00
|
|
|
<% end %>
|
2006-12-24 19:35:25 +03:00
|
|
|
</tbody>
|
2006-07-29 13:32:58 +04:00
|
|
|
</table>
|
|
|
|
|
2007-12-29 14:36:30 +03:00
|
|
|
<p class="pagination"><%= pagination_links_full @auth_source_pages %></p>
|