dnmgmt/templates/rrequests/list.html

59 lines
1.6 KiB
HTML
Raw Normal View History

2017-03-14 20:18:57 +01:00
{% extends "base.html" %}
2017-03-20 00:16:33 +01:00
{% load handletags %}
2017-03-14 20:18:57 +01:00
{% block content %}
<div class="row">
<div class="col-sm-12">
<div class="panel panel-default">
<div class="panel-heading">Resource Requests</div>
<div class="panel-body">
{% if not mnts.count %}
<div class="alert alert-danger" role="alert">
<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
<strong>Warning</strong>: You have no maintainer object. Create one <a class="alert-link" href="{% url "whoisdb:dashboard" %}">here</a> before starting resource requests.
</div>
{% endif %}
2017-03-14 20:18:57 +01:00
<p>
2017-03-20 00:16:33 +01:00
<a href="{% url "rrequests:create" %}">Start a new request for resources</a>
2017-03-14 20:18:57 +01:00
</p>
2017-03-20 00:16:33 +01:00
2017-03-14 20:18:57 +01:00
<p>
2017-03-20 00:16:33 +01:00
Current and old resource requests:
2017-03-14 20:18:57 +01:00
</p>
2017-03-20 00:16:33 +01:00
<p>
<table class="table">
<tr>
<th>Applicant</th>
<th>Provider</th>
<th>Status</th>
<th>Subject</th>
<th>Created at</th>
<th>Last Modified</th>
<th>Resources</th>
<th></th>
</tr>
{% for request in requests %}
<tr>
<td>{{ request.applicant|linkObject }}</td>
<td>{{ request.provider|linkObject }}</td>
<td>{{ request.get_status_display }}</td>
<td><a href="{% url "rrequests:show" request.pk %}">{{ request.subject }}</a></td>
<td>{{ request.created }}</td>
<td>{{ request.lastAction }}</td>
<td>{{ request.grantedResources|default:"-" }}</td>
<td><a href="{% url "rrequests:show" request.pk %}">View</a></td>
</tr>
{% endfor %}
</table>
</p>
2017-03-14 20:18:57 +01:00
</div>
</div>
</div>
</div>
{% endblock %}