Sha256: 96ad2290577404f771d386fd6d473426c0aec7344b502f473000ab1b280af7b4

Contents?: true

Size: 1.51 KB

Versions: 5

Compression:

Stored size: 1.51 KB

Contents

- @title = t('.title')
.admin
  .row
    = render 'dune/admin/layouts/menu'
    section.content.large-12.columns
      .filters
        = form_tag tags_path, method: :get, class: 'form-horizontal' do |f|
          .row
            .large-6.columns
              = label_tag :popular, t('.only_polular')
              = check_box_tag :popular, :true, params[:popular].present?
            .large-6.columns.text-right
              = submit_tag t('.submit'), class: 'button'

      .text-right
        = link_to t('.new'), new_tag_path, class: 'button'
      .data-table
        = paginate @tags
        - if @tags.empty?
          = t('.no_tags')
        - else
          table
            thead
              tr
                th style="width: 200px;"
                  = t('.name')
                th
                  = t('.total_projects_using')
                th
                  = t('.visible')
                th
            tbody
              - @tags.each do |tag|
                tr id=tag.id
                  td = tag.display_name
                  td = tag.taggings.count
                  td = best_in_place tag, :visible, type: :checkbox, collection: [t('words._no'), t('words._yes')]
                  td
                    .text-right
                      = link_to t('.edit'), edit_tag_path(tag), class: 'button tiny'
                      |  
                      = link_to t('.destroy'), tag_path(tag), method: :delete, confirm: t('dune.admin.confirm_dialog'), class: 'button tiny alert'

        = paginate @tags

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dune-admin-1.2.7 app/views/dune/admin/tags/index.html.slim
dune-admin-1.2.6 app/views/dune/admin/tags/index.html.slim
dune-admin-1.2.5 app/views/dune/admin/tags/index.html.slim
dune-admin-1.2.4 app/views/dune/admin/tags/index.html.slim
dune-admin-1.2.3 app/views/dune/admin/tags/index.html.slim