Sha256: b56eb99575a42edfda369e50bcae686ff144c95cccf81585c67ae40c6f62c336

Contents?: true

Size: 728 Bytes

Versions: 1

Compression:

Stored size: 728 Bytes

Contents

= comfy_admin_partial "comfy/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 'comfy/admin/cms/categories/form', form: form

= comfy_admin_partial 'comfy/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"), comfy_admin_cms_site_snippets_path, class: "btn btn-link"
  

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
comfortable_media_surfer-3.0.0 app/views/comfy/admin/cms/snippets/_form.html.haml