Sha256: 4bcd9d61e2ff499ae08bd3ca43e80b29ecde3c4e818c353f21ad1529d9e76cca

Contents?: true

Size: 832 Bytes

Versions: 10

Compression:

Stored size: 832 Bytes

Contents

<%#
    headmin/forms/actions
    accepts block: true
    parameters:
      form: (object) Form object
%>

<div class="card forms-actions shadow-sm mb-3">
  <div class="card-body">
    <h5 class="card-title"><%= t('.title') %></h5>
    <p class="card-text"><%= t('.description') %></p>

    <% if form.object.persisted? %>
      <dl>
        <dt><%= form.object.class.human_attribute_name(:created_at) %></dt>
        <dd><%= form.object.created_at.strftime(t('.format')) %></dd>
        <dt><%= form.object.class.human_attribute_name(:updated_at) %></dt>
        <dd><%= form.object.updated_at.strftime(t('.format')) %></dd>
      </dl>
    <% end %>

    <%= yield if block_given? %>

    <%= render 'headmin/forms/actions/destroy', form: form %>
    <hr>
    <%= render 'headmin/forms/actions/save', form: form %>
  </div>
</div>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
headmin-0.2.9 app/views/headmin/forms/_actions.html.erb
headmin-0.2.8 app/views/headmin/forms/_actions.html.erb
headmin-0.2.7 app/views/headmin/forms/_actions.html.erb
headmin-0.2.6 app/views/headmin/forms/_actions.html.erb
headmin-0.2.5 app/views/headmin/forms/_actions.html.erb
headmin-0.2.4 app/views/headmin/forms/_actions.html.erb
headmin-0.2.3 app/views/headmin/forms/_actions.html.erb
headmin-0.2.2 app/views/headmin/forms/_actions.html.erb
headmin-0.2.1 app/views/headmin/forms/_actions.html.erb
headmin-0.2.0 app/views/headmin/forms/_actions.html.erb