2013-04-25 09:57:34 +00:00
|
|
|
|
2013-11-15 07:37:19 +00:00
|
|
|
<tr id="<%= dom_id role_filter %>" class="<%= role_filter.disable ? 'disable' : '' %>">
|
2013-08-09 07:07:05 +00:00
|
|
|
<td><span class="label label-info"><%= role_filter.key %></span></td>
|
|
|
|
<% if @types.is_localized?(:title) %>
|
2013-11-27 09:50:33 +00:00
|
|
|
<% @site_in_use_locales.each_with_index do |locale, i| %>
|
2013-08-09 07:07:05 +00:00
|
|
|
<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 %>
|
|
|
|
|
2013-11-15 07:37:19 +00:00
|
|
|
<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} %>
|
2013-08-09 07:07:05 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|