21
1
Fork 0
mirror of https://github.com/Evolix/chexpire.git synced 2024-06-29 04:22:54 +02:00
chexpire/app/views/checks/_form.html.erb
2018-05-30 16:58:30 +02:00

18 lines
558 B
Plaintext

<%= simple_form_for(check) do |f| %>
<%= f.input :domain, autofocus: true, input_html: { autocapitalize: :none, autocorrect: :off } %>
<% if check.new_record? %>
<%= f.input :kind, as: :radio_buttons, collection: Check.kinds.keys if check.new_record? %>
<% end %>
<%= f.input :domain_created_at, as: :date, start_year: 1990, end_year: Date.today.year %>
<%= f.input :comment %>
<%= f.input :vendor %>
<% if check.persisted? %>
<%= f.input :active %>
<% end %>
<%= f.button :submit, "Validate", class: "btn-primary" %>
<% end %>