mirror of
https://github.com/Evolix/chexpire.git
synced 2024-07-01 21:42:52 +02:00
17 lines
466 B
Plaintext
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 %>
|