Sha256: 387f47f1351a72a01ae6b8b2a2d6b24fa87daf5b51aed74fea46ce098186d842

Contents?: true

Size: 1.05 KB

Versions: 4

Compression:

Stored size: 1.05 KB

Contents

<%#
  locals: {
    form: "instance of Plutonium::UI::Builder::Form"
  }
%>
<%= resource_form_for adapt_route_args(form.record) do |f| %>
  <div class="row row-gap-2">
    <div class="container">
      <div class="form-errors">
        <%= f.error_notification %>
        <%= f.error_notification message: f.object.errors[:base].to_sentence if f.object.errors[:base].present? %>
        <% f.object.errors.full_messages.each do |message|  %>
          <%= f.error_notification message: message  %>
        <% end  %>
      </div>
    </div>
    <div class="row py-2">
      <div class="col-12 text-end">
        <%= f.button :submit, class: "btn btn-sm btn-outline-primary" %>
      </div>
    </div>
    <div class="form-inputs">
      <% form.inputs.values.each do |input| %>
        <%= input.render f, form.record %>
      <% end %>
    </div>
    <div class="form-actions">
      <%#= f.button :button, class: "btn btn-outline-secondary", formaction: "", formmethod: :get %>
      <%= f.button :submit, class: "btn btn-outline-primary" %>
    </div>
  </div>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
plutonium-0.6.2 app/views/resource/_form.html.erb
plutonium-0.6.1 app/views/resource/_form.html.erb
plutonium-0.6.0 app/views/resource/_form.html.erb
plutonium-0.5.0 app/views/resource/_form.html.erb