Sha256: 37b453ceddf3b7be8ddfdd9a9036edf786022aefcb03dc725e87298155735e0c

Contents?: true

Size: 1.13 KB

Versions: 15

Compression:

Stored size: 1.13 KB

Contents

= f.input :"#{name}_id",
  label:      label_for_custom_field(f.object, field),
  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

15 entries across 15 versions & 1 rubygems

Version Path
locomotive_cms-2.5.7 app/views/locomotive/custom_fields/types/_select.html.haml
locomotive_cms-2.5.6 app/views/locomotive/custom_fields/types/_select.html.haml
locomotive_cms-2.5.6.rc2 app/views/locomotive/custom_fields/types/_select.html.haml
locomotive_cms-2.5.6.rc1 app/views/locomotive/custom_fields/types/_select.html.haml
locomotive_cms-2.5.5 app/views/locomotive/custom_fields/types/_select.html.haml
locomotive_cms-2.5.4 app/views/locomotive/custom_fields/types/_select.html.haml
locomotive_cms-2.5.3 app/views/locomotive/custom_fields/types/_select.html.haml
locomotive_cms-2.5.2 app/views/locomotive/custom_fields/types/_select.html.haml
locomotive_cms-2.5.1 app/views/locomotive/custom_fields/types/_select.html.haml
locomotive_cms-2.5.0 app/views/locomotive/custom_fields/types/_select.html.haml
locomotive_cms-2.5.0.rc3 app/views/locomotive/custom_fields/types/_select.html.haml
locomotive_cms-2.5.0.rc2 app/views/locomotive/custom_fields/types/_select.html.haml
locomotive_cms-2.5.0.rc1 app/views/locomotive/custom_fields/types/_select.html.haml
locomotive_cms-2.4.1 app/views/locomotive/custom_fields/types/_select.html.haml
locomotive_cms-2.4.0 app/views/locomotive/custom_fields/types/_select.html.haml