Sha256: f6051c4f46468e8dcdc39c0556a7345018de7d9a85d723748171d034324f923d

Contents?: true

Size: 1.67 KB

Versions: 95

Compression:

Stored size: 1.67 KB

Contents

= form_for [:admin, @layout], :html => {'data-onsubmit_status' => onsubmit_status(@layout)} do |f|
  = f.hidden_field :lock_version
  = render_region :form_top, :locals => {:f => f}
  .form_area
    - render_region :form, :locals => {:f => f} do |form|
      - form.edit_title do
        .title
          = f.label :name, t('name')
          = f.text_field :name, :maxlength => 100, :class => 'textbox', :required => true
      - form.edit_extended_metadata do
        .drawer
          .drawer_contents#attributes
            %table.fieldset
              %tr
                %th.label= f.label :content_type, t('content_type').html_safe
                %td.field= f.text_field :content_type, :maxlength => 40, :class => 'textbox'
              = render_region :extended_metadata, :locals => {:f => f}
          .drawer_handle
            %a.toggle{:href=>'#attributes', :rel=>'toggle[attributes]', :class=>"#{(meta_errors? ? 'less' : 'more')}"}
              = meta_label
              %i.fas.fa-angle-down
      - form.edit_content do
        .textarea_content
          = f.label :content, 'Body'
          ~ f.text_area :content
  - render_region :form_bottom, :locals => {:f => f} do |form_bottom|
    - form_bottom.reference_links do
      .reference_links
        Reference:
        %span{:id => 'tag_reference_link'}
          = link_to t('available_tags'), admin_reference_url(:tags), id: 'tag_reference'
    - form_bottom.edit_buttons do
      .buttons
        = save_model_button @layout
        = save_model_and_continue_editing_button @layout
        = t('or')
        = link_to t('cancel'), admin_layouts_path, class: 'alt'
    - form_bottom.edit_timestamp do
      = updated_stamp @layout

Version data entries

95 entries across 95 versions & 1 rubygems

Version Path
trusty-cms-7.0.22 app/views/admin/layouts/_form.html.haml
trusty-cms-7.0.21 app/views/admin/layouts/_form.html.haml
trusty-cms-7.0.20 app/views/admin/layouts/_form.html.haml
trusty-cms-7.0.19 app/views/admin/layouts/_form.html.haml
trusty-cms-7.0.18 app/views/admin/layouts/_form.html.haml
trusty-cms-7.0.17 app/views/admin/layouts/_form.html.haml
trusty-cms-7.0.16 app/views/admin/layouts/_form.html.haml
trusty-cms-7.0.14 app/views/admin/layouts/_form.html.haml
trusty-cms-7.0.13 app/views/admin/layouts/_form.html.haml
trusty-cms-7.0.12 app/views/admin/layouts/_form.html.haml
trusty-cms-7.0.15 app/views/admin/layouts/_form.html.haml
trusty-cms-7.0.9.1 app/views/admin/layouts/_form.html.haml
trusty-cms-7.0.11 app/views/admin/layouts/_form.html.haml
trusty-cms-7.0.10 app/views/admin/layouts/_form.html.haml
trusty-cms-7.0.9 app/views/admin/layouts/_form.html.haml
trusty-cms-7.0.8 app/views/admin/layouts/_form.html.haml
trusty-cms-7.0.7 app/views/admin/layouts/_form.html.haml
trusty-cms-7.0.6 app/views/admin/layouts/_form.html.haml
trusty-cms-7.0.5 app/views/admin/layouts/_form.html.haml
trusty-cms-7.0.4 app/views/admin/layouts/_form.html.haml