101 lines
4.0 KiB
HTML
101 lines
4.0 KiB
HTML
<h4>Sonstige Datenelemente{% if request.user.profile.showtooltips %} <small><i data-toggle="tooltip" data-placement="top" title="Hier können Sie weitere Daten hochladen, die für die Notfallhilfe relevant, aber nicht weiter zugeordnet werden können." class="far fa-question-circle"></i></small>{% endif %}
|
|
<a class="btn btn-primary btn mb-3 btn-sm " href="{% url 'rd-a9-addelse'%}" style="float: right;"><i class="fas fa-plus"></i> Information</a>
|
|
</h4>
|
|
<table class="table table-hover" id="area_6_else" >
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">Name/Titel etc.</th>
|
|
<th scope="col">Beschreibung</th>
|
|
<th scope="col"> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody >
|
|
{% for ele in area_9_else %}
|
|
<tr>
|
|
<td><a href="{% url 'rd-a9-viewelse' ele.pk %}">{{ele.name}}</a></td>
|
|
<td>{{ele.desc}}</td>
|
|
<td>
|
|
<a style="float: right" class="btn btn-secondary btn-sm mr-2 " href="{% url 'rd-a9-viewelse' ele.pk %}"><i class="far fa-eye"></i></a>
|
|
<a style="float: right" class="btn btn-secondary btn-sm mr-2 " href="{% url 'rd-a9-updateelse' ele.pk %}"><small><i class="fas fa-pen"></i></small></a>
|
|
<a style="float: right" class="btn btn-secondary btn-sm mr-2 " href="{% url 'rd-a9-delelse' ele.pk %}"><small><i class="fas fa-trash"></i></small></a>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
<hr>
|
|
<h4>Dokumente {% if request.user.profile.showtooltips %} <small><i data-toggle="tooltip" data-placement="top" title="Speichern Sie hier weitere Dokumente für die Notfallhilfe, die nicht weiter zugeordnet werden können." class="far fa-question-circle"></i></small>{% endif %}
|
|
<a class="btn btn-primary btn-sm btn mb-3" href="{% url 'rd-a1-adddoc' 9 %}" style="float: right;"><i class="fas fa-plus"></i> Dokument</a>
|
|
</h4>
|
|
<table class="table table-hover" id="a9_docs" >
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">Name</th>
|
|
<th scope="col">Datum</th>
|
|
<th scope="col">Beschreibung</th>
|
|
<th scope="col"> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody >
|
|
{% for doc in area_9_doc %}
|
|
<tr>
|
|
<td><a href="{% url 'rd-a1-viewdoc' doc.pk %}" target="_blank">{{doc.document_name}}</a></td>
|
|
<td>{{doc.document_date|date:"d.m.Y"|default:""}}</td>
|
|
<td>{{doc.document_desc|default:""}}</td>
|
|
<td>
|
|
<a style="float: right" class="btn btn-secondary btn-sm mr-2 " href="{% url 'rd-a1-viewdoc' doc.pk %}"><i class="far fa-eye"></i></a>
|
|
<a style="float: right" class="btn btn-secondary btn-sm mr-2 " href="{% url 'rd-a1-updatedoc' doc.pk %}"><small><i class="fas fa-pen"></i></small></a>
|
|
<a style="float: right" class="btn btn-secondary btn-sm mr-2 " href="{% url 'rd-a1-deldoc' doc.pk %}"><small><i class="fas fa-trash"></i></small></a>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(document).ready(function(){
|
|
|
|
$('#a9_docs').DataTable({
|
|
"language": {
|
|
"search" : "Suche",
|
|
"info": "Zeige _START_ bis _END_ von _TOTAL_ Einträgen",
|
|
"lengthMenu": "Zeige _MENU_ Einträge",
|
|
"zeroRecords": "Nichts gefunden",
|
|
"infoEmpty": "Keine Einträge",
|
|
"paginate": {
|
|
"first": "Erste",
|
|
"last": "Letzte",
|
|
"next": "Nächste",
|
|
"previous": "Zurück"
|
|
},
|
|
},
|
|
"pageLength": 50,
|
|
"buttons" : {
|
|
"className" : "btn-danger"
|
|
}
|
|
});
|
|
|
|
$('#area_6_else').DataTable({
|
|
"language": {
|
|
"search" : "Suche",
|
|
"info": "Zeige _START_ bis _END_ von _TOTAL_ Einträgen",
|
|
"lengthMenu": "Zeige _MENU_ Einträge",
|
|
"zeroRecords": "Nichts gefunden",
|
|
"infoEmpty": "Keine Einträge",
|
|
"paginate": {
|
|
"first": "Erste",
|
|
"last": "Letzte",
|
|
"next": "Nächste",
|
|
"previous": "Zurück"
|
|
},
|
|
},
|
|
"pageLength": 50,
|
|
"buttons" : {
|
|
"className" : "btn-danger"
|
|
}
|
|
});
|
|
|
|
|
|
});
|
|
</script> |