From: Matthijs Kooijman Date: Wed, 23 Jan 2008 19:18:59 +0000 (+0100) Subject: * Renamed character_addinfluence template to add. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=d97a17fc5f4d7f1f7e70220171352224f64b2cf6;p=matthijs%2Fprojects%2Fxerxes.git * Renamed character_addinfluence template to add. --- diff --git a/influences/views.py b/influences/views.py index b13c83e..8471902 100644 --- a/influences/views.py +++ b/influences/views.py @@ -32,7 +32,7 @@ def add(request, character_id): # Only allow characters of the current user f.fields['character']._set_queryset(request.user.character_set.all()) - return render_to_response('influences/character_addinfluence.html', {'message' : message, 'form' : f}) + return render_to_response('influences/add.html', {'message' : message, 'form' : f}) def addCharacter(request): message = None diff --git a/templates/influences/add.html b/templates/influences/add.html new file mode 100644 index 0000000..db277e9 --- /dev/null +++ b/templates/influences/add.html @@ -0,0 +1,13 @@ +{% load i18n %} +

{% trans "Submit influence" %}

+{% if message %} +{{ message }} +{% endif %} +{% if form %} +
+ +{{ form.as_table }} +
+ +
+{% endif %} diff --git a/templates/influences/character_addinfluence.html b/templates/influences/character_addinfluence.html deleted file mode 100644 index db277e9..0000000 --- a/templates/influences/character_addinfluence.html +++ /dev/null @@ -1,13 +0,0 @@ -{% load i18n %} -

{% trans "Submit influence" %}

-{% if message %} -{{ message }} -{% endif %} -{% if form %} -
- -{{ form.as_table }} -
- -
-{% endif %}