MarseyWorld/files/templates/admin/app.html

72 lines
3.0 KiB
HTML
Raw Normal View History

2021-10-15 14:08:27 +00:00
{% extends "default.html" %}
{% block title %}
<title>API App Administration</title>
2021-12-27 05:07:19 +00:00
2021-10-15 14:08:27 +00:00
{% endblock %}
{% block content %}
2021-12-14 22:48:37 +00:00
<div class="row">
<div class="col col-lg-8">
<div class="settings">
2021-10-15 14:08:27 +00:00
<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>
2021-12-28 12:41:26 +00:00
<input autocomplete="off" id="edit-{{app.id}}-author" class="form-control" type="text" name="name" value="{{app.author.username}}" readonly=readonly>
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
2021-10-15 14:08:27 +00:00
<label for="edit-{{app.id}}-name" class="mb-0 w-lg-25">App Name</label>
2021-12-28 12:41:26 +00:00
<input autocomplete="off" id="edit-{{app.id}}-name" class="form-control" type="text" name="name" value="{{app.app_name}}" readonly=readonly>
2021-10-15 14:08:27 +00:00
<label for="edit-{{app.id}}-redirect" class="mb-0 w-lg-25">Redirect URI</label>
2021-12-28 12:41:26 +00:00
<input autocomplete="off" id="edit-{{app.id}}-redirect" class="form-control" type="text" name="redirect_uri" value="{{app.redirect_uri}}" readonly="readonly">
2021-10-15 14:08:27 +00:00
<label for="edit-{{app.id}}-desc" class="mb-0 w-lg-25">Description</label>
2021-12-28 12:41:26 +00:00
<textarea autocomplete="off" form="edit-app-{{app.id}}" class="form-control" name="description" id="edit-{{app.id}}-desc" maxlength="256" readonly="readonly">{{app.description}}</textarea>
2021-10-15 14:08:27 +00:00
</div>
</div>
<div class="footer">
<div class="d-flex">
{% if not app.client_id%}
2021-12-30 05:27:22 +00:00
<a role="button" class="btn btn-primary ml-auto" onclick="post_toast('/admin/app/approve/{{app.id}}')">Approve</a>
<a role="button" class="btn btn-secondary mr-0" onclick="post_toast('/admin/app/reject/{{app.id}}')">Reject</a>
2021-10-15 14:08:27 +00:00
{% else %}
2021-12-30 05:27:22 +00:00
<a role="button" class="btn btn-primary ml-auto" onclick="post_toast('/admin/app/revoke/{{app.id}}')">Revoke</a>
2021-10-15 14:08:27 +00:00
{% endif %}
</div>
</div>
</div>
2021-12-14 22:48:37 +00:00
</div>
2021-10-15 14:08:27 +00:00
{% if listing %}
{% include "submission_listing.html" %}
{% elif comments %}
{% include "comments.html" %}
{% endif %}
2021-12-14 22:48:37 +00:00
</div>
2021-10-15 14:08:27 +00:00
</div>
<div class="toast" id="toast-post-success" style="position: fixed; bottom: 1.5rem; margin: 0 auto; left: 0; right: 0; width: 275px; z-index: 1000" role="alert" aria-live="assertive" aria-atomic="true" data-bs-animation="true" data-bs-autohide="true" data-bs-delay="5000">
<div class="toast-body bg-success text-center text-white">
2021-12-17 04:44:25 +00:00
<i class="fas fa-comment-alt-smile mr-2"></i><span id="toast-post-success-text">Action successful!</span>
2021-10-15 14:08:27 +00:00
</div>
</div>
<div class="toast" id="toast-post-error" style="position: fixed; bottom: 1.5rem; margin: 0 auto; left: 0; right: 0; width: 275px; z-index: 1000" role="alert" aria-live="assertive" aria-atomic="true" data-bs-animation="true" data-bs-autohide="true" data-bs-delay="5000">
<div class="toast-body bg-danger text-center text-white">
<i class="fas fa-exclamation-circle mr-2"></i><span id="toast-post-error-text">Error, please try again later.</span>
</div>
</div>
2021-07-21 01:12:26 +00:00
{% endblock %}