Property rejection handling

fixe some table to be wider
make search and pagination float right
This commit is contained in:
Aaron Kimbre
2022-04-01 10:02:02 -05:00
parent 7f992a5dfa
commit 27c4f1a7f2
8 changed files with 219 additions and 92 deletions

View File

@@ -8,9 +8,10 @@
{{ status|capitalize }} Bug Reports
{% endblock content_before %}
{% block content %}
<table class="table table-dark table-striped table-bordered table-hover" id="accounts_table">
<thead>
{% block content_override %}
<div class="mx-5">
<table class="table table-dark table-striped table-bordered table-hover" id="accounts_table">
<thead>
<tr>
<th>Actions</th>
<th>Body</th>
@@ -20,9 +21,10 @@
<th>Submitted</th>
<th>Resolved</th>
</tr>
</thead>
<tbody></tbody>
</table>
</thead>
<tbody></tbody>
</table>
</div>
{% endblock %}

View File

@@ -8,60 +8,62 @@
Moderation of {{ status|capitalize }} Items
{% endblock content_before %}
{% block content %}
<h4> Characters </h4>
<hr class="bg-primary"/>
<table class="table table-dark table-striped table-bordered table-hover" id="character_table">
<thead>
<tr>
<th>Actions</th>
<th>Account</th>
<th>Name</th>
<th>Pending Name</th>
<th>Needs Rename</th>
<th>Last Login</th>
<th>Permission Map</th>
</tr>
</thead>
<tbody></tbody>
</table>
<br/>
<h4> Pets </h4>
<hr class="bg-primary"/>
<table class="table table-dark table-striped table-bordered table-hover" id="pet_table">
<thead>
<tr>
<th>Actions</th>
<th>Name</th>
<th>Status</th>
<th>Owner</th>
</tr>
</thead>
<tbody></tbody>
</table>
<br/>
<h4> Properties </h4>
<hr class="bg-primary"/>
<table class="table table-dark table-striped table-bordered table-hover" id="property_table">
<thead>
<tr>
<th>Actions</th>
<th>Owner</th>
<th>Template ID</th>
<th>Clone ID</th>
<th>Name</th>
<th>Description</th>
<th>Privacy</th>
<th>Approved</th>
<th>Updated</th>
<th>Claimed</th>
<th>Rejection Reason</th>
<th>Reputation</th>
<th>Location</th>
</tr>
</thead>
<tbody></tbody>
</table>
{% block content_override %}
<div class="mx-5">
<h4> Characters </h4>
<hr class="bg-primary"/>
<table class="table table-dark table-striped table-bordered table-hover" id="character_table">
<thead>
<tr>
<th>Actions</th>
<th>Account</th>
<th>Name</th>
<th>Pending Name</th>
<th>Needs Rename</th>
<th>Last Login</th>
<th>Permission Map</th>
</tr>
</thead>
<tbody></tbody>
</table>
<br/>
<h4> Pets </h4>
<hr class="bg-primary"/>
<table class="table table-dark table-striped table-bordered table-hover" id="pet_table">
<thead>
<tr>
<th>Actions</th>
<th>Name</th>
<th>Status</th>
<th>Owner</th>
</tr>
</thead>
<tbody></tbody>
</table>
<br/>
<h4> Properties </h4>
<hr class="bg-primary"/>
<table class="table table-dark table-striped table-bordered table-hover" id="property_table">
<thead>
<tr>
<th>Actions</th>
<th>Owner</th>
<th>Template ID</th>
<th>Clone ID</th>
<th>Name</th>
<th>Description</th>
<th>Privacy</th>
<th>Approved</th>
<th>Updated</th>
<th>Claimed</th>
<th>Rejection Reason</th>
<th>Reputation</th>
<th>Location</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
{% endblock %}
{% block js %}

View File

@@ -8,36 +8,38 @@
Property Management
{% endblock content_before %}
{% block content %}
{% if message %}
<div class="row">
<div class="col text-center">
<h3>{{ message }}</h3>
{% block content_override %}
<div class="mx-5">
{% if message %}
<div class="row">
<div class="col text-center">
<h3>{{ message }}</h3>
</div>
</div>
</div>
<br/>
{% endif %}
<table class="table table-dark table-striped table-bordered table-hover" id="properties_table">
<thead>
<tr>
<th>Actions</th>
<th>Owner</th>
<th>Template ID</th>
<th>Clone ID</th>
<th>Name</th>
<th>Description</th>
<th>Privacy</th>
<th>Approved</th>
<th>Updated</th>
<th>Claimed</th>
<th>Rejection Reason</th>
<th>Reputation</th>
<th>Performance Cost</th>
<th>Location</th>
</tr>
</thead>
<tbody></tbody>
</table>
<br/>
{% endif %}
<table class="table table-dark table-striped table-bordered table-hover" id="properties_table">
<thead>
<tr>
<th>Actions</th>
<th>Owner</th>
<th>Template ID</th>
<th>Clone ID</th>
<th>Name</th>
<th>Description</th>
<th>Privacy</th>
<th>Approved</th>
<th>Updated</th>
<th>Claimed</th>
<th>Rejection Reason</th>
<th>Reputation</th>
<th>Performance Cost</th>
<th>Location</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
{% endblock %}

View File

@@ -0,0 +1,32 @@
{% extends 'base.html.j2' %}
{% block title %}
Viewing {{property_data.owner.name}}'s
{% if property_data.name %}
{{ property_data.name }}
{% else %}
{{ property_data.zone_id|get_zone_name }}
{% endif %}
{% endblock %}
{% block content_before %}
Viewing {{property_data.owner.name}}'s
{% if property_data.name %}
{{ property_data.name }}
{% else %}
{{ property_data.zone_id|get_zone_name }}
{% endif %}
{% endblock %}
{% 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.rejection_reason) }}
{{ helper.render_submit_field(form.submit) }}
</div>
</div>
</form>
{% endblock content %}