32 lines
1.8 KiB
Plaintext
32 lines
1.8 KiB
Plaintext
|
|
||
|
<tr id="<%= dom_id attribute %>" class="<%= attribute.disabled ? 'disable' : '' %>">
|
||
|
<td>
|
||
|
<span class="label label-info"><%= attribute.title %></span>
|
||
|
<div class="quick-edit">
|
||
|
<ul class="nav nav-pills">
|
||
|
<li><%= link_to t(:edit), eval("edit_admin_#{@attribute_type}_path(attribute)"), :class=>"open-slide" %></li>
|
||
|
<% if @attribute_type == 'role' %>
|
||
|
<li><%= link_to t(:role_field), eval("admin_#{@attribute_type}_role_field_path(attribute)") %></li>
|
||
|
<li><%= link_to t(:sub_role), eval("admin_#{@attribute_type}_sub_role_path(attribute)") %></li>
|
||
|
<li><%= link_to t(:status), eval("admin_role_statuses_path(:role_id=>attribute)") %></li>
|
||
|
<li><%= link_to t(:category), eval("admin_role_categorys_path(:role_id=>attribute)") %></li>
|
||
|
<% end %>
|
||
|
<li><%#= link_to attribute.disabled ? t(:disable) : t(:enable) , eval("admin_#{@attribute_type}_toggle_path(attribute)"), method: :post, remote: true, class: "switch" %></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</td>
|
||
|
<td class="action span3">
|
||
|
<div class="toggle-control" style="float: right;">
|
||
|
<div class="togglebox <%= attribute.disabled ? 'disabled' : '' %>">
|
||
|
<%= check_box_tag 'accept', attribute.disabled ? 'fasle' : 'true', false ,{ :class => 'toggle-check role_filter_checked', :data=>{:deploy=>"right"}, :data=>{:path=> eval("admin_#{@attribute_type}_toggle_path(attribute)")}, :checked=> attribute.disabled} %>
|
||
|
<label><b></b></label>
|
||
|
</div>
|
||
|
</div>
|
||
|
<% if !attribute.is_built_in? %>
|
||
|
<%= link_to (content_tag :i,'',:class=>'icon-trash')+t(:delete_), eval("admin_#{@attribute_type}_path(attribute)"), :type=>"button", :class => 'btn btn-mini btn-danger', :confirm => t('sure?'), :method => :delete, :remote => true %>
|
||
|
<% end %>
|
||
|
</td>
|
||
|
</tr>
|
||
|
|
||
|
|