Fixed Error in Template Rendering

This commit is contained in:
orbitroom
2016-03-24 20:26:08 -04:00
parent 2f5d6d4871
commit ac5ee52ff8
2 changed files with 24 additions and 2 deletions

View File

@@ -89,7 +89,28 @@
<button type="button" class="btn btn-success"><span
class="glyphicon glyphicon-ok"></span></button>
</a>
{% else %}
{% elif srpfleetrequest.srp_status == "Pending" %}
<a href="/srp_request_approve/{{ srpfleetrequest.id }}">
<button type="button" class="btn btn-success"><span
class="glyphicon glyphicon-ok"></span></button>
</a>
{% elif srpfleetrequest.srp_status == "" %}
<a href="/srp_request_approve/{{ srpfleetrequest.id }}">
<button type="button" class="btn btn-success"><span
class="glyphicon glyphicon-ok"></span></button>
</a>
{% endif %}
{% if srpfleetrequest.srp_status == "Approved" %}
<a href="/srp_request_reject/{{ srpfleetrequest.id }}">
<button type="button" class="btn btn-warning"><span
class="glyphicon glyphicon-remove"></span></button>
</a>
{% elif srpfleetrequest.srp_status == "Pending" %}
<a href="/srp_request_reject/{{ srpfleetrequest.id }}">
<button type="button" class="btn btn-warning"><span
class="glyphicon glyphicon-remove"></span></button>
</a>
{% elif srpfleetrequest.srp_status == "" %}
<a href="/srp_request_reject/{{ srpfleetrequest.id }}">
<button type="button" class="btn btn-warning"><span
class="glyphicon glyphicon-remove"></span></button>