Move Code into repo
This commit is contained in:
58
app/templates/properties/index.html.j2
Normal file
58
app/templates/properties/index.html.j2
Normal file
@@ -0,0 +1,58 @@
|
||||
{% extends 'base.html.j2' %}
|
||||
|
||||
{% block title %}
|
||||
Property Management
|
||||
{% endblock title %}
|
||||
|
||||
{% block content_before %}
|
||||
Property Management
|
||||
{% endblock content_before %}
|
||||
|
||||
{% block content %}
|
||||
{% if message %}
|
||||
<div class="row">
|
||||
<div class="col text-center">
|
||||
<h3>{{ message }}</h3>
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
{% endif %}
|
||||
<table class="table" 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>Location</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody></tbody>
|
||||
</table>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
{% block js %}
|
||||
{{ super () }}
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
let properties_table = $('#properties_table').DataTable({
|
||||
"processing": true,
|
||||
"serverSide": true,
|
||||
"ajax": "{{ url_for('properties.get', status='all') }}",
|
||||
"columnDefs": [
|
||||
{ "searchable": false, "targets": [0] },
|
||||
{ "orderable": false, "targets": [0] }
|
||||
]
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
39
app/templates/properties/view.html.j2
Normal file
39
app/templates/properties/view.html.j2
Normal file
@@ -0,0 +1,39 @@
|
||||
{% 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 %}
|
||||
{% with property=property_data%}
|
||||
{% include 'partials/_property.html.j2' %}
|
||||
{% endwith %}
|
||||
{% endblock content %}
|
||||
|
||||
{% block content_after %}
|
||||
<br/>
|
||||
<br/>
|
||||
<h3 class="text-center">Property Content</h3>
|
||||
<hr class="bg-primary"/>
|
||||
<div class="card-columns">
|
||||
{% for item in property_data.properties_contents %}
|
||||
{% include 'partials/_property_content.html.j2' %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
{% endblock content_after %}
|
||||
|
Reference in New Issue
Block a user