Sha256: ff2a92e1d44a4f2810e3cd1f9ad4a47e21c6b79012bd5e4e704ce3409b330fbc

Contents?: true

Size: 1.1 KB

Versions: 11

Compression:

Stored size: 1.1 KB

Contents

= f.input :"#{name}_id",
  label:      field.label,
  hint:       field.hint,
  as:         :select,
  collection: field.ordered_select_options.map { |option| [option.name, option.id] }

- content_for :head do

  - required_once :select_options do

    / Handlebar templates for managing the select options
    = render 'locomotive/custom_fields/select_templates'

    %script{ type: 'text/html', id: 'edit_select_options_button' }
      = link_to t('locomotive.content_entries.form.edit_select_options'), '#', class: 'edit-options-button'


- content_for :foot do

  - required_once :select_options_popup do

    / Handlebar template for the popup
    %div{ id: 'edit-select-option-entries', style: 'display: none' }

      %h2
        = t('.manage_select_options_entries')

      .placeholder{ data: { sending_form_message: t('locomotive.messages.sending_form') } }

      .dialog-actions
        = link_to t('locomotive.buttons.close'), '#', id: 'close-link'

        .button-wrapper
          = submit_tag t('locomotive.shared.form_actions.update'), { data: { disable_with: t('locomotive.shared.form_actions.disable_with') } }

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
locomotive_cms-2.3.1 app/views/locomotive/custom_fields/types/_select.html.haml
locomotive_cms-2.3.0 app/views/locomotive/custom_fields/types/_select.html.haml
locomotive_cms-2.2.3 app/views/locomotive/custom_fields/types/_select.html.haml
locomotive_cms-2.2.2 app/views/locomotive/custom_fields/types/_select.html.haml
locomotive_cms-2.2.1 app/views/locomotive/custom_fields/types/_select.html.haml
locomotive_cms-2.2.0 app/views/locomotive/custom_fields/types/_select.html.haml
locomotive_cms-2.1.4 app/views/locomotive/custom_fields/types/_select.html.haml
locomotive_cms-2.1.3 app/views/locomotive/custom_fields/types/_select.html.haml
locomotive_cms-2.1.2 app/views/locomotive/custom_fields/types/_select.html.haml
locomotive_cms-2.1.1 app/views/locomotive/custom_fields/types/_select.html.haml
locomotive_cms-2.1.0 app/views/locomotive/custom_fields/types/_select.html.haml