Sha256: e6dc561d974de47807508b8119a0fba02cf9fe2d6b9965dc29de5ef44a3a0737
Contents?: true
Size: 1.81 KB
Versions: 7
Compression:
Stored size: 1.81 KB
Contents
<%%= semantic_form_for [:admin, @<%= singular_table_name %>] do |f| %> <%% if @<%= singular_table_name %>.errors.any? %> <div id="error_explanation"> <h3><%%= pluralize(@<%= singular_table_name %>.errors.count, "error") %> prohibited this menu from being saved:</h3> <ul> <%% @<%= singular_table_name %>.errors.full_messages.each do |msg| %> <li><%%= msg %></li> <%% end %> </ul> </div> <%% end %> <%%= f.inputs "Menu Properties" do %> <%%= f.input :title, :label => "Menu Title", :hint => "This will be used in the menu itself" %> <%%= f.input :meta_description, :label => "Meta Description", :hint => "Meta Description rendered in the head of the document" %> <%%= f.input :meta_keywords, :label => "Meta Keywords", :hint => "Enter Keywords with a comma separating each key" %> <%%= f.input :url, :label => "URL", :as => :string, :hint => "URL for this menu item, Example: /categories/canopies" %> <%%= f.input :show_in_menu, :as => :boolean, :wrapper_html => { :class => "yes_no" }, :hint => "You can hide the menu item by unchecking this box." %> <%% end %> <%%= f.inputs "Template and Resource" do %> <%% unless Cable.special_actions.empty? %> <%%= f.input :special_action, :label => "Special Action", :as => :select, :collection => Cable.special_actions, :hint => "(Optional)" %> <%% end %> <%% unless Cable.templates.empty? %> <%%= f.input :template, :as => :select, :collection => Cable.templates, :selected => f.object.template || "default", :hint => "Which page template should be used?"%> <%% end %> <%% unless @resources.nil? %> <%%= f.input :cable_menuable_id, :label => "Resource", :as => :select, :include_blank => true, :collection => @resources %> <%% end %> <%% end %> <%%= f.buttons %> <%% end %>
Version data entries
7 entries across 7 versions & 1 rubygems