parent
0074d64068
commit
257dd6e2de
12 changed files with 30 additions and 93 deletions
@ -1,43 +0,0 @@ |
||||
<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 'c_admin/forms/multilang.html' %} |
||||
{% endwith %} |
||||
{% with field='title' form=form languages=languages %} |
||||
{% include 'c_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> |
||||
Loading…
Reference in new issue