40 lines
1.2 KiB
HTML
40 lines
1.2 KiB
HTML
{% extends "users/base.html" %}
|
|
{% load crispy_forms_tags %}
|
|
{% block content %}
|
|
{% if request.user.profile.agency.module_recoverdir %}
|
|
<div class="content-section col-9">
|
|
<h3>Persönlichen Brief erstellen</h3>
|
|
<hr>
|
|
<form method="POST" enctype="multipart/form-data">
|
|
{% csrf_token %}
|
|
{{normalForm.media}}
|
|
{{ form|crispy }}
|
|
<hr>
|
|
<a class="btn" href="{% url 'recoverdir' %} ">Abbrechen</a>
|
|
<button type="submit" class="btn btn-primary" style="float: right;">Persönlichen Brief speichern</button>
|
|
</form>
|
|
</div>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() {
|
|
$('#id_text').summernote({
|
|
height: 400,
|
|
lang: "de-DE",
|
|
disableDragAndDrop: true,
|
|
toolbar: [
|
|
['style', ['style']],
|
|
['fontname', ['fontname']],
|
|
['style', ['bold', 'italic', 'underline', 'clear']],
|
|
['fontsize', ['fontsize']],
|
|
['color', ['color']],
|
|
['para', ['ul', 'ol', 'paragraph']],
|
|
['height', ['height']],
|
|
['view', ['fullscreen']],
|
|
]
|
|
});
|
|
});
|
|
</script>
|
|
{% else %}
|
|
<h3>Das Modul Notfallhilfe wurden in ihrer Agentur deaktiviert.</h3>
|
|
{% endif %}
|
|
{% endblock content %}
|