orbit4-5/app/views/admin/role_statuses/_role_status.html.erb

19 lines
858 B
Plaintext

<tr id="<%= dom_id role_status %>" class="<%= role_status.disable ? 'disable' : '' %>">
<td><span class="label label-info"><%= role_status.key %></span></td>
<% @site_in_use_locales.each_with_index do |locale, i| %>
<td>
<%= role_status.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_status], {:action => :edit}), :class=>"open-slide" %></li>
</ul>
</div>
<% end %>
</td>
<% end %>
<td class="action dsrgsdgsdg">
<%= check_box_tag 'accept', role_status.disable ? 'false' : 'true', false ,{ :class => 'toggle-check role_status_checked', :data=>{:deploy=>"right"}, :data=>{:path=> eval("admin_role_status_toggle_path(role_status)")}, :checked=> role_status.disable} %>
</td>
</tr>