Scope: <%= link_to 'Single', filter_params(scope: 'single'), class: active_params(scope: 'single', active_class: 'ui basic blue button', item_class: 'ui basic white button') %> <%= link_to 'Total', filter_params(scope: 'total'), class: active_params(scope: 'total', active_class: 'ui basic blue button', item_class: 'ui basic white button') %>

<% @promotes.each do |promote| %> <% end %>
Type Name Scope Start At Finish At Verified Overall Sequence
<%= promote.type %> <%= promote.name %> <%= promote.scope_i18n %> <%= promote.start_at %> <%= promote.finish_at %> <%= form_tag toggle_admin_promote_path(promote.id), method: :patch do %> <%= check_box_tag :verified, 1, promote.verified, onChange: 'this.form.submit()' %> <% end %> <%= form_tag overall_admin_promote_path(promote.id), method: :patch do %> <%= check_box_tag :overall, 1, promote.overall, onChange: 'this.form.submit()' %> <% end %> <%= promote.sequence %> <%= link_to '详细', admin_promote_charges_path(promote), class: 'ui green label' %> <%= link_to '编辑', edit_admin_promote_path(promote), class: 'ui yellow label' %> <%= link_to '删除', admin_promote_path(promote), method: :delete, data: { confirm: 'Are you sure?' }, class: 'ui red label' %>