Sha256: 0aaddea1abaf4c50b3c74b3affc698ef2074182389452dfcba87a40d5e0198ac

Contents?: true

Size: 1.01 KB

Versions: 15

Compression:

Stored size: 1.01 KB

Contents

<form method="post" class="rodauth" role="form" id="webauthn-remove-form">
  #{rodauth.webauthn_remove_additional_form_tags}
  #{rodauth.csrf_tag}
  #{rodauth.render('password-field') if rodauth.two_factor_modifications_require_password?}
  <fieldset class="form-group mb-3">
    #{(usage = rodauth.account_webauthn_usage; last_id = usage.keys.last; usage;).map do |id, last_use|
      last_use = last_use.strftime("%F %T") if last_use.is_a?(Time)
      input = rodauth.input_field_string(rodauth.webauthn_remove_param, "webauthn-remove-#{h id}", :type=>'radio', :class=>"form-check-input", :skip_error_message=>true, :value=>id, :required=>false)
      label = "<label class=\"rodauth-webauthn-id form-check-label\" for=\"webauthn-remove-#{h id}\">Last Use: #{last_use}</label>"
      error = rodauth.formatted_field_error(rodauth.webauthn_remove_param) if id == last_id
      "<div class=\"form-check radio\">#{input}#{label}#{error}</div>"
      end.join("\n")}
  </fieldset>
  #{rodauth.button(rodauth.webauthn_remove_button)}
</form>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
rodauth-2.34.0 templates/webauthn-remove.str
rodauth-2.33.0 templates/webauthn-remove.str
rodauth-2.32.0 templates/webauthn-remove.str
rodauth-2.31.0 templates/webauthn-remove.str
rodauth-2.30.0 templates/webauthn-remove.str
rodauth-2.29.0 templates/webauthn-remove.str
rodauth-2.28.0 templates/webauthn-remove.str
rodauth-2.27.0 templates/webauthn-remove.str
rodauth-2.26.1 templates/webauthn-remove.str
rodauth-2.26.0 templates/webauthn-remove.str
rodauth-2.25.0 templates/webauthn-remove.str
rodauth-2.24.0 templates/webauthn-remove.str
rodauth-2.23.0 templates/webauthn-remove.str
rodauth-2.22.0 templates/webauthn-remove.str
rodauth-2.21.0 templates/webauthn-remove.str