Seite Standards angefangen anzupassen

This commit is contained in:
holger.trampe 2019-12-09 17:06:17 +01:00
parent c71ce6e77e
commit ede475d3a1
1 changed files with 21 additions and 30 deletions

View File

@ -30,41 +30,32 @@
<div class="tab-content" id="area_contents"> <div class="tab-content" id="area_contents">
{% for area in areas %} {% for area in areas %}
<div class="tab-pane fade" id="t_{{area.id}}" role="tabpanel" aria-labelledby="{{area.id}}"> <div class="tab-pane fade" id="t_{{area.id}}" role="tabpanel" aria-labelledby="{{area.id}}">
{% for task in tasks %}
{% if task.area == area %}
<h4 class="mt-4 mb-4">{{task.name}}</h4>
<table class="table"> <table class="table">
<thead> <thead>
<tr> <tr>
<th scope="col">Titel</th> {% for task in tasks %}
<th scope="col">Erstellt am</th>
<th scope="col">Geändert von</th> {% if task.area == area %}
<th scope="col">Geändert am</th> <th scope="col">{{task.name}}</th>
<th scope="col">Öffentlichkeitsstatus</th> {% endif %}
<th scope="col">&nbsp;</th> {% endfor %}
</tr> </tr>
</thead> {% for task in tasks %}
{% for standard in standards_of_agency %} {% for standard in standards_of_agency %}
{% if standard.task == task %} <tr>
<tr> {% if standard.task == task %}
<td><a href="{% url 'standard-single' standard.pk %}">{{standard.name}}</a></td> <td>{{standard.name}}</td>
<td>{{standard.created_standard_date}}</td> {% endif %}
<td>{{standard.last_modified_by.first_name}} {{standard.last_modified_by.last_name}}</td> </tr>
<td>{{standard.last_modified_on}}</td>
<td>{{standard.public|yesno:"Öffentlich,Nicht öffentlich"}}</td> {% endfor %}
<td> {% endfor %}
{% if standard.created_standard_by == request.user or perms.users.standards_management %}
<a href="{% url 'standard-update' standard.pk %}" class="btn"><i class="fas fa-cog"></i></a>
{% endif %}
</td>
</tr>
{% endif %}
{% endfor %}
</table> </table>
<hr> <hr>
{% endif %}
{% endfor %}
</div> </div>
{% endfor %} {% endfor %}
<div class="tab-pane fade" id="t_userown" role="tabpanel" aria-labelledby="userown"> <div class="tab-pane fade" id="t_userown" role="tabpanel" aria-labelledby="userown">