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

17 lines
466 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 :comment %>
<%= f.input :vendor %>
<% if check.persisted? %>
<%= f.input :active %>
<% end %>
<%= f.button :submit, "Validate", class: "btn-primary" %>
<% end %>