Revision 8e13bb07
b/templates/edumanage/services.html | ||
---|---|---|
94 | 94 |
{% block subcontent %} |
95 | 95 |
<h4>Services</h4> |
96 | 96 |
<hr> |
97 |
<div><a href="{% url edit-services %}" class="btn btn-primary">Add new service</a></div> |
|
97 |
{% if messages %} |
|
98 |
<table class="table table-condensed"> |
|
99 |
|
|
100 |
{% for message in messages %} |
|
101 |
<tr {% if message.tags %} class="{{ message.tags }}"{% endif %}><td>{{ message }}<td></tr> |
|
102 |
{% endfor %} |
|
103 |
</table> |
|
104 |
{% endif %} |
|
105 |
<div>{% if instdets.ertype == 2 or instdets.ertype == 3 %}<a href="{% url edit-services %}" class="btn btn-primary">Add new service</a>{% endif %}</div> |
|
98 | 106 |
<div class="span10"></div> |
99 | 107 |
{% load tolocale %} |
108 |
{% if instdets.ertype == 2 or instdets.ertype == 3 %} |
|
100 | 109 |
{% if services %} |
101 | 110 |
<table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered" width="100%" id="table"> |
102 | 111 |
<thead> |
... | ... | |
122 | 131 |
{% endfor %} |
123 | 132 |
</tbody> |
124 | 133 |
</table> |
125 |
{% else %} |
|
126 |
<div>No services defined yet (<a href="{% url edit-services %}">edit</a>)</div> |
|
134 |
{% endif %} |
|
127 | 135 |
{% endif %} |
128 | 136 |
<div class="modal hide fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> |
129 | 137 |
<div class="modal-header"> |
Also available in: Unified diff