diff options
| author | etienne <etienne@07715635-78ed-41b0-aaf1-0afda6c37f35> | 2009-12-03 20:14:54 +0000 |
|---|---|---|
| committer | etienne <etienne@07715635-78ed-41b0-aaf1-0afda6c37f35> | 2009-12-03 20:14:54 +0000 |
| commit | 25e778bebb1804aeaf0d7716119bcbfbe967e8b2 (patch) | |
| tree | 422921259d8d4512c490f84a208ea3f11b924107 /templates | |
| parent | 4182410b07eaff60effce203be0daaded3b0a8be (diff) | |
| download | Papillon-25e778bebb1804aeaf0d7716119bcbfbe967e8b2.tar.bz2 Papillon-25e778bebb1804aeaf0d7716119bcbfbe967e8b2.zip | |
Add tinyMCE editor for description
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/base.html | 1 | ||||
| -rw-r--r-- | templates/create.html | 5 | ||||
| -rw-r--r-- | templates/edit.html | 16 |
3 files changed, 19 insertions, 3 deletions
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 @@ <head> <link rel="stylesheet" href="http://{{root_url}}static/styles.css" /> <title>{% block title %}Papillon{% endblock %}</title> + {% block fullscript %}{% endblock %} </head> <body> 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 %} <h2>{% trans "New poll" %}</h2> <form action="" method="post"> 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 %} +<script type="text/javascript" src="http://{{root_url}}admin/jsi18n/"></script> +<script type="text/javascript" src="http://{{root_url}}media/js/core.js"></script> +<script type="text/javascript" src="http://{{root_url}}media/js/admin/RelatedObjectLookups.js"></script> +{{ form.media }} +{% endblock %} + {% block content %} {% if not choices %} <p class='error'>{% blocktrans %}As long as no options were added to the poll, @@ -16,15 +23,18 @@ it will not be made available.{% endblocktrans %}</p> <td> <a href='http://{{root_url}}edit/{{poll.base_url}}'>http://{{root_url}}edit/{{poll.base_url}}</a> </td> - <td class='form_description'> + <td class='form_description'><p> {% trans "Copy this address and send it to voters who want to participate to this poll" %} - </td> + </p></td> </tr> <tr> <td><label>{% trans "Administration url" %}</label></td> <td> <a href='http://{{root_url}}poll/{{poll.admin_url}}'>http://{{root_url}}poll/{{poll.admin_url}}</a> - <td class='form_description'>{% trans "Address to modify the current poll" %}</td> + </td> + <td class='form_description'><p> + {% trans "Address to modify the current poll" %} + </p></td> </tr> {% for field in form %} {% if field.is_hidden %} |
