Sha256: bf40f0ecc98442d37057b42aaf137176d82401a0f65164042d294187a16a80f8

Contents?: true

Size: 1.96 KB

Versions: 1

Compression:

Stored size: 1.96 KB

Contents

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

  .container-fluid.main role='main'
    .row.header-row
      .col-md-12
        h1= truncate(@content_entry.try(:_label) || @page.title, length: 50)

    .row.info-row
      .col-sm-8.col-xs-8
        span.fullpath= nice_editable_elements_path

        |  
        | —
        |  

        = link_to edit_page_path(current_site, @page, _location: request.fullpath) do
          i.fa.fa-gear
          |  
          = t('.settings_link')

      .col-sm-4.col-xs-4
        .text-right
          - if current_site.localized?
            = locale_picker_link
          - unless @editable_elements.empty?
            |  
            = f.action

      - unless @editable_elements.empty?
        .col-sm-12.col-xs-12
          fieldset.inputs
            .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)

  .scrollable class="#{'no-editable-elements' if @editable_elements.empty?}"
    .container-fluid
      .row
        .col-md-12
          - if @content_entry
            fieldset.inputs
              .form-group.input.link.optional
                label.link.control-label.optional
                  span.label.label-primary= @content_entry.content_type.name
                  |   /  
                  = @content_entry._label
                span.form_wrapper
                  = link_to t(:edit, scope: 'locomotive.editable_elements.form.model.buttons'), edit_content_entry_path(current_site, @content_entry.content_type.slug, @content_entry, _location: request.fullpath), class: 'btn btn-primary btn-sm'

          = render 'form', f: f

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
locomotivecms-3.0.0.pre.beta.1 app/views/locomotive/editable_elements/_edit.html.slim