Sha256: 805f6e6e988d263d9b14de85023ad947e4402595fd1ad7e03f3d0ee5d7477756

Contents?: true

Size: 1.32 KB

Versions: 2

Compression:

Stored size: 1.32 KB

Contents

= render 'locomotive/pages/header'

= locomotive_form_for @page, url: update_all_editable_elements_path(current_site, @page), defaults: { placeholder: false, hint: false } do |f|

  = f.action class: 'hide'

  ul.nav.nav-tabs role='tablist'
    = form_nav_tab :content, true do
      = link_to t('simple_form.titles.locomotive.page.content'), '#content', role: 'tab', data: { toggle: 'tab' }

    = form_nav_tab :main do
      = link_to t('simple_form.titles.locomotive.page.settings'), edit_page_path(current_site, @page)

  .tab-content

    = form_tab_pane :content, true do

      .row

        - if @editable_elements.empty?
          - if @content_entry.nil?
            .col-md-12
              br
              .alert.alert-warning.text-center role="alert"
                = t(:no_editable_elements, scope: 'locomotive.editable_elements.edit')

        - else
          .col-md-12
            fieldset.inputs.info-row
              .form-group.input.select.optional.inline
                label.select.optional.control-label for='page_block'
                  = t(:region, scope: 'simple_form.labels.locomotive.editable_element')
                span.form-wrapper
                  = select_tag 'block', options_for_page_blocks(@blocks)

          .col-md-12
            = render 'form', f: f

            = f.actions do
              = f.action

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
locomotivecms-3.2.0.rc2 app/views/locomotive/editable_elements/index_without_preview.html.slim
locomotivecms-3.2.0.rc1 app/views/locomotive/editable_elements/index_without_preview.html.slim