{% extends "base.html" %} {% block title %} {% if client %} {{ _("Edit - %(name)s", name=client.title) }} {% else %} {{ _("Create OAuth Client") }} {% endif %} {% endblock %} {% from "macros/forms.html" import render_field, render_submit_field %} {% block content %} {% if client %}
{% endif %}

{{ self.title() }}

{% if client %} {% if not client.approved %} {% endif %}

{{ _("Your application has %(count)d users", count=client.tokens.count()) }}

{% if not client.is_clientside %} {{ _("You must keep the secret safe. If you are unable, set the app type to 'client-side'.") }} {% endif %}

{% endif %}
{{ form.hidden_tag() }} {{ render_field(form.title) }} {{ render_field(form.description, hint=_("Shown to users when you request access to their account")) }} {{ render_field(form.redirect_url) }} {{ render_field(form.app_type, hint=_("Where will you store your client_secret?")) }} {{ render_submit_field(form.submit) }}
{% endblock %}