Sha256: 1425aed64bab633fbdc38c1d5720c9f75d3fa4c1cd9c6e7ae0dd37e5d542aa94
Contents?: true
Size: 1.16 KB
Versions: 17
Compression:
Stored size: 1.16 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{type: "button"} = 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_with scope: :category, url: url, 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', id: nil .input-group-btn %button.btn.btn-primary.btn-sm{aria: {label: "Create Category"}} %i.fas.fa-fw.fa-plus %button.toggle-cat-edit.btn.btn-light.btn-sm.btn-block{type: "button"} = t(".done")
Version data entries
17 entries across 17 versions & 6 rubygems