43 lines
1.3 KiB
HTML
43 lines
1.3 KiB
HTML
{% extends "adm/adm_base.html" %}
|
|
{% block content %}
|
|
{% load adm_tags %}
|
|
{% load mathfilters %}
|
|
{% load crispy_forms_tags %}
|
|
{% load humanize %}
|
|
{% load counter_tag %}
|
|
<div class="content-section col-12">
|
|
<h4>Rechnung manuell erstellen</h4>
|
|
<hr>
|
|
Achtung! Sie sind in Begriff, eine Rechnung manuell zu erstellen! Achten Sie auf die korrekte Agentur sowie Start- und Endtermin! Prüfen Sie vor Anlagen Ihre Eingaben!
|
|
<hr>
|
|
|
|
<form method="POST" enctype="multipart/form-data">
|
|
{% csrf_token %}
|
|
{{form.media}}
|
|
{{form|crispy}}
|
|
|
|
<div class="form-check">
|
|
<input class="form-check-input" type="checkbox" value="" id="confirmDel" onclick="javascript:toggleEntryOkButton()">
|
|
<label class="form-check-label" for="confirmDel">
|
|
Bestätigung, dass die Rechnungsinformationenx korrekt sind.
|
|
</label>
|
|
</div>
|
|
|
|
<hr>
|
|
<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="doaddbill"><b>Rechnung inkl. PDF-Generierung erstellen und an Agentur schicken.</button>
|
|
|
|
<script type="text/javascript">
|
|
function toggleEntryOkButton(){
|
|
if($('#confirmDel').prop('checked')){
|
|
$('#doaddbill').attr('disabled', false);
|
|
}
|
|
else{
|
|
$('#doaddbill').attr('disabled', true);
|
|
}
|
|
|
|
}
|
|
</script>
|
|
</form>
|
|
{% endblock content %}
|