Orbit/app/views/admin/role_filters/_role_filter.html.erb

24 lines
1005 B
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 dsrgsdgsdg">
<%= check_box_tag 'accept', role_filter.disable ? 'fasle' : 'true', false ,{ :class => 'toggle-check role_filter_checked', :data=>{:deploy=>"right"}, :data=>{:path=> eval("admin_#{@app_type == 'role_statuses' ? 'role_status' : @app_type }_toggle_path(role_filter)")}, :checked=> role_filter.disable} %>
</td>
</tr>