43 lines
1.4 KiB
HTML
43 lines
1.4 KiB
HTML
{% extends "adm/adm_base.html" %}
|
|
{% block content %}
|
|
{% load adm_tags %}
|
|
{% load mathfilters %}
|
|
{% load humanize %}
|
|
{% load counter_tag %}
|
|
<div class="content-section col-12">
|
|
<h4>Agentur löschen
|
|
<span style="float: right">
|
|
<a style="float: right" class="btn btn-secondary btn-sm ml-2" href="{% url 'adm-agencys' %}"><small><i class="fas fa-chevron-circle-left"></i></small></a>
|
|
</span>
|
|
</h4>
|
|
<hr>
|
|
Sie sind im Begriff, die Agentur <b>{{object.name}}</b> zu löschen! Damit werden alle Daten der Agentur unwiderruflich entfernt. Möchten Sie fortfahren?
|
|
<hr>
|
|
Bitte bestätigen!
|
|
<div class="form-check">
|
|
<input class="form-check-input" type="checkbox" value="" id="confirmDel" onclick="javascript:toggleDoDelBtn()">
|
|
<label class="form-check-label" for="confirmDel">
|
|
Ja, Agentur <b>{{object.name}}</b> wirklich und für immer löschen!
|
|
</label>
|
|
</div>
|
|
|
|
<hr>
|
|
<form method="POST" enctype="multipart/form-data">
|
|
{% csrf_token %}
|
|
<a class="btn btn-secondary" href="{% url 'adm-agencys' %}" name="action" disabled="true">Abbrechen</a>
|
|
<button style="float: right" class="btn btn-primary" type="submit" name="action" disabled="true" id="dodel"><b>Agentur <b>{{object.name}}</b> unwiderruflich löschen</button>
|
|
|
|
<script type="text/javascript">
|
|
function toggleDoDelBtn(){
|
|
if($('#confirmDel').prop('checked')){
|
|
$('#dodel').attr('disabled', false);
|
|
}
|
|
else{
|
|
$('#dodel').attr('disabled', true);
|
|
}
|
|
|
|
}
|
|
</script>
|
|
</form>
|
|
{% endblock content %}
|