Sha256: 519bd41a9853fbdb56f5e8972cb433643658aae2eca279fc361f817f457eb39d

Contents?: true

Size: 968 Bytes

Versions: 7

Compression:

Stored size: 968 Bytes

Contents

//= render 'comfy/admin/cms/partials/translation_form_before', form: form

= form.select :locale, translation_select_options

= form.text_field :label

- if (options = ::Comfy::Cms::Layout.options_for_select(@site)).present?
  = form.select :layout_id, options, {}, {data: {url: form_fragments_comfy_admin_cms_site_page_translation_path(@site, @page, @translation.id.to_i)}, id: "fragments-toggle"}

= render "comfy/admin/cms/fragments/form_fragments", record: @translation

.row
  .col-sm-10.ml-auto
    = form.check_box :is_published

//= render 'comfy/admin/cms/partials/translation_form_after', form: form

= form.form_actions do
  = form.submit t(".preview"), name: "preview", id: nil, class: "btn btn-secondary", data: {disable_with: false}
  = form.submit t(@translation.new_record?? ".create" : ".update"), class: "btn btn-primary", data: {disable_with: false}
  = link_to t(".cancel"), edit_comfy_admin_cms_site_page_path(@site, @page), class: "btn btn-link"

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-2.0.9 app/views/comfy/admin/cms/translations/_form.html.haml
comfortable_mexican_sofa-2.0.8 app/views/comfy/admin/cms/translations/_form.html.haml
comfortable_mexican_sofa-2.0.7 app/views/comfy/admin/cms/translations/_form.html.haml
comfortable_mexican_sofa-2.0.6 app/views/comfy/admin/cms/translations/_form.html.haml
comfortable_mexican_sofa-2.0.5 app/views/comfy/admin/cms/translations/_form.html.haml
comfortable_mexican_sofa-2.0.4 app/views/comfy/admin/cms/translations/_form.html.haml
comfortable_mexican_sofa-2.0.3 app/views/comfy/admin/cms/translations/_form.html.haml