Sha256: 430418069e221e9688555b3651985fcc6c44a4dc97588cf02fe8fa8c6ce8bf6f

Contents?: true

Size: 975 Bytes

Versions: 1

Compression:

Stored size: 975 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 :seo_title %>
      <%= f.input :seo_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 :seo_title %>
        <%= f.input :seo_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.6 app/views/character/pages/form.html.erb