MarseyWorld/files/templates/admin/app.html

67 lines
2.6 KiB
HTML
Raw Normal View History

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 %}
<div class="row">
<div class="col col-lg-8">
<div class="settings">
<div class="settings-section rounded">
<div class="d-lg-flex">
<div class="title w-lg-25">
<label for="over18">{{app.app_name}}</label>
</div>
<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-01-24 05:10:16 +00:00
<input hidden name="formkey" value="{{v|formkey}}">
2022-05-04 23:09:46 +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>
<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>
</div>
<div class="footer">
<div class="d-flex">
{% if not app.client_id %}
2022-05-04 23:09:46 +00:00
2022-12-30 12:14:18 +00:00
<button type="button" class="btn btn-primary ml-auto mr-2" data-nonce="{{g.nonce}}" data-onclick="postToastReload(this,'/admin/app/approve/{{app.id}}')">Approve</button>
2023-01-01 11:36:20 +00:00
<button type="button" class="btn btn-secondary mr-0" data-nonce="{{g.nonce}}" data-onclick="postToastReload(this,'/admin/app/reject/{{app.id}}')">Reject</button>
2022-05-04 23:09:46 +00:00
{% else %}
2022-12-30 12:14:18 +00:00
<button type="button" class="btn btn-primary ml-auto" data-nonce="{{g.nonce}}" data-onclick="postToastReload(this,'/admin/app/revoke/{{app.id}}')">Revoke</button>
2022-05-04 23:09:46 +00:00
{% endif %}
</div>
</div>
</div>
</div>
2022-10-28 20:13:58 +00:00
<ul class="nav post-nav py-2">
<li class="nav-item">
2022-11-26 04:36:14 +00:00
<a class="nav-link {% if request.path.endswith('/posts') %} active{% endif %}" href="{{request.path.replace('/comments','/posts')}}">
2022-10-28 20:13:58 +00:00
<div>Posts</div>
</a>
</li>
<li class="nav-item">
<a class="nav-link {% if request.path.endswith('/comments') %} active{% endif %}" href="{{request.path.replace('/posts','/comments')}}">
<div>Comments</div>
</a>
</li>
</ul>
2022-05-04 23:09:46 +00:00
{% if listing %}
2023-06-07 23:26:32 +00:00
{% include "post_listing.html" %}
2022-05-04 23:09:46 +00:00
{% elif comments %}
{% include "comments.html" %}
{% endif %}
</div>
</div>
2022-10-28 20:08:32 +00:00
{% endblock %}