Move Code into repo
This commit is contained in:
40
app/templates/bug_reports/index.html.j2
Normal file
40
app/templates/bug_reports/index.html.j2
Normal file
@@ -0,0 +1,40 @@
|
||||
{% extends 'base.html.j2' %}
|
||||
|
||||
{% block title %}
|
||||
{{ status|capitalize }} Bug Reports
|
||||
{% endblock title %}
|
||||
|
||||
{% block content_before %}
|
||||
{{ status|capitalize }} Bug Reports
|
||||
{% endblock content_before %}
|
||||
|
||||
{% block content %}
|
||||
<table class="table" id="accounts_table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Actions</th>
|
||||
<th>Body</th>
|
||||
<th>Client Version</th>
|
||||
<th>Other Player</th>
|
||||
<th>Type</th>
|
||||
<th>Submitted</th>
|
||||
<th>Resolved</th>
|
||||
</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('bug_reports.get', status=status) }}",
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
78
app/templates/bug_reports/resolve.html.j2
Normal file
78
app/templates/bug_reports/resolve.html.j2
Normal file
@@ -0,0 +1,78 @@
|
||||
{% extends 'base.html.j2' %}
|
||||
|
||||
{% block title %}
|
||||
Resolve Report {{ report.id }}
|
||||
{% endblock title %}
|
||||
|
||||
{% block content_before %}
|
||||
Resolve Report {{ report.id }}
|
||||
{% 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">
|
||||
<div class="row">
|
||||
<div class="col text-right">
|
||||
Message:
|
||||
</div>
|
||||
<div class="col">
|
||||
{{ report.body }}
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
|
||||
<div class="row">
|
||||
<div class="col text-right">
|
||||
Client Version:
|
||||
</div>
|
||||
<div class="col">
|
||||
{{ report.client_version }}
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
|
||||
<div class="row">
|
||||
<div class="col text-right">
|
||||
Other Player:
|
||||
</div>
|
||||
<div class="col">
|
||||
{% set other_char = report.other_player_id|parse_other_player_id %}
|
||||
{% if other_char %}
|
||||
<a role="button" class="btn btn-primary btn btn-block"
|
||||
href='{{url_for('characters.view', id=other_char[0])}}'>
|
||||
{{other_char[1]}}
|
||||
</a>
|
||||
{% else %}
|
||||
None
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
|
||||
<div class="row">
|
||||
<div class="col text-right">
|
||||
Type:
|
||||
</div>
|
||||
<div class="col">
|
||||
{{ report.selection[2:-1]|lu_translate }}
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
|
||||
<div class="row">
|
||||
<div class="col text-right">
|
||||
Submitted:
|
||||
</div>
|
||||
<div class="col">
|
||||
{{ report.submitted }}
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
{{ helper.render_field(form.resolution) }}
|
||||
{{ helper.render_submit_field(form.submit) }}
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
{% endblock content %}
|
105
app/templates/bug_reports/view.html.j2
Normal file
105
app/templates/bug_reports/view.html.j2
Normal file
@@ -0,0 +1,105 @@
|
||||
{% extends 'base.html.j2' %}
|
||||
|
||||
{% block title %}
|
||||
View Report {{ report.id }}
|
||||
{% endblock title %}
|
||||
|
||||
{% block content_before %}
|
||||
View Report {{ report.id }}
|
||||
{% endblock content_before %}
|
||||
|
||||
{% block content %}
|
||||
<div class="card shadow-sm mx-auto pb-3 bg-dark border-primary" style="width: 20rem;">
|
||||
<div class="card-body">
|
||||
|
||||
<div class="row">
|
||||
<div class="col text-right">
|
||||
Message:
|
||||
</div>
|
||||
<div class="col">
|
||||
{{ report.body }}
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
|
||||
<div class="row">
|
||||
<div class="col text-right">
|
||||
Client Version:
|
||||
</div>
|
||||
<div class="col">
|
||||
{{ report.client_version }}
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
|
||||
<div class="row">
|
||||
<div class="col text-right">
|
||||
Other Player:
|
||||
</div>
|
||||
<div class="col">
|
||||
{% set other_char = report.other_player_id|parse_other_player_id %}
|
||||
{% if other_char %}
|
||||
<a role="button" class="btn btn-primary btn btn-block"
|
||||
href='{{url_for('characters.view', id=other_char[0])}}'>
|
||||
{{other_char[1]}}
|
||||
</a>
|
||||
{% else %}
|
||||
None
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
|
||||
<div class="row">
|
||||
<div class="col text-right">
|
||||
Type:
|
||||
</div>
|
||||
<div class="col">
|
||||
{{ report.selection[2:-1]|lu_translate }}
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
|
||||
<div class="row">
|
||||
<div class="col text-right">
|
||||
Submitted:
|
||||
</div>
|
||||
<div class="col">
|
||||
{{ report.submitted }}
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
|
||||
<div class="row">
|
||||
<div class="col text-right">
|
||||
Resolved:
|
||||
</div>
|
||||
<div class="col">
|
||||
{{ report.resolved_time }}
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
|
||||
<div class="row">
|
||||
<div class="col text-right">
|
||||
Resolved By:
|
||||
</div>
|
||||
<div class="col">
|
||||
{{ resolved_by }}
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
|
||||
<div class="row">
|
||||
<div class="col text-right">
|
||||
Resolution:
|
||||
</div>
|
||||
<div class="col">
|
||||
{{ report.resolution }}
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{% endblock content %}
|
Reference in New Issue
Block a user