Sha256: 91063f07bd121b0c6fa4b7c3d14bd723740157aef302a4e2f6b6b0c0fa9559d8
Contents?: true
Size: 1.46 KB
Versions: 10
Compression:
Stored size: 1.46 KB
Contents
.cms_form = form_for [:admin, @view] do |f| = f.error_messages %p = f.label :name = f.text_field :name %p = f.label :template_type = f.select :template_type, options_for_select(["haml", "erb"], @view.template_type) %p = f.label :body = f.text_area :body %p = f.label :header = f.text_area :header .field_help Optional %p = f.label :footer = f.text_area :footer .field_help Optional %p = f.label :where_clause = f.text_area :where_clause .field_help May include references to "pages." and "terms.". Terms is a left join. %p = f.label :order_by = f.text_field :order_by .field_help May include references to "pages." and "terms.". Terms is a left join. %p = f.label :per_page = f.text_field :per_page %p = f.label :page_template = f.select :page_template_id, options_from_collection_for_select(PageTemplate.sys(_sid).order(:is_default).all, :id, :name, @view.page_template_id) .field_help Only used if filtering by terms. Does not affect rendering. %p = f.label :layout_id = f.select :layout_id, options_from_collection_for_select(Layout.order(:name).all, :id, :name, @view.layout_id) .field_help Only used if rendering this view as a whole page. Not used if rendering the view in another page %p = kit_submit "Save"
Version data entries
10 entries across 10 versions & 1 rubygems