Seite Standards angefangen anzupassen
This commit is contained in:
parent
c71ce6e77e
commit
ede475d3a1
|
|
@ -30,41 +30,32 @@
|
|||
<div class="tab-content" id="area_contents">
|
||||
{% for area in areas %}
|
||||
<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">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Titel</th>
|
||||
<th scope="col">Erstellt am</th>
|
||||
<th scope="col">Geändert von</th>
|
||||
<th scope="col">Geändert am</th>
|
||||
<th scope="col">Öffentlichkeitsstatus</th>
|
||||
<th scope="col"> </th>
|
||||
<tr>
|
||||
{% for task in tasks %}
|
||||
|
||||
{% if task.area == area %}
|
||||
<th scope="col">{{task.name}}</th>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</tr>
|
||||
</thead>
|
||||
{% for standard in standards_of_agency %}
|
||||
{% if standard.task == task %}
|
||||
<tr>
|
||||
<td><a href="{% url 'standard-single' standard.pk %}">{{standard.name}}</a></td>
|
||||
<td>{{standard.created_standard_date}}</td>
|
||||
<td>{{standard.last_modified_by.first_name}} {{standard.last_modified_by.last_name}}</td>
|
||||
<td>{{standard.last_modified_on}}</td>
|
||||
<td>{{standard.public|yesno:"Öffentlich,Nicht öffentlich"}}</td>
|
||||
<td>
|
||||
{% 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 %}
|
||||
{% for task in tasks %}
|
||||
{% for standard in standards_of_agency %}
|
||||
<tr>
|
||||
{% if standard.task == task %}
|
||||
<td>{{standard.name}}</td>
|
||||
{% endif %}
|
||||
</tr>
|
||||
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
||||
|
||||
</table>
|
||||
<hr>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
|
||||
</div>
|
||||
{% endfor %}
|
||||
<div class="tab-pane fade" id="t_userown" role="tabpanel" aria-labelledby="userown">
|
||||
|
|
|
|||
Loading…
Reference in New Issue