about summary refs log tree commit diff
path: root/app/views/filters/index.html.haml
blob: 44fed886d26815fa7bb64fc808af745ac520738c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
- content_for :page_title do
  = t('filters.index.title')

.table-wrapper
  %table.table
    %thead
      %tr
        %th= t('simple_form.labels.defaults.phrase')
        %th= t('simple_form.labels.defaults.is_enabled')
        %th
    %tbody
      - @filters.each do |filter|
        %tr
          %td= filter.phrase
          %td= (filter.is_enabled ? "\u2705"  : "\u274c")
          %td
            = table_link_to 'pencil', t('filters.edit.title'), edit_filter_path(filter)
            = table_link_to 'times', t('filters.index.delete'), filter_path(filter), method: :delete

= link_to t('filters.new.title'), new_filter_path, class: 'button'