diff options
Diffstat (limited to 'papillon/templates/edit.html')
-rw-r--r-- | papillon/templates/edit.html | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/papillon/templates/edit.html b/papillon/templates/edit.html index 7ef4f14..b2b38a5 100644 --- a/papillon/templates/edit.html +++ b/papillon/templates/edit.html @@ -3,20 +3,20 @@ {% load i18n %} {% block fullscript %} -<script type="text/javascript" src="{{root_url}}admin/jsi18n/"></script> -<script type="text/javascript" src="{{root_url}}media/js/core.js"></script> -<script type="text/javascript" src="{{root_url}}media/js/admin/RelatedObjectLookups.js"></script> +<script type="text/javascript" src="{%url admin_i18n%}"></script> +<script type="text/javascript" src="{{admin_url}}js/core.js"></script> +<script type="text/javascript" src="{{admin_url}}js/admin/RelatedObjectLookups.js"></script> {{ form.media }} {% endblock %} {% block content %} <h2>{% trans "Edit poll" %}</h2> -<form action="" method="post"> +<form action="." method="post"> <table class='new_poll'> <tr> <td><label>{% trans "Poll url" %}</label></td> <td> -<a href='{{root_url}}poll/{{poll.base_url}}'>{{root_url}}poll/{{poll.base_url}}</a> +<a href='{% url poll poll.base_url%}'>{% url poll poll.base_url%}</a> </td> <td class='form_description'><p> {% trans "Copy this address and send it to voters who want to participate to this poll" %} @@ -25,7 +25,7 @@ <tr> <td><label>{% trans "Administration url" %}</label></td> <td> -<a href='{{root_url}}edit/{{poll.admin_url}}'>{{root_url}}edit/{{poll.admin_url}}</a> +<a href='{% url edit poll.admin_url %}'>{% url edit poll.admin_url %}</a> </td> <td class='form_description'><p> {% trans "Address to modify the current poll" %} @@ -34,7 +34,7 @@ <tr> <td><label>{% trans "Choices administration url" %}</label></td> <td> -<a href='{{root_url}}editChoicesAdmin/{{poll.admin_url}}'>{{root_url}}editChoicesAdmin/{{poll.admin_url}}</a> +<a href='{% url edit_choices_admin poll.admin_url %}'>{% url edit_choices_admin poll.admin_url %}</a> </td> <td class='form_description'><p> {% trans "Address to modify choices of the current poll." %} |