Revision 912:5e80956cc792 app/views/auth_sources
| app/views/auth_sources/edit.html.erb | ||
|---|---|---|
| 1 |
<h2><%=l(:label_auth_source)%> (<%= h(@auth_source.auth_method_name) %>)</h2> |
|
| 2 |
|
|
| 3 |
<% form_tag({:action => 'update', :id => @auth_source}, :class => "tabular") do %>
|
|
| 4 |
<%= render :partial => 'form' %> |
|
| 5 |
<%= submit_tag l(:button_save) %> |
|
| 6 |
<% end %> |
|
| 7 |
|
|
| app/views/auth_sources/edit.rhtml | ||
|---|---|---|
| 1 |
<h2><%=l(:label_auth_source)%> (<%= @auth_source.auth_method_name %>)</h2> |
|
| 2 |
|
|
| 3 |
<% form_tag({:action => 'update', :id => @auth_source}, :class => "tabular") do %>
|
|
| 4 |
<%= render :partial => 'form' %> |
|
| 5 |
<%= submit_tag l(:button_save) %> |
|
| 6 |
<% end %> |
|
| 7 |
|
|
| app/views/auth_sources/index.html.erb | ||
|---|---|---|
| 6 | 6 |
|
| 7 | 7 |
<table class="list"> |
| 8 | 8 |
<thead><tr> |
| 9 |
<th><%=l(:field_name)%></th>
|
|
| 10 |
<th><%=l(:field_type)%></th>
|
|
| 11 |
<th><%=l(:field_host)%></th>
|
|
| 12 |
<th><%=l(:label_user_plural)%></th>
|
|
| 13 |
<th></th>
|
|
| 9 |
<th><%=l(:field_name)%></th>
|
|
| 10 |
<th><%=l(:field_type)%></th>
|
|
| 11 |
<th><%=l(:field_host)%></th>
|
|
| 12 |
<th><%=l(:label_user_plural)%></th>
|
|
| 13 |
<th></th>
|
|
| 14 | 14 |
</tr></thead> |
| 15 | 15 |
<tbody> |
| 16 | 16 |
<% for source in @auth_sources %> |
| 17 |
<tr class="<%= cycle("odd", "even") %>">
|
|
| 17 |
<tr id="auth-source-<%= source.id %>" class="<%= cycle("odd", "even") %>">
|
|
| 18 | 18 |
<td><%= link_to(h(source.name), :action => 'edit', :id => source)%></td> |
| 19 | 19 |
<td align="center"><%= h source.auth_method_name %></td> |
| 20 | 20 |
<td align="center"><%= h source.host %></td> |
| 21 | 21 |
<td align="center"><%= h source.users.count %></td> |
| 22 | 22 |
<td class="buttons"> |
| 23 |
<%= link_to l(:button_test), :action => 'test_connection', :id => source %>
|
|
| 24 |
<%= link_to l(:button_delete), { :action => 'destroy', :id => source },
|
|
| 25 |
:method => :post,
|
|
| 23 |
<%= link_to l(:button_test), :action => 'test_connection', :id => source %>
|
|
| 24 |
<%= link_to l(:button_delete), { :action => 'destroy', :id => source },
|
|
| 25 |
:method => :post,
|
|
| 26 | 26 |
:confirm => l(:text_are_you_sure), |
| 27 | 27 |
:class => 'icon icon-del', |
| 28 | 28 |
:disabled => source.users.any? %> |
| app/views/auth_sources/new.html.erb | ||
|---|---|---|
| 1 |
<h2><%=l(:label_auth_source_new)%> (<%= h(@auth_source.auth_method_name) %>)</h2> |
|
| 2 |
|
|
| 3 |
<% form_tag({:action => 'create'}, :class => "tabular") do %>
|
|
| 4 |
<%= render :partial => 'form' %> |
|
| 5 |
<%= submit_tag l(:button_create) %> |
|
| 6 |
<% end %> |
|
| app/views/auth_sources/new.rhtml | ||
|---|---|---|
| 1 |
<h2><%=l(:label_auth_source_new)%> (<%= @auth_source.auth_method_name %>)</h2> |
|
| 2 |
|
|
| 3 |
<% form_tag({:action => 'create'}, :class => "tabular") do %>
|
|
| 4 |
<%= render :partial => 'form' %> |
|
| 5 |
<%= submit_tag l(:button_create) %> |
|
| 6 |
<% end %> |
|
Also available in: Unified diff