692d0b09ea9f81bb0b4425f4b6745480a8d3ab3d
[matthijs/projects/xerxes.git] / templates / influences / influence_detail_block.html
1 {% load i18n %}
2 {% load threadedcommentstags %}
3
4 <h1>{{ object.summary }}</h1>
5 <table>
6 <tr><td>{% trans "Contact" %}:</td><td>{{ object.contact }}</td></tr>
7 <tr><td>{% trans "Character" %}:</td><td><a href="{% url influences_character_detail object.character.id %}">{{ object.character }}</a></td></tr>
8 {% if object.longterm %}
9 <tr><td>{% trans "Long term" %}:</td><td>{{ object.longterm|yesno|capfirst }}</td></tr>
10 {% endif %}
11 </table>
12 <p>{{ object.description }}</p>
13                 
14 <h2>{% trans "Comments" %}</h2>
15 {% include "influences/influence_comments_block.html" %}
16
17 <p style="display:none;" id="replyLink"><a href="javascript:showReply('')">Add comment</a></p>
18 <div id="replyForm">
19 <script type="text/javascript">hideReply('')</script>
20 <h3>{% trans "Add comment" %}</h3>
21 <form method="post" action="{% url influences_influence_comment object.id %}">
22         <p><a href="javascript:hideReply('')">Cancel comment</a></p>
23     <table>
24     {{ comment_form.as_table }}
25     </table>
26     <div><input type="submit" value="{% trans "Add comment" %}" /></div>
27     {# <input type="submit" name="preview" value="{% trans "Preview comment" %}" /></li> #}
28 </form>
29 </div>