Sha256: 69a03d221eaabe72f83122d7e0cdc26d008f814793fe6912d204e6620681c34e
Contents?: true
Size: 732 Bytes
Versions: 14
Compression:
Stored size: 732 Bytes
Contents
= occams_admin_partial "occams/admin/cms/partials/snippet_form_before", form: form = form.text_field :label, data: {slugify: @snippet.new_record?} = form.text_field :identifier, data: {slug: true} = form.check_box :markdown - if @snippet.markdown = form.text_area :content, data: {'cms-cm-mode' => 'text/x-markdown'} - else = form.text_area :content, data: {'cms-cm-mode' => 'text/html'} = render 'occams/admin/cms/categories/form', form: form = occams_admin_partial "occams/admin/cms/partials/snippet_form_after", form: form = form.form_actions do = submit_tag t(@snippet.new_record? ? ".create" : ".update"), class: "btn btn-primary" = link_to t(".cancel"), occams_admin_cms_site_snippets_path, class: "btn btn-link"
Version data entries
14 entries across 14 versions & 1 rubygems