Sha256: 088f29242f8bd30bf2e4fd33917e1b490ee047332aaadefbdf6193a421aa64bc

Contents?: true

Size: 669 Bytes

Versions: 1

Compression:

Stored size: 669 Bytes

Contents

= comfy_admin_partial "comfy/admin/cms/partials/site_form_before", form: form

= form.text_field :label, data: {slugify: @site.new_record?}
= form.text_field :identifier, data: {slug: true}
= form.text_field :hostname
= form.text_field :path

- locales = ComfortableMediaSurfer.config.locales.to_a.collect{|l| ["#{l[1]} (#{l[0]})", l[0]]}
= form.select :locale, locales, bootstrap: {custom_control: true}

= comfy_admin_partial "comfy/admin/cms/partials/site_form_after", form: form

= form.form_actions do
  = submit_tag t(@site.new_record? ? ".create" : ".update"), class: "btn btn-primary"
  = link_to t(".cancel"), comfy_admin_cms_sites_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/sites/_form.html.haml