Sha256: 09638ff3a6bee5677d5820e208400639f5bd9d455d17816dfbbd4c9b402a6e18
Contents?: true
Size: 901 Bytes
Versions: 1
Compression:
Stored size: 901 Bytes
Contents
<% if @object.persisted? %> <div class='chr-form-small chr-form-scrolled-up'> <%= simple_nested_form_for @object, url: @form_action_url, method: :post do |f| %> <%= f.input :title %> <%= f.input :description, as: :text %> <%= f.input :path %> <%= f.input :template_name, collection: page_templates, include_blank: false %> <%= f.input :hidden, as: :hidden %> <% end %> </div> <article class='page'> <%= render partial: @object.template_path %> </article> <% else %> <div class='chr-form-small'> <%= simple_form_for @object, url: @form_action_url do |f| %> <%= f.input :title %> <%= f.input :description, as: :text %> <%= f.input :path %> <%= f.input :template_name, collection: page_templates, include_blank: false %> <%= f.input :hidden, as: :hidden %> </div> <% end %> </div> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
character-1.0.5 | app/views/character/pages/form.html.erb |