* Fix the approved/not approved display in the character_detail display, it always...
[matthijs/projects/xerxes.git] / templates / influences / character_detail.html
index 56c60cd50bcc18528abe6438c6b7dc233919cfe1..09afc68bc32aae774684635619f107e26ad36ddf 100644 (file)
@@ -1,9 +1,21 @@
+{% extends "base/base.html" %}
+{% load i18n %}
+
+{% block content %}
+
 <h1>{{ object.name }}</h1>
-Influences voor {{ object.name }}
+{% 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.objects.all %}
-       <li>{{ influence }}</li>
+{% for influence in object.influence_set.all %}
+       <li><a href="{% url influences_influence_detail influence.pk %}">{{ influence }}</a></li>
 {% endfor %}
 </ul>
 
-<a href="/influences/character/{{ object.id }}/addinfluence">Influence toevoegen</a>
+<a href="{% url influences_add_influence_for_character object.id %}">{% trans "Submit influence" %}</a>
+
+{% endblock %}