Sha256: 39b7b3c8aca396368d443627aa768b06ce6b2987e965163b5dbdb09a9631c2e1

Contents?: true

Size: 891 Bytes

Versions: 3

Compression:

Stored size: 891 Bytes

Contents

<%=content_for :data_controls do%>
<%=link_to "New Menu",new_spud_admin_menu_path(),:class => "btn btn-primary",:title => "New Menu"%>
<%end%>
<%=content_for :detail do%>
	<div class="page_list">
			<%@menus.each do |menu|%>
				<div class="page_row">
					
					<span class="row_meta"><%=link_to menu.name,spud_admin_menu_menu_items_path(:menu_id => menu.id)%></span>

					<span class="edit_controls">
						<%=link_to "Edit",edit_spud_admin_menu_path(:id => menu.id),:class => 'btn btn-link btn-sm'%>
						<%=link_to spud_admin_menu_path(:id => menu.id),:method => :delete,:class => 'btn btn-sm btn-danger',:confirm => "Are you sure you want to remove this menu and all items associated with it?" do%>
							<span class="glyphicon glyphicon-trash"></span>
						<%end%>
					</span>
					<br style="clear:both;"/>
				</div>
			<%end%>
			<%=will_paginate @menus%>

	</div>


	
<%end%>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spud_cms-1.0.2 app/views/spud/admin/menus/index.html.erb
spud_cms-1.0.1 app/views/spud/admin/menus/index.html.erb
spud_cms-1.0.0 app/views/spud/admin/menus/index.html.erb