2022-06-29 11:28:26 +02:00
{% extends "developer/client_details/base.html" %}
2019-08-16 12:03:45 +02:00
{% set client_details_page = "basic_info" %}
{% block client_details_content %}
2022-06-29 11:28:26 +02:00
2019-08-19 20:09:58 +02:00
{% if is_new %}
2022-06-29 11:28:26 +02:00
< 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
2023-03-17 15:39:47 +01:00
< a href = "https://simplelogin.io/docs/siwsl/app/"
2023-02-27 13:15:25 +01:00
target="_blank"
rel="noopener noreferrer">
2022-06-29 11:28:26 +02:00
documentation < i class = "fe fe-external-link" > < / i >
< / a >
2021-10-25 11:09:30 +02:00
to see how to add SIWSL into your app.
2019-08-19 20:09:58 +02:00
< / p >
< button type = "button" class = "close" data-dismiss = "alert" aria-label = "Close" >
< span aria-hidden = "true" > < / span >
< / button >
< / div >
{% endif %}
2022-06-29 11:28:26 +02:00
< form method = "post"
enctype="multipart/form-data"
2021-04-01 10:52:51 +02:00
action="{{ url_for('developer.client_detail', client_id=client.id, action="edit") }}">
2019-08-16 12:03:45 +02:00
{{ form.csrf_token }}
2021-10-26 11:55:42 +02:00
< h1 class = "h2" > Info< / h1 >
2019-08-16 12:03:45 +02:00
< div class = "form-group" >
2021-04-01 11:05:58 +02:00
< label class = "form-label" > Name< / label >
2019-08-16 12:03:45 +02:00
{{ form.name(class="form-control", value=client.name) }}
{{ render_field_errors(form.name) }}
< / div >
2021-10-25 15:18:42 +02:00
< div class = "form-group" >
< label class = "form-label" > Url< / label >
{{ form.url(class="form-control", value=client.home_url) }}
{{ render_field_errors(form.url) }}
< / div >
2019-08-16 12:03:45 +02:00
< div class = "form-group" >
2022-06-29 11:28:26 +02:00
< label class = "form-label" >
Icon
2021-04-01 11:05:58 +02:00
< span class = "text-muted small-text" > The icon is displayed on the authorization page< / span >
< / label >
2019-08-16 12:03:45 +02:00
{{ form.icon(class="form-control-file") }}
{{ render_field_errors(form.icon) }}
2022-06-29 11:28:26 +02:00
{% if client.icon_id %}< img src = "{{ client.icon.get_url() }}" class = "client-icon" > {% endif %}
2019-08-16 12:03:45 +02:00
< / div >
2021-04-01 11:05:58 +02:00
< button type = "submit" class = "mt-2 btn btn-primary" > Update< / button >
2019-08-16 12:03:45 +02:00
< / form >
2022-06-29 11:28:26 +02:00
{# < hr / > #}
{# < h3 > Submit for approval< / h3 > #}
{##}
{# < div class = "alert alert-info" > #}
{# Approval is only needed when you deploy the < b > Sign in with SimpleLogin< / b > integration#}
{# in production. < br / > #}
{# For local/testing/staging environment, you don't have to submit your app/website for approval. < br / > #}
{# < / div > #}
{##}
{# < 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(#}
2024-08-28 13:07:34 +02:00
{# 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."#}
{#) }}#}
2022-06-29 11:28:26 +02:00
{# {{ render_field_errors(approval_form.description) }}#}
{# < / div > #}
{##}
{# < div class = "alert alert-warning" > #}
{# Don't make this frequent mistake: make sure to add your production URL to the < b > Authorized Redirect URIs< / b > on#}
{# < a href = "{{ url_for('developer.client_detail_oauth_setting', client_id=client.id) }}" > OAuth Settings< / a > .#}
{# < / div > #}
{##}
{# < button type = "submit" class = "btn btn-success" > Submit< / button > #}
{# < / form > #}
{% endblock %}