2022-05-04 23:09:46 +00:00
{% extends "default.html" %}
2022-11-19 22:20:38 +00:00
{% block pagetitle %}API App Administration{% endblock %}
2022-05-04 23:09:46 +00:00
{% block content %}
2023-10-29 12:51:00 +00:00
< div class = "row" >
< div class = "col col-lg-8" >
< div class = "settings" >
{% for app in apps %}
< div class = "settings-section rounded" >
< div class = "d-lg-flex" >
< div class = "title w-lg-25" >
< label > < a href = "{{app.permalink}}/posts" { % if v and v . newtab % } data-target = "t" target = "_blank" { % endif % } > {{app.app_name}}< / a > < / label >
< / div >
2023-10-13 22:39:23 +00:00
2023-10-29 12:51:00 +00:00
< div class = "body w-lg-100" >
< label for = "edit-{{app.id}}-author" class = "mb-0 w-lg-25" > User< / label >
< input autocomplete = "off" id = "edit-{{app.id}}-author" class = "form-control" type = "text" name = "name" value = "{{app.author.username}}" readonly = readonly >
2023-10-13 22:39:23 +00:00
2023-10-29 12:51:00 +00:00
< label for = "edit-{{app.id}}-name" class = "mb-0 w-lg-25" > App Name< / label >
< input autocomplete = "off" id = "edit-{{app.id}}-name" class = "form-control" type = "text" name = "name" value = "{{app.app_name}}" readonly = readonly >
2023-10-13 22:39:23 +00:00
2023-10-29 12:51:00 +00:00
{% if app.client_id %}
< label for = "edit-{{app.id}}-client-id" class = "mb-0 w-lg-25" > Client ID< / label >
< input autocomplete = "off" id = "edit-{{app.id}}-client-id" class = "form-control" type = "text" name = "name" value = "{{app.client_id}}" readonly = "readonly" >
{% endif %}
2023-10-13 22:39:23 +00:00
2023-10-29 12:51:00 +00:00
< label for = "edit-{{app.id}}-redirect" class = "mb-0 w-lg-25" > Redirect URI< / label >
< input autocomplete = "off" id = "edit-{{app.id}}-redirect" class = "form-control" type = "text" name = "redirect_uri" value = "{{app.redirect_uri}}" readonly = "readonly" >
< label for = "edit-{{app.id}}-desc" class = "mb-0 w-lg-25" > Description< / label >
< textarea rows = "10" autocomplete = "off" form = "edit-app-{{app.id}}" class = "form-control" name = "description" id = "edit-{{app.id}}-desc" maxlength = "256" readonly = "readonly" > {{app.description}}< / textarea >
< / div >
2023-10-13 22:39:23 +00:00
< / div >
2023-10-29 12:51:00 +00:00
< div class = "footer" >
< div class = "d-flex" >
{% if not app.client_id %}
2024-02-24 13:33:31 +00:00
< button type = "button" class = "btn btn-secondary ml-auto mr-2" data-nonce = "{{g.nonce}}" data-onclick = "remove_app(this,'/admin/app/reject/{{app.id}}')" > Reject< / button >
2024-04-06 02:40:45 +00:00
< button type = "button" class = "btn btn-primary mr-0" data-nonce = "{{g.nonce}}" data-onclick = "approve_app(this,'/admin/app/approve/{{app.id}}')" > Approve< / button >
2023-10-29 12:51:00 +00:00
{% endif %}
2024-04-06 02:40:45 +00:00
< button type = "button" class = "btn btn-primary ml-auto {% if not app.client_id %}d-none{% endif %}" data-nonce = "{{g.nonce}}" data-onclick = "remove_app(this,'/admin/app/revoke/{{app.id}}')" > Revoke< / button >
2023-10-29 12:51:00 +00:00
< / div >
2023-10-13 22:39:23 +00:00
< / div >
< / div >
2023-10-29 12:51:00 +00:00
{% endfor %}
< / div >
2022-05-04 23:09:46 +00:00
< / div >
< / div >
2023-10-29 12:51:00 +00:00
< script defer src = "{{'js/admin/apps.js' | asset}}" > < / script >
2022-10-28 20:08:32 +00:00
{% endblock %}