71 lines
1.9 KiB
Plaintext
Executable File
71 lines
1.9 KiB
Plaintext
Executable File
{% ifnotequal img.id 1 %}
|
|
<div id="button_prev" class="button" style="position: absolute; left:0px">
|
|
<a href='/slider/{{ img.id|add:"-1" }}/'>Previous</a>
|
|
</div>
|
|
{% endifnotequal %}
|
|
<div id="button_next" class="button" style="position: absolute; right:0px">
|
|
<a href='/slider/{{ img.id|add:"1" }}/'>Next</a>
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<div id="imagecontainer" style="text-align: center">
|
|
<img src="{{ img.image.url }}" style="border: 1px solid; padding: 2px">
|
|
<br><b>{{ img.caption }}</b><br>
|
|
</div>
|
|
|
|
<div id="commentscontainer" style="text-align: center">
|
|
|
|
{% load comments %}
|
|
|
|
|
|
{% get_comment_list for editor.sliderimage img.id as comment_list %}
|
|
{% ifnotequal comment_list 0 %}
|
|
<h3>Comments</h3>
|
|
{% for comment in comment_list %}
|
|
<b> {{ comment }} </b><br>
|
|
{% endfor %}
|
|
{% endifnotequal %}
|
|
<br><br><br>
|
|
|
|
{% get_comment_form for editor.sliderimage img.id as myform %}
|
|
<form action="{% comment_form_target %}" method="POST">
|
|
{{ form }}
|
|
<tr>
|
|
<td>
|
|
<label for="id_name">Name: </label> <input type="text"
|
|
maxlength="50" name="name" id="id_name"/><br>
|
|
<label for="id_email">Email: </label> <input type="text"
|
|
id="id_email" name="email"/><br>
|
|
<label for="id_comment">Comment: </label><textarea name="comment"
|
|
cols="40" rows="10"
|
|
id="id_comment"/></textarea><br></td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td>
|
|
<input type="hidden" id="id_content_type" value="editor.sliderimage"
|
|
name="content_type"/>
|
|
<input type="hidden" id="id_object_pk" value="5" name="object_pk"/>
|
|
<input type="hidden" id="id_timestamp" value="1254298564"
|
|
name="timestamp"/>
|
|
<input type="hidden" id="id_security_hash"
|
|
value="c1287f8682b7fbb44d31d1c8fae90ee539a2b264" name="security_hash"/>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td><input type="hidden" name="next" value="{{img.url}}" />
|
|
</td>
|
|
<td>
|
|
<input type="submit" value="Post" class="submit-post" name="post"/>
|
|
<input type="submit" name="preview" class="submit-post" value="Preview"></td>
|
|
</tr>
|
|
</form>
|
|
|
|
|
|
</div>
|
|
|
|
|