{% extends "withnav_template.html" %}
{% from "components/page-header.html" import page_header %}
{% from "components/page-footer.html" import page_footer %}
{% from "components/textbox.html" import textbox %}
{% from "components/radios.html" import radios %}
{% from "components/banner.html" import banner_wrapper %}
{% from "components/form.html" import form_wrapper %}

{% block service_page_title %}
  Create an API key
{% endblock %}

{% block maincolumn_content %}

  {{ page_header(
    'Create an API key',
    back_link=url_for('main.api_keys', service_id=current_service.id)
  ) }}

  {% call form_wrapper() %}
    {{ textbox(form.key_name, label='Name for this key') }}
    {{ radios(form.key_type, disable=disabled_options, option_hints=option_hints) }}
    {{ page_footer('Continue') }}
  {% endcall %}

{% endblock %}
