Sha256: 996d1de5a0e1d85db7a318189a05e7c19601cd2db7358a5fc6410a5c36a9aa10
Contents?: true
Size: 1.21 KB
Versions: 4
Compression:
Stored size: 1.21 KB
Contents
<fieldset> <ol> <li><%=f.label :name, :required=>true%> <%=f.text_field :name,:title => "",:size=>40%> <%=error_message_on "menu_item","name"%> </li> <li><%=f.label :menu_order, :required=>true%> <%=f.text_field :menu_order,:title => "",:size=>5%> <%=error_message_on "menu_item","menu_order"%> </li> <li><%=f.label :spud_page_id, "Page"%> <%=f.select :spud_page_id,options_for_select(SpudPage.options_tree_for_page(),@menu_item.spud_page_id),{:include_blank => 'Use URL instead'},{:title => "",:onchange => "if($(this).val() != '') {$('#spud_menu_item_url').val('');}"}%> <%=error_message_on "menu_item","spud_page_id"%> </li> <li><%=f.label :url%> <%=f.text_field :url,:title => "",:size=>40%> <%=error_message_on "menu_item","url"%> </li> <li><%=f.label :classes%> <%=f.text_field :classes,:title => "",:size=>40%> <%=error_message_on "menu_item","classes"%> </li> <li><%=f.label :parent, "Parent Menu"%> <%=f.select :parent_id,options_for_select(SpudMenuItem.options_tree_for_item(@menu,:filter => @menu_item),@menu_item.parent_type == 'SpudMenuItem' ? @menu_item.parent_id : nil),{:include_blank => "#{@menu.name}"},{:title => ""}%> <%=error_message_on "menu_item","parent"%> </li> </ol> </fieldset>
Version data entries
4 entries across 4 versions & 1 rubygems