Sha256: 5ed796330fb891beacbe4a869c7fab11befd6513d644366095ee032ba4eccb78

Contents?: true

Size: 754 Bytes

Versions: 11

Compression:

Stored size: 754 Bytes

Contents

<%= form_for(@employee) do |f| %>
  <% if @employee.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@employee.errors.count, "error") %> prohibited this employee from being saved:</h2>

      <ul>
      <% @employee.errors.full_messages.each do |message| %>
        <li><%= message %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :name %><br>
    <%= f.text_field :name %>
  </div>
  <div class="field">
    <%= f.label :dob %><br>
    <%= f.gov_uk_date_field :dob, placeholders: true, today_button: true %>
  </div>
  <div class="field">
    <%= f.label :joined %><br>
    <%= f.gov_uk_date_field :joined %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
gov_uk_date_fields-3.2.0 test/dummy/app/views/employees/_form.html.erb
gov_uk_date_fields-3.2.0.rc3 test/dummy/app/views/employees/_form.html.erb
gov_uk_date_fields-3.2.0.rc2 test/dummy/app/views/employees/_form.html.erb
gov_uk_date_fields-3.2.0.rc1 test/dummy/app/views/employees/_form.html.erb
gov_uk_date_fields-3.1.0 test/dummy/app/views/employees/_form.html.erb
gov_uk_date_fields-3.0.0 test/dummy/app/views/employees/_form.html.erb
gov_uk_date_fields-2.2.0 test/dummy/app/views/employees/_form.html.erb
gov_uk_date_fields-2.1.1 test/dummy/app/views/employees/_form.html.erb
gov_uk_date_fields-2.1.0 test/dummy/app/views/employees/_form.html.erb
gov_uk_date_fields-2.0.3 test/dummy/app/views/employees/_form.html.erb
gov_uk_date_fields-2.0.2 test/dummy/app/views/employees/_form.html.erb