Sha256: b1fdfa8914a5ba68fc0634ad450f0bf7e1c8507ea0e48925c043453b03eb86d7

Contents?: true

Size: 1.57 KB

Versions: 1

Compression:

Stored size: 1.57 KB

Contents

- if @menu.sequence.blank?
  = form.hidden_field :sequence, :class => "sequence", :value => @sequence



= form.field_container :link_text do
  = form.label :link_text, t('spree.admin.menus.link_text')
  %span.required
  %br
  = form.text_field :link_text, :class => "link_text"
  = error_message_on :menu, :link_text

= form.field_container :url do
  = form.label :url, t('spree.admin.menus.url')
  %span.required
  %br
  = form.text_field :url, :class => "url"
  %br
  %em= t("spree.admin.menus.explain_url")
  = error_message_on :menu, :url
  
= form.field_container :visible do
  = form.check_box :visible, :class => "text"
  = form.label :visible, t('spree.admin.menus.visible')
  %em= t("spree.admin.menus.explain_visible")
  = error_message_on :menu, :visible
%h3 Opcjonalnie
- if Spree::Menu.all.count > 0 and false#turn off for futher improvement
  = form.field_container :parent_id do
    = form.label :parent_id, t('spree.admin.menus.parent_id')
    %br
    = collection_select(:menu,:parent_id,Spree::Menu.where(:menu_bar_id => @menu_bar.id).all, :id, :link_text, :prompt => t("spree.admin.menus.select_parent"))
    %em= t("spree.admin.menus.explain_parent_id")
    = error_message_on :menu, :parent_id
    

    
- if Spree::Page.all.count > 0  
  = form.field_container :spree_page_id do
    = form.label :spree_page_id, t('spree.admin.menus.page_id')
    %br
    = collection_select(:menu,:page_id,Spree::Page.visible, :id, :name, :prompt => t("spree.admin.menus.select_page_id"), :include_blank => true)
    %em= t("spree.admin.menus.explain_page_id")
    = error_message_on :menu, :page_id

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spree_essential_menus-0.1.8 app/views/spree/admin/menus/_form.html.haml