2006-12-16 12:15:31 +00:00
|
|
|
<div class="contextual">
|
2007-01-08 19:21:59 +00:00
|
|
|
<%= link_to l(:label_auth_source_new), {:action => 'new'}, :class => 'icon icon-add' %>
|
2006-12-16 12:15:31 +00:00
|
|
|
</div>
|
|
|
|
|
2006-07-29 09:32:58 +00:00
|
|
|
<h2><%=l(:label_auth_source_plural)%></h2>
|
|
|
|
|
2006-12-24 16:35:25 +00:00
|
|
|
<table class="list">
|
|
|
|
<thead><tr>
|
2011-09-17 23:10:36 +00:00
|
|
|
<th><%=l(:field_name)%></th>
|
|
|
|
<th><%=l(:field_type)%></th>
|
|
|
|
<th><%=l(:field_host)%></th>
|
|
|
|
<th><%=l(:label_user_plural)%></th>
|
|
|
|
<th></th>
|
2006-12-24 16:35:25 +00:00
|
|
|
</tr></thead>
|
|
|
|
<tbody>
|
2006-07-29 09:32:58 +00:00
|
|
|
<% for source in @auth_sources %>
|
2011-11-25 18:13:31 +00:00
|
|
|
<tr id="auth-source-<%= source.id %>" class="<%= cycle("odd", "even") %>">
|
2011-06-27 23:15:43 +00:00
|
|
|
<td><%= link_to(h(source.name), :action => 'edit', :id => source)%></td>
|
|
|
|
<td align="center"><%= h source.auth_method_name %></td>
|
|
|
|
<td align="center"><%= h source.host %></td>
|
|
|
|
<td align="center"><%= h source.users.count %></td>
|
2009-12-25 17:39:06 +00:00
|
|
|
<td class="buttons">
|
2012-03-11 12:15:56 +00:00
|
|
|
<%= link_to l(:button_test), {:action => 'test_connection', :id => source}, :class => 'icon icon-test' %>
|
2011-09-17 23:10:36 +00:00
|
|
|
<%= link_to l(:button_delete), { :action => 'destroy', :id => source },
|
2012-03-11 11:53:28 +00:00
|
|
|
:method => :delete,
|
2008-10-24 15:39:40 +00:00
|
|
|
:confirm => l(:text_are_you_sure),
|
2009-12-25 17:39:06 +00:00
|
|
|
:class => 'icon icon-del',
|
|
|
|
:disabled => source.users.any? %>
|
|
|
|
</td>
|
2006-12-24 16:35:25 +00:00
|
|
|
</tr>
|
2006-07-29 09:32:58 +00:00
|
|
|
<% end %>
|
2006-12-24 16:35:25 +00:00
|
|
|
</tbody>
|
2006-07-29 09:32:58 +00:00
|
|
|
</table>
|
|
|
|
|
2007-12-29 11:36:30 +00:00
|
|
|
<p class="pagination"><%= pagination_links_full @auth_source_pages %></p>
|