Files
record/templates/asuzr/sketches.html

28 lines
812 B
HTML

{% extends "asuzr/base.html" %}
{% load thumbnail %}
{% block page %}
<style>
#list li{
list-style-type: none; /* Прячем исходные маркеры */
}
</style>
{% if sketch_list %}
<ul id = "list">
{% for sketch in sketch_list %}
<li> {% thumbnail sketch.sketch_file "200x200" crop="center" as im %} <a href = {{sketch.sketch_file.url}}> <img src = "{{ im.url }}"> </a>{% endthumbnail %} </li>
{% endfor %}
</ul>
{% endif %}
{% endblock %}
{% block additional %}
<div class="inline">
<form action="/sketches/{{ order_id }}/" method="POST" enctype="multipart/form-data">
{% csrf_token %}
<div>Добавить эскизы:</div>
<input type="file" name="sketch_file" multiple />
<input type="submit" text="Добавить эскиз">
</form>
</div>
{% endblock %}