You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.7 KiB
43 lines
1.7 KiB
<div class="modal hide fade" id="photopopup" >
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true" id="close">×</button>
|
|
<h3>Добавить фото</h3>
|
|
</div>
|
|
<form method="post" class="form-horizontal" id="photo_form" enctype="multipart/form-data" action="{{ object.upload_photo_url }}"> {% csrf_token %}
|
|
|
|
<div class="modal-body">
|
|
|
|
<div class="control-group{% if form.image.errors %}error{% endif %}">
|
|
<label class="control-label">{{ form.image.label }}:</label>
|
|
<div class="controls">{{ form.image }}
|
|
<span class="help-inline">{{ form.image.errors }}</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="control-group{% if form.sort.errors %}error{% endif %}">
|
|
<label class="control-label">{{ form.sort.label }}:</label>
|
|
<div class="controls">{{ form.sort }}
|
|
<span class="help-inline">{{ form.sort.errors }}</span>
|
|
</div>
|
|
</div>
|
|
|
|
{% with field='caption' form=form languages=languages %}
|
|
{% include 'admin/forms/multilang.html' %}
|
|
{% endwith %}
|
|
{% with field='title' form=form languages=languages %}
|
|
{% include 'admin/forms/multilang.html' %}
|
|
{% endwith %}
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
<div class="controls">
|
|
<input class="btn btn-primary" type="submit" value="Добавить">
|
|
<input type="reset" class="btn" value="Отменить" data-dismiss="modal">
|
|
|
|
</div>
|
|
</div>
|
|
</form>
|
|
|
|
|
|
</div> |