|
@@ -15,47 +15,50 @@
|
|
|
|
|
|
<hr>
|
|
|
|
|
|
<div class="row">
|
|
|
<div class="span12">
|
|
|
{% html_link "Add project" "project_create" class="btn btn-primary" %}
|
|
|
{% html_link "Add location" "location_create" class="btn btn-primary" %}
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<hr>
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="span6">
|
|
|
<h2>Projects</h2>
|
|
|
<div class="well">
|
|
|
{% if projects %}
|
|
|
<table class="table table-striped">
|
|
|
{% for project in projects %}
|
|
|
<tr>
|
|
|
<td style="width:99%">{% html_link project.name "project" project.id class="btn btn-link" %}</td>
|
|
|
<td>{% html_link '<i class="icon-list"></i>' "project_iptables" project.id class="btn btn-link" %}</td>
|
|
|
<td>{% html_link '<i class="icon-edit"></i>' "project_update" project.id class="btn btn-link" %}</td>
|
|
|
<td>{% html_link '<i class="icon-remove"></i>' "project_delete" project.id class="btn btn-link" %}</td>
|
|
|
</tr>
|
|
|
{% endfor %}
|
|
|
</table>
|
|
|
{% else %}
|
|
|
{% if projects %}
|
|
|
<table class="table table-striped">
|
|
|
{% for project in projects %}
|
|
|
<tr>
|
|
|
<td style="width:99%">{% html_link project.name "project" project.id class="btn btn-link" %}</td>
|
|
|
<td>{% html_link '<i class="icon-list"></i>' "project_iptables" project.id class="btn btn-link" %}</td>
|
|
|
<td>{% html_link '<i class="icon-edit"></i>' "project_update" project.id class="btn btn-link" %}</td>
|
|
|
<td>{% html_link '<i class="icon-remove"></i>' "project_delete" project.id class="btn btn-link" %}</td>
|
|
|
</tr>
|
|
|
{% endfor %}
|
|
|
</table>
|
|
|
{% else %}
|
|
|
There are no projects defined.
|
|
|
{% endif %}
|
|
|
{% endif %}
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="span6">
|
|
|
<h2>Locations</h2>
|
|
|
<div class="well">
|
|
|
{% if locations %}
|
|
|
<table class="table table-striped">
|
|
|
{% for location in locations %}
|
|
|
<tr>
|
|
|
<td style="width:99%">{{location.name}}</td>
|
|
|
<td>{% html_link '<i class="icon-edit"></i>' "location_update" location.id class="btn btn-link" %}</td>
|
|
|
<td>{% html_link '<i class="icon-remove"></i>' "location_delete" location.id class="btn btn-link" %}</td>
|
|
|
</tr>
|
|
|
{% endfor %}
|
|
|
</table>
|
|
|
{% else %}
|
|
|
There are no locations defined.
|
|
|
{% endif %}
|