Sha256: 7166aac74d4ec79b4588ffe8fe569aecbcd43c3a10ba9f74c45d31751e95c91f

Contents?: true

Size: 1.29 KB

Versions: 8

Compression:

Stored size: 1.29 KB

Contents

= form_for @menu_item do |f|
  = f.error_messages
  .gs
    .fixed-form-panel
      .field
        = f.label :name, placeholder: 'Menu Item name'
        = f.text_field :name

        .field
          = f.label :link
          = f.text_field :link

        .field
          = f.label :target
          = f.select :target, [:blank, :self, :parent, :top], include_blank: '-- Select --'

        .field
          = f.label :parent_id
          = f.select :parent_id, C::MenuItem.depth_select_options(@menu_item), include_blank: '-- Select Menu Item --'

        .field
          = f.label :page_id, 'Page (Note this overrides the link above)'
          = f.collection_select :page_id, C::Page.all, :id, :name, include_blank: true


    .g-1
      = tabs do
        = tab '?' do
          %h3 New Menu Item
          %p Create a new menu item using this form:
          %ul
            %li
              %b Name -
              The name of your menu item
            %li
              %b Link -
              The path you want your menu link to goto
            %li
              %b Parent
              Select where in a hierachy you want your menu item to appear

  .actions.form-page__actions
    = f.submit class: 'btn'
    = link_to_delete 'Delete', @menu_item, class: 'btn btn--secondary' unless @menu_item.new_record?

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
cd2_catton_cms-1.1.35 app/views/c/admin/menu_items/_form.html.haml
cd2_catton_cms-1.1.34 app/views/c/admin/menu_items/_form.html.haml
cd2_catton_cms-1.1.33 app/views/c/admin/menu_items/_form.html.haml
cd2_catton_cms-1.1.32 app/views/c/admin/menu_items/_form.html.haml
cd2_catton_cms-1.1.31 app/views/c/admin/menu_items/_form.html.haml
cd2_catton_cms-1.1.30 app/views/c/admin/menu_items/_form.html.haml
cd2_catton_cms-1.1.20 app/views/c/admin/menu_items/_form.html.haml
cd2_catton_cms-1.1.10 app/views/c/admin/menu_items/_form.html.haml