Sha256: 09786532ede80d01e09f14669e960caf34e42c6bbf2dc9b693d432331f13a5c7
Contents?: true
Size: 1.59 KB
Versions: 7
Compression:
Stored size: 1.59 KB
Contents
.dynamic_menu_form =form_for(@dynamic_menu) do |f| -if @dynamic_menu.errors.any? #error_explanation %h2=pluralize(@dynamic_menu.errors.count, "error") + " prohibited this news from being saved:" %ul -@dynamic_menu.errors.full_messages.each do |msg| %li= msg -if params[:dynamic_menu_id].to_i > 0 and parent_menu = DynamicMenu.find(params[:dynamic_menu_id].to_i) .field =f.label :title, _("Parent menu") %br =link_to(parent_menu.title!, parent_menu) =f.hidden_field :dynamic_menu_id, value: parent_menu.id .description=_("The menu-item before this item.") .field =f.label :title, _("Title") %br =f.text_field :title .description=_("The title decides what the item should say.") .field =f.label :idstr, _("ID text") %br =f.text_field :idstr .description=_("This ID can be used in order to get a specific menu item back.") .field =f.label :url, _("URL") %br =f.text_field :url .description=_("The URL that this menu item should direct to.") .field =f.label :sort, _("Sort") %br =f.text_field :sort .description=_("A number that decides in which order this item should be shown.") .field =f.label :check_callbacks, _("Check callbacks") %br =f.text_field :check_callbacks .description=_("Comma separated list of strings that you can connect to in order to do callbacks, to check if this item should be shown or not.") .actions = f.submit :javascript $("#dynamic_menu_title").focus()
Version data entries
7 entries across 7 versions & 1 rubygems