From 25e778bebb1804aeaf0d7716119bcbfbe967e8b2 Mon Sep 17 00:00:00 2001 From: etienne Date: Thu, 3 Dec 2009 20:14:54 +0000 Subject: Add tinyMCE editor for description --- templates/base.html | 1 + templates/create.html | 5 +++++ templates/edit.html | 16 +++++++++++++--- 3 files changed, 19 insertions(+), 3 deletions(-) (limited to 'templates') diff --git a/templates/base.html b/templates/base.html index ff30024..b66a341 100644 --- a/templates/base.html +++ b/templates/base.html @@ -4,6 +4,7 @@ {% block title %}Papillon{% endblock %} + {% block fullscript %}{% endblock %} diff --git a/templates/create.html b/templates/create.html index 0b779db..7c3d2b3 100644 --- a/templates/create.html +++ b/templates/create.html @@ -2,6 +2,11 @@ {% load i18n %} {% load markup %} +{% block fullscript %} + {{ form.media }} +{% endblock %} + + {% block content %}

{% trans "New poll" %}

diff --git a/templates/edit.html b/templates/edit.html index 9ddf138..c8b7d75 100644 --- a/templates/edit.html +++ b/templates/edit.html @@ -2,6 +2,13 @@ {% load markup %} {% load i18n %} +{% block fullscript %} + + + +{{ form.media }} +{% endblock %} + {% block content %} {% if not choices %}

{% blocktrans %}As long as no options were added to the poll, @@ -16,15 +23,18 @@ it will not be made available.{% endblocktrans %}

http://{{root_url}}edit/{{poll.base_url}} - +

{% trans "Copy this address and send it to voters who want to participate to this poll" %} - +

http://{{root_url}}poll/{{poll.admin_url}} - {% trans "Address to modify the current poll" %} + +

+ {% trans "Address to modify the current poll" %} +

{% for field in form %} {% if field.is_hidden %} -- cgit v1.2.3