<%= 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" %>
|
<%= link_to (check_box_tag 'accept', false , :class => 'toggle-check', :data=>{:deploy=>"right"}) , eval("admin_#{@attribute_type}_toggle_path(attribute)"), method: :post, remote: true, class: "switch" %>
<% 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 %>
|