Move Code into repo

This commit is contained in:
Aaron Kimbre
2022-01-16 12:22:00 -06:00
parent 1eef1854bc
commit 53ffe927f3
196 changed files with 33149 additions and 0 deletions

View 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 %}

View 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 %}

View 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 %}