% content_for :title, "Sign logbook entry" %>
<% if @certificates.empty? %>
Add your certificate
<%= form_with model: UserCertificate.new, url: certificates_path(return_to: request.path), class: "grid gap-2 sm:grid-cols-[1fr_10rem_auto]" do |f| %>
<%= f.select :kind, UserCertificate::KINDS.invert, {}, class: "input", "aria-label": "Kind of certificate" %>
<%= f.text_field :number, class: "input", placeholder: "Number", required: true, "aria-label": "Certificate number" %>
<%= f.submit "Add", class: "btn-secondary" %>
<% end %>
Recommended: <%= link_to "add an authenticator app", new_two_factor_path(return_to: request.path), class: "link" %> to your account, so your signature can't be made with a stolen password alone.
<% end %>