Sha256: 21b6f91d005b8b28d07d3601c34c5d344445bb0cc5bd622606513d50080da02a

Contents?: true

Size: 1.3 KB

Versions: 5

Compression:

Stored size: 1.3 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 :spud_page_id, "Page",:class => "control-label"%>
	<div class="controls">
	    <%=f.select :spud_page_id,options_for_select(SpudPage.options_tree_for_page(:site_id => session[:admin_site]),@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

5 entries across 5 versions & 1 rubygems

Version Path
spud_cms-1.0.0.rc1.4 app/views/spud/admin/menu_items/_form.html.erb
spud_cms-1.0.0.rc1.3 app/views/spud/admin/menu_items/_form.html.erb
spud_cms-1.0.0.rc1.2 app/views/spud/admin/menu_items/_form.html.erb
spud_cms-1.0.0.rc1.1 app/views/spud/admin/menu_items/_form.html.erb
spud_cms-1.0.0.RC1 app/views/spud/admin/menu_items/_form.html.erb