newsletter_form.html 606 Bytes
Newer Older
1 2 3
{% extends "base.html" %}

{% block extrascripts %}
fred's avatar
fred committed
4 5
<script src="{{ STATIC_URL }}ckeditor/ckeditor/ckeditor.js"></script>
<script src="{{ STATIC_URL }}ckeditor/ckeditor-init.js"></script>
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
{% endblock %}

{% block appbar %}
{% if object %}
<h2>{{ object.date }}</h2>
{% else %}
<h2>Nouvelle newsletter</h2>
{% endif %}
{% endblock %}

{% block content %}
    <form method="post">
      <div id="form-content">
        {% csrf_token %}
        {{ form.as_p }}
      </div>
      {% block buttons %}
      <button class="enable-on-change">Enregistrer</button>
      {% endblock %}
    </form>
{% endblock %}