<%= attribute.title %>
- <%= link_to t(:edit), eval("edit_admin_#{@attribute_type}_path(attribute)"), :class=>"open-slide" %>
<% if @attribute_type == 'role' %>
- <%= link_to t(:role_field), eval("admin_#{@attribute_type}_role_field_path(attribute)") %>
- <%= link_to t(:sub_role), eval("admin_#{@attribute_type}_sub_role_path(attribute)") %>
- <%= link_to t(:status), eval("admin_role_statuses_path(:role_id=>attribute)") %>
- <%= link_to t(:category), eval("admin_role_categorys_path(:role_id=>attribute)") %>
<% end %>
- <%#= link_to attribute.disabled ? t(:disable) : t(:enable) , eval("admin_#{@attribute_type}_toggle_path(attribute)"), method: :post, remote: true, class: "switch" %>
|
<%= 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} %>
<% 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 %>
|