* Split off the detail and list templates into a normal one that generates a full...
[matthijs/projects/xerxes.git] / templates / influences / character_detail_block.html
diff --git a/templates/influences/character_detail_block.html b/templates/influences/character_detail_block.html
new file mode 100644 (file)
index 0000000..6c0a67b
--- /dev/null
@@ -0,0 +1,15 @@
+{% load i18n %}
+<h1>{{ object.name }}</h1>
+{% ifequal object.status "N" %}
+<em>{% trans "This character was not yet approved by the SLs" %}</em>
+{% else %}
+<em>{% trans "This character is approved by the SLs" %}</em>
+{% endifequal %}
+<h2>{% blocktrans with object.name as name %}Influences for {{ name }}{% endblocktrans %}</h2>
+<ul>
+{% for influence in object.influence_set.all %}
+       <li><a href="{% url influences_influence_detail influence.pk %}">{{ influence }}</a></li>
+{% endfor %}
+</ul>
+
+<a href="{% url influences_add_influence_for_character object.id %}">{% trans "Submit influence" %}</a>