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

Version Path
occams-1.1.0 app/views/occams/admin/cms/snippets/_form.html.haml
occams-1.0.8 app/views/occams/admin/cms/snippets/_form.html.haml
occams-1.0.7.3 app/views/occams/admin/cms/snippets/_form.html.haml
occams-1.0.7.2 app/views/occams/admin/cms/snippets/_form.html.haml
occams-1.0.7.1 app/views/occams/admin/cms/snippets/_form.html.haml
occams-1.0.7 app/views/occams/admin/cms/snippets/_form.html.haml
occams-1.0.6.1 app/views/occams/admin/cms/snippets/_form.html.haml
occams-1.0.6 app/views/occams/admin/cms/snippets/_form.html.haml
occams-1.0.5 app/views/occams/admin/cms/snippets/_form.html.haml
occams-1.0.4 app/views/occams/admin/cms/snippets/_form.html.haml
occams-1.0.3 app/views/occams/admin/cms/snippets/_form.html.haml
occams-1.0.2 app/views/occams/admin/cms/snippets/_form.html.haml
occams-1.0.1 app/views/occams/admin/cms/snippets/_form.html.haml
occams-1.0.0 app/views/occams/admin/cms/snippets/_form.html.haml