Sha256: 5a5468bdebf62ebc9d50dc6eb5ae5d00ddf7b1ab3dc60fafc92889e71fa96959

Contents?: true

Size: 931 Bytes

Versions: 5

Compression:

Stored size: 931 Bytes

Contents

<%= form_with(model: clear) do |form| %>
  <% if clear.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(clear.errors.count, "error") %> prohibited this clear from being saved:</h2>

      <ul>
        <% clear.errors.each do |error| %>
          <li><%= error.full_message %></li>
        <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= form.label :ip %>
    <%= form.text_field :ip %>
  </div>

  <div class="field">
    <%= form.label :result %>
    <%= form.text_field :result %>
  </div>

  <div class="field">
    <%= form.label :answer %>
    <%= form.text_field :answer %>
  </div>

  <div class="field">
    <%= form.label :threat_before %>
    <%= form.number_field :threat_before %>
  </div>

  <div class="field">
    <%= form.label :threat_after %>
    <%= form.number_field :threat_after %>
  </div>

  <div class="actions">
    <%= form.submit %>
  </div>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
antispam-0.1.4 app/views/antispam/clears/_form.html.erb
antispam-0.1.3 app/views/antispam/clears/_form.html.erb
antispam-0.1.2 app/views/antispam/clears/_form.html.erb
antispam-0.1.1 app/views/antispam/clears/_form.html.erb
antispam-0.1.0 app/views/antispam/clears/_form.html.erb