Sha256: 2952e4ffaa9caae9dde0fefbe9e55b6418257e6609f3ec1cee4e8f08c6c2ff2f

Contents?: true

Size: 901 Bytes

Versions: 14

Compression:

Stored size: 901 Bytes

Contents

<% validations.build_format unless validations.format %>
<% format = validations.format %>

<h3 class="title">Format</h3>

<%= f.fields_for :format, format do |ff| %>
  <% if format.errors.any? %>
    <article class="message is-danger">
      <div class="message-header">
        <p>
          <%= pluralize(format.errors.count, "error") %> prohibited this form from being saved:
        </p>
      </div>
      <div class="message-body">
        <% format.errors.full_messages.each do |message| %>
          <li><%= message %></li>
        <% end %>
      </div>
    </article>
  <% end %>

  <div class="field">
    <%= ff.label :with %>
    <div class="control">
      <%= ff.text_field :with, class: "input" %>
    </div>
  </div>

  <div class="field">
    <%= ff.label :message %>
    <div class="control">
      <%= ff.text_field :message, class: "input" %>
    </div>
  </div>
<% end %>

<hr>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
script_core-0.3.2 spec/dummy/app/views/_form_core/validations/_format.html.erb
script_core-0.3.0 spec/dummy/app/views/_form_core/validations/_format.html.erb
script_core-0.2.7 spec/dummy/app/views/_form_core/validations/_format.html.erb
script_core-0.2.6 spec/dummy/app/views/_form_core/validations/_format.html.erb
script_core-0.2.5 spec/dummy/app/views/_form_core/validations/_format.html.erb
script_core-0.2.4 spec/dummy/app/views/_form_core/validations/_format.html.erb
script_core-0.2.3 spec/dummy/app/views/_form_core/validations/_format.html.erb
script_core-0.2.2 spec/dummy/app/views/_form_core/validations/_format.html.erb
script_core-0.2.1 spec/dummy/app/views/_form_core/validations/_format.html.erb
script_core-0.2.0 spec/dummy/app/views/_form_core/validations/_format.html.erb
script_core-0.1.1 spec/dummy/app/views/_form_core/validations/_format.html.erb
script_core-0.1.0 spec/dummy/app/views/_form_core/validations/_format.html.erb
script_core-0.0.6 spec/dummy/app/views/_form_core/validations/_format.html.erb
script_core-0.0.5 spec/dummy/app/views/_form_core/validations/_format.html.erb