32 lines
1.3 KiB
Plaintext
32 lines
1.3 KiB
Plaintext
|
|
<tr id="<%= dom_id role_filter %>" class="<% role_filter.disable ? 'disable' : '' %>">
|
|
<td><span class="label label-info"><%= role_filter.key %></span></td>
|
|
<% if @types.is_localized?(:title) %>
|
|
<% @site_valid_locales.each_with_index do |locale, i| %>
|
|
<td>
|
|
<%= role_filter.title_translations[locale] rescue nil %>
|
|
<% if i == 0 %>
|
|
<div class="quick-edit">
|
|
<ul class="nav nav-pills">
|
|
<li><%= link_to t(:edit), polymorphic_path([:admin, role_filter], {:action => :edit}), :class=>"open-slide" %></li>
|
|
</ul>
|
|
</div>
|
|
<% end %>
|
|
</td>
|
|
<% end %>
|
|
<% else %>
|
|
<td><%= role_filter.title %></td>
|
|
<% end %>
|
|
|
|
<td class="action">
|
|
<%#= link_to role_filter.disable ? t(:disable) : t(:enable), polymorphic_path([:admin, role_filter]), :confirm => t('sure?'), :method => :delete, :remote => true,:class=>"btn btn-mini btn-success", :type=>"button" %>
|
|
|
|
<div class="toggle-control" style="float: right;">
|
|
<div class="togglebox <%= role_filter.disable ? 'disabled' : '' %>">
|
|
<%= link_to (check_box_tag 'accept', false , :class => 'toggle-check', :data=>{:deploy=>"right"}) , eval("admin_#{@app_type == 'role_statuses' ? 'role_status' : @app_type }_toggle_path(role_filter)"), method: :post, remote: true, class: "switch" %>
|
|
<label><b></b></label>
|
|
</div>
|
|
</div>
|
|
|
|
</td>
|
|
</tr> |