Sha256: 2b16b72c214f12f8a70a3f9dcb0945d42d9faf109fd569e6bb1ede1e1c3e0dc5
Contents?: true
Size: 1.47 KB
Versions: 1
Compression:
Stored size: 1.47 KB
Contents
<%=error_messages_for(f.object)%> <fieldset> <div class="control-group"> <%=f.label :name, :required=>true,:class => "control-label"%> <div class="controls"> <%=f.text_field :name,:title => "",:size=>40%> </div> </div> <div class="control-group"> <%=f.label :menu_order, :required=>true,:class => "control-label"%> <div class="controls"> <%=f.text_field :menu_order,:title => "",:size=>5%> </div> </div> <div class="control-group"> <%=f.label :spud_page_id, "Page",:class => "control-label"%> <div class="controls"> <%=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('');}"}%> </div> </div> <div class="control-group"> <%=f.label :url,:class => "control-label"%> <div class="controls"> <%=f.text_field :url,:title => "",:size=>40%> </div> </div> <div class="control-group"> <%=f.label :classes,:class => "control-label"%> <div class="controls"> <%=f.text_field :classes,:title => "",:size=>40%> </div> </div> <div class="control-group"> <%=f.label :parent, "Parent Menu",:class => "control-label"%> <div class="controls"> <%=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 => ""}%> </div> </div> </fieldset>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spud_cms-0.8.0 | app/views/spud/admin/menu_items/_form.html.erb |