{% extends "withoutnav_template.html" %}
{% from "components/page-header.html" import page_header %}
{% from "components/page-footer.html" import page_footer %}
{% from "components/form.html" import form_wrapper %}
{% from "components/components/back-link/macro.njk" import usaBackLink %}

{% set page_title = 'Manage ' + '‘' + security_key.name + '’' %}

{% block per_page_title %}
  {{ page_title }}
{% endblock %}

{% block backLink %}
  {{ usaBackLink({ "href": url_for('.user_profile_security_keys') }) }}
{% endblock %}

{% block maincolumn_content %}
  {{ page_header(page_title) }}

  <div class="grid-row">
    <div class="grid-col-9">
      {% call form_wrapper(autocomplete=True) %}
        {{ form.security_key_name }}
        {{ page_footer(
          'Save',
          delete_link=url_for(
            '.user_profile_confirm_delete_security_key', key_id=security_key.id),
          delete_link_text='Delete'
        ) }}
      {% endcall %}
    </div>
  </div>

{% endblock %}
