Sha256: 7a07a5c5528706d34d62c8cdca97faa47d0e4c5a55e0a0c79a3bde0b555e461f

Contents?: true

Size: 547 Bytes

Versions: 1

Compression:

Stored size: 547 Bytes

Contents

<div class="col-6">
  <%= simple_form_for(@entry, as: :entry, url: @entry.persisted? ? content_entry_path(@entry) : entries_path) do |f| %>
    <%= f.hidden_field :type, value: @entry.type %>

    <%= f.input :title %>

    <% @entry.class.content_attributes.each do |attr_name, attr_type| %>
      <%= f.input attr_name, as: attr_type %>
    <% end %>

    <%= f.input :slug %>
    <%= f.input :author_name %>
    <%= f.input :published_at %>

    <%= f.submit "Save", class: "btn btn-primary" %>
  <% end %>
</div>

<div class="col-6">
  
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
brilliant_cms-0.0.1 app/views/brilliant_cms/entries/_form.html.erb