Sha256: e2670e63df876c709f4a89b6ae0dac44530e7cf6d1ff3c8bdd102a2e11205d30

Contents?: true

Size: 863 Bytes

Versions: 14

Compression:

Stored size: 863 Bytes

Contents

<%= simple_form_for resource_item_path do |form| %>
  <%= form.error_notification %>

  <div class="page-header">
    <h1><%= t('brightcontent.' + (resource.new_record? ? 'create_new' : 'edit_model'), model: resource_class.model_name.human).capitalize %></h1>
  </div>

  <div class="panel-body form-fields">
    <% form_fields.each do |form_field| %>
      <%= render_form_field(form, form_field) %>
    <% end %>
  </div>

  <div class="panel-footer">
    <%= form.button :submit, class: "btn btn-primary" %>
    <%= form.button :submit, t('brightcontent.save_and_continue'), class: "btn btn-default", name: "commit_and_continue" %>

    <% unless resource.new_record? %>
      <%= link_to t('brightcontent.delete'), resource_item_path, class: "btn btn-danger pull-right", method: :delete, data: { confirm: 'Are you sure?' } %>
    <% end %>
  </div>
<% end %>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
brightcontent-core-2.3.4 app/views/brightcontent/base/_form.html.erb
brightcontent-core-2.3.3 app/views/brightcontent/base/_form.html.erb
brightcontent-core-2.3.2 app/views/brightcontent/base/_form.html.erb
brightcontent-core-2.3.1 app/views/brightcontent/base/_form.html.erb
brightcontent-core-2.3.0 app/views/brightcontent/base/_form.html.erb
brightcontent-core-2.2.2 app/views/brightcontent/base/_form.html.erb
brightcontent-core-2.2.1 app/views/brightcontent/base/_form.html.erb
brightcontent-core-2.2.0 app/views/brightcontent/base/_form.html.erb
brightcontent-core-2.1.5 app/views/brightcontent/base/_form.html.erb
brightcontent-core-2.1.4 app/views/brightcontent/base/_form.html.erb
brightcontent-core-2.1.3 app/views/brightcontent/base/_form.html.erb
brightcontent-core-2.1.2 app/views/brightcontent/base/_form.html.erb
brightcontent-core-2.1.1 app/views/brightcontent/base/_form.html.erb
brightcontent-core-2.1.0 app/views/brightcontent/base/_form.html.erb