Mercurial > hg > soundsoftware-site
diff app/views/auth_sources/index.html.erb @ 0:513646585e45
* Import Redmine trunk SVN rev 3859
author | Chris Cannam |
---|---|
date | Fri, 23 Jul 2010 15:52:44 +0100 |
parents | |
children | 0c939c159af4 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/auth_sources/index.html.erb Fri Jul 23 15:52:44 2010 +0100 @@ -0,0 +1,35 @@ +<div class="contextual"> +<%= link_to l(:label_auth_source_new), {:action => 'new'}, :class => 'icon icon-add' %> +</div> + +<h2><%=l(:label_auth_source_plural)%></h2> + +<table class="list"> + <thead><tr> + <th><%=l(:field_name)%></th> + <th><%=l(:field_type)%></th> + <th><%=l(:field_host)%></th> + <th><%=l(:label_user_plural)%></th> + <th></th> + </tr></thead> + <tbody> +<% 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> + <td align="center"><%= source.users.count %></td> + <td class="buttons"> + <%= link_to l(:button_test), :action => 'test_connection', :id => source %> + <%= link_to l(:button_delete), { :action => 'destroy', :id => source }, + :method => :post, + :confirm => l(:text_are_you_sure), + :class => 'icon icon-del', + :disabled => source.users.any? %> + </td> + </tr> +<% end %> + </tbody> +</table> + +<p class="pagination"><%= pagination_links_full @auth_source_pages %></p>