Move Code into repo
This commit is contained in:
21
app/templates/accounts/edit_gm_level.html.j2
Normal file
21
app/templates/accounts/edit_gm_level.html.j2
Normal file
@@ -0,0 +1,21 @@
|
||||
{% extends 'base.html.j2' %}
|
||||
|
||||
{% block title %}
|
||||
Edit GM Level for User {{ username }}
|
||||
{% endblock title %}
|
||||
|
||||
{% block content_before %}
|
||||
Edit GM Level for User {{ username }}
|
||||
{% endblock content_before %}
|
||||
|
||||
{% block content %}
|
||||
<form method=post>
|
||||
{{ form.csrf_token }}
|
||||
<div class="card shadow-sm mx-auto pb-3 bg-dark border-primary" style="width: 20rem;">
|
||||
<div class="card-body">
|
||||
{{ helper.render_field(form.gm_level) }}
|
||||
{{ helper.render_submit_field(form.submit) }}
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
{% endblock content %}
|
50
app/templates/accounts/index.html.j2
Normal file
50
app/templates/accounts/index.html.j2
Normal file
@@ -0,0 +1,50 @@
|
||||
{% extends 'base.html.j2' %}
|
||||
|
||||
{% block title %}
|
||||
Account Management
|
||||
{% endblock title %}
|
||||
|
||||
{% block content_before %}
|
||||
Account Management
|
||||
{% endblock content_before %}
|
||||
|
||||
{% block content %}
|
||||
<table class="table" id="accounts_table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Actions</th>
|
||||
<th>Name</th>
|
||||
{% if config.USER_ENABLE_EMAIL %}
|
||||
<th>Email</th>
|
||||
{% endif %}
|
||||
<th>GM Level</th>
|
||||
<th>Locked</th>
|
||||
<th>Banned</th>
|
||||
<th>Muted</th>
|
||||
<th>Registered</th>
|
||||
{% if config.USER_ENABLE_EMAIL %}
|
||||
<th>Email Confirmed</th>
|
||||
{% endif %}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody></tbody>
|
||||
</table>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
{% block js %}
|
||||
{{ super () }}
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
let accounts_table = $('#accounts_table').DataTable({
|
||||
"processing": true,
|
||||
"serverSide": true,
|
||||
"ajax": "{{ url_for('accounts.get') }}",
|
||||
"columnDefs": [
|
||||
{ "searchable": false, "targets": [0,7] },
|
||||
{ "orderable": false, "targets": [0] }
|
||||
]
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
30
app/templates/accounts/view.html.j2
Normal file
30
app/templates/accounts/view.html.j2
Normal file
@@ -0,0 +1,30 @@
|
||||
{% extends 'base.html.j2' %}
|
||||
|
||||
{% block title %}
|
||||
Viewing {{ account_data.username }}
|
||||
{% endblock %}
|
||||
|
||||
{% block content_before %}
|
||||
Viewing {{ account_data.username }}
|
||||
{% if current_user.id == account_data.id %}
|
||||
<br/>
|
||||
Hey, this is you!
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% include 'partials/_account.html.j2' %}
|
||||
{% endblock content %}
|
||||
|
||||
|
||||
{% block content_after %}
|
||||
<br/>
|
||||
<br/>
|
||||
<h3 class="text-center">Characters</h3>
|
||||
<hr class="bg-primary"/>
|
||||
<div class="card-columns">
|
||||
{% for character in account_data.charinfo %}
|
||||
{% include 'partials/_character.html.j2' %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endblock content_after %}
|
Reference in New Issue
Block a user