2019-08-16 12:03:45 +02:00
{% extends 'developer/client_details/base.html' %}
{% set client_details_page = "basic_info" %}
{% block client_details_content %}
2019-08-19 20:09:58 +02:00
{% if is_new %}
< div class = "alert alert-warning alert-dismissible fade show mb-4" role = "alert" >
2019-09-02 11:42:52 +02:00
< h4 class = "alert-heading" > Well done!< / h4 >
2019-08-19 20:09:58 +02:00
< p >
2019-11-30 19:16:55 +01:00
Please head to our
2020-07-30 10:09:10 +02:00
< a href = "http://docs.simplelogin.io" target = "_blank" rel = "noopener" >
2019-11-30 19:16:55 +01:00
documentation < i class = "fe fe-external-link" > < / i > < / a >
2019-08-19 20:09:58 +02:00
to see how to add SimpleLogin into your website/application.
< / p >
< p >
< strong > And if you already know about OAuth< / strong > , do not forget to set your OAuth < em > Redirect URI< / em >
before your app is deployed on production. You can add the < em > Redirect URI< / em >
2019-09-02 11:42:52 +02:00
in the < b > OAuth Settings< / b > section on the right 👉
2019-08-19 20:09:58 +02:00
SimpleLogin OAuth endpoints can be found in < b > OAuth endpoints< / b > section, always on the right 👉
< / p >
< button type = "button" class = "close" data-dismiss = "alert" aria-label = "Close" >
< span aria-hidden = "true" > < / span >
< / button >
< / div >
{% endif %}
2021-04-01 10:52:51 +02:00
< form method = "post" enctype = "multipart/form-data"
action="{{ url_for('developer.client_detail', client_id=client.id, action="edit") }}">
2019-08-16 12:03:45 +02:00
{{ form.csrf_token }}
< h3 > App Info< / h3 >
< div class = "form-group" >
< label class = "form-label" > Display Name< / label >
{{ form.name(class="form-control", value=client.name) }}
{{ render_field_errors(form.name) }}
< / div >
< div class = "form-group" >
< div class = "form-label" > App Icon< / div >
2019-08-19 20:09:58 +02:00
< p >
< small class = "text-muted" > The icon displayed on the authorization page< / small >
< / p >
2019-08-16 12:03:45 +02:00
{{ form.icon(class="form-control-file") }}
{{ render_field_errors(form.icon) }}
{% if client.icon_id %}
< img src = "{{ client.icon.get_url() }}" class = "client-icon" >
{% endif %}
< / div >
2021-04-01 10:52:51 +02:00
2021-04-01 10:02:08 +02:00
< button type = "submit" class = "btn btn-primary" > Update< / button >
2019-08-16 12:03:45 +02:00
< / form >
2021-04-01 10:52:51 +02:00
< hr >
< h3 > Submit for approval< / h3 >
< p > Before your app can be used by all SimpleLogin users, it needs to go through an approval process.< / p >
< form method = "post" enctype = "multipart/form-data"
action="{{ url_for('developer.client_detail', client_id=client.id, action="submit") }}">
{{ approval_form.csrf_token }}
< div class = "form-group" >
< label class = "form-label" > Tell us about your app< / label >
{{ approval_form.description(
class="form-control", rows="10",
placeholder="This information is used for approving your application. Please give us as much info as you can, for example where you plan to use SimpleLogin, for which community, etc."
) }}
{{ render_field_errors(approval_form.description) }}
< / div >
< button type = "submit" class = "btn btn-success" > Submit< / button >
< / form >
2019-08-16 12:03:45 +02:00
{% endblock %}