Sha256: aa7b692d0afa1d8a108661677a8efdc977eda1f42365d119b3dcf4a4641b8781
Contents?: true
Size: 1.18 KB
Versions: 14
Compression:
Stored size: 1.18 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 "occams/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 "occams/admin/cms/categories/show", category: category - url = occams_admin_cms_site_categories_path(@site) = form_with scope: :category, url: url, html: {id: "new-category"}, local: false 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
14 entries across 14 versions & 1 rubygems