Sha256: 217a91df6d31bd48730e45d443d36fc6eb5df78a8c8aa5d14f1ecb8e193d782e

Contents?: true

Size: 816 Bytes

Versions: 4

Compression:

Stored size: 816 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 %>

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
headmin-0.3.4 app/views/headmin/forms/_actions.html.erb
headmin-0.3.3 app/views/headmin/forms/_actions.html.erb
headmin-0.3.2 app/views/headmin/forms/_actions.html.erb
headmin-0.3.1 app/views/headmin/forms/_actions.html.erb