Sha256: 62437e71bb7e8bf35f4abf9001c10720ad6e3f75fef96090f774122e1c41845a

Contents?: true

Size: 808 Bytes

Versions: 5

Compression:

Stored size: 808 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 :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 :path %>
        <%= f.input :template_name, collection: page_templates, include_blank: false %>
        <%= f.input :hidden, as: :hidden %>
      </div>
    <% end %>
  </div>

<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
character-1.0.4 app/views/character/pages/form.html.erb
character-1.0.3 app/views/character/pages/form.html.erb
character-1.0.2 app/views/character/pages/form.html.erb
character-1.0.1 app/views/character/pages/form.html.erb
character-1.0.0 app/views/character/pages/form.html.erb