This commit is contained in:
Son NK 2021-04-01 11:05:58 +02:00
parent b13c65166f
commit 46109770fc
2 changed files with 12 additions and 16 deletions

View File

@ -30,18 +30,17 @@
action="{{ url_for('developer.client_detail', client_id=client.id, action="edit") }}">
{{ form.csrf_token }}
<h3>App Info</h3>
<h3>Website/App Info</h3>
<div class="form-group">
<label class="form-label">Display Name</label>
<label class="form-label">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>
<p>
<small class="text-muted">The icon displayed on the authorization page</small>
</p>
<label class="form-label">Icon
<span class="text-muted small-text">The icon is displayed on the authorization page</span>
</label>
{{ form.icon(class="form-control-file") }}
{{ render_field_errors(form.icon) }}
@ -50,7 +49,7 @@
{% endif %}
</div>
<button type="submit" class="btn btn-primary">Update</button>
<button type="submit" class="mt-2 btn btn-primary">Update</button>
</form>
<hr>

View File

@ -39,14 +39,11 @@
<hr>
<div class="form-group">
<div class="row">
<label class="form-label col">Authorized Redirect URIs</label>
<p class="col text-right">
<small class="text-muted">
<b>redirect_uri</b> must be <b>HTTPS</b> for security reason.
</small>
</p>
</div>
<label class="form-label">Authorized Redirect URIs</label>
<small class="text-muted">
By default <b>localhost</b> is whitelisted. <br>
A <b>redirect_uri</b> must be <b>HTTPS</b> for security reason.
</small>
{% if not client.redirect_uris %}
<div class="alert alert-warning alert-dismissible fade show mb-4" role="alert">
@ -93,7 +90,7 @@
<button type="button" id="create-new-uri" class="mt-2 btn btn-secondary">Add new uri</button>
</div>
<button type="submit" class="btn btn-primary btn-lg">Update</button>
<button type="submit" class="btn btn-primary">Update</button>
</form>
<!-- template for new uri -->