This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
orbit-4-1/app/views/admin/app_auths/index.html.erb

53 lines
2.2 KiB
Plaintext
Raw Normal View History

2011-12-20 08:47:17 +00:00
<% content_for :secondary do %>
2012-01-12 06:13:41 +00:00
<% #render 'side_bar' %>
<% end %>
<div class="main_list">
<%= flash_messages %>
<div class="button_bar up">
2012-09-12 11:12:50 +00:00
<% #link_to t('new.user'), new_admin_user_path, :class => 'new' %>
2011-12-20 08:47:17 +00:00
</div>
2012-01-12 06:13:41 +00:00
<table>
<thead>
<tr>
2012-09-12 11:12:50 +00:00
<td><%= t(:title) %></td>
<td><%= t(:description) %></td>
<td><%= t(:use_status) %></td>
<td><%= t(:author) %></td>
<td><%= t(:organization) %></td>
<td><%= t(:version) %></td>
2012-09-12 12:36:24 +00:00
<td class="action"><%= t(:action) %></td>
2012-01-12 06:13:41 +00:00
</tr>
</thead>
<tbody>
<% @module_apps.each do |module_app| %>
<tr class="have" id="attribute_<%= module_app.id %>" class="have <%= "#{module_app.enable_frontend? ? 'disable' : ''}" %>">
<td class="name"><%= module_app.title %></td>
<td class="name"><%= module_app.intro %></td>
<td>
<% attribute_type = "module_app" %>
<% attribute = module_app %>
<%= link_to t(:enable), admin_module_app_path(attribute, :authenticity_token => form_authenticity_token, :module_app => {:enable_frontend => true}), :remote => true, :method => :put, :id => "disable_#{attribute.id}", :style => "display:#{attribute.enable_frontend ? 'none' : ''}", :class => 'switch' %>
<%= link_to t(:disable), admin_module_app_path(attribute, :authenticity_token => form_authenticity_token, :module_app => {:enable_frontend => false}), :remote => true, :method => :put, :id => "enable_#{attribute.id}", :style => "display:#{attribute.enable_frontend ? '' : 'none'}", :class => 'switch' %>
</td>
<td class="email"><%= module_app.author %></td>
<td class="email"><%= module_app.organization %></td>
<td class="admin"><%= module_app.version %></td>
<td class="action">
<%= link_to t(:show), admin_module_app_path(module_app), :class => 'show' %>
<%= link_to t(:edit), edit_admin_module_app_path(module_app), :class => 'edit' %>
<%= link_to t(:delete), admin_module_app_path(module_app), :class => 'delete', :confirm => t('sure?'), :method => :delete %>
</td>
</tr>
<tr>
<td colspan="5"></td>
</tr>
<% end %>
</tbody>
</table>
<div class="button_bar">
2012-09-12 11:12:50 +00:00
<%# link_to t('new.user'), new_admin_user_path, :class => 'new' %>
2012-01-12 06:13:41 +00:00
</div>
2011-12-20 08:47:17 +00:00
</div>