Sha256: 78bd4e05511286fd3c9910d1d39e0f0a2f4e77fdb95b3f899ed172814188df97

Contents?: true

Size: 1.11 KB

Versions: 6

Compression:

Stored size: 1.11 KB

Contents

.box.categories-widget

  .read
    .categories
      .category
        - active_class = params[:categories].blank?? "active" : nil
        = link_to t('.all'), {categories: nil}, class: "btn btn-sm btn-light btn-block #{active_class}"
      - @site.categories.of_type(type).each do |category|
        = render "comfy/admin/cms/categories/show", category: category, read: true
    %button.toggle-cat-edit.btn.btn-secondary.btn-sm.btn-block
      = t(".edit")

  .editable
    .categories
      - @site.categories.of_type(type).each do |category|
        = render "comfy/admin/cms/categories/show", category: category

    - url = comfy_admin_cms_site_categories_path(@site)
    = form_for :category, url: url, remote: true, html: {id: "new-category"} do |form|
      = form.hidden_field :categorized_type, value: type
      .input-group
        = form.text_field :label, placeholder: t('.add_placeholder'), class: 'form-control form-control-sm'
        .input-group-btn
          %button#cat-add-button.btn.btn-primary.btn-sm
            %i.fas.fa-fw.fa-plus

    %button.toggle-cat-edit.btn.btn-light.btn-sm.btn-block
      = t(".done")

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-2.0.9 app/views/comfy/admin/cms/categories/_index.html.haml
comfortable_mexican_sofa-2.0.8 app/views/comfy/admin/cms/categories/_index.html.haml
comfortable_mexican_sofa-2.0.7 app/views/comfy/admin/cms/categories/_index.html.haml
comfortable_mexican_sofa-2.0.6 app/views/comfy/admin/cms/categories/_index.html.haml
comfortable_mexican_sofa-2.0.5 app/views/comfy/admin/cms/categories/_index.html.haml
comfortable_mexican_sofa-2.0.4 app/views/comfy/admin/cms/categories/_index.html.haml