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.
 
 
 
 
 
 

59 lines
2.5 KiB

{% extends 'base.html' %}
{% load static %}
{% load thumbnail %}
{% block scripts %}
<link href="{% static 'js/select/select2.css' %}" rel="stylesheet"/>
<script src="{% static 'js/select/select2.js' %}"></script>
{% endblock %}
{% block body %}
<form method="post" class="form-horizontal" enctype="multipart/form-data" name="form1" id="form1"> {% csrf_token %}
<fieldset>
<legend><i class="icon-edit"></i>{% if object %} Изменить {% else %} Добавить {% endif %}выставку{% if object %}(<a target="_blank" href="{{ object.get_permanent_url }}">на сайте</a>){% endif %}</legend>
<div class="box span8" >
<div class="box-header well">
<h2><i class="icon-pencil"></i> Основная информация</h2>
</div>
<div class="box-content">
<div class="control-group {% if form.org_logo.errors %}error{% endif %}">
<label class="control-label">{{ form.org_logo.label }}:</label>
<div class="controls">{{ form.org_logo }}
<span class="help-inline">{{ form.org_logo.errors }}</span>
</div>
</div>
<div class="control-group {% if form.oficial_link.errors %}error{% endif %}">
<label class="control-label">{{ form.oficial_link.label }}:</label>
<div class="controls">{{ form.oficial_link }}
<span class="help-inline">{{ form.oficial_link.errors }}</span>
</div>
</div>
<div class="control-group {% if form.participation_link.errors %}error{% endif %}">
<label class="control-label">{{ form.participation_link.label }}:</label>
<div class="controls">{{ form.participation_link }}
<span class="help-inline">{{ form.participation_link.errors }}</span>
</div>
</div>
<div class="control-group {% if form.tickets_link.errors %}error{% endif %}">
<label class="control-label">{{ form.tickets_link.label }}:</label>
<div class="controls">{{ form.tickets_link }}
<span class="help-inline">{{ form.tickets_link.errors }}</span>
</div>
</div>
</div>
</div>
<div class="controls">
<input class="btn btn-large btn-primary" type="submit" value="Добавить">
<input class="btn btn-large" type="reset" value="Отмена">
</div>
</fieldset>
</form>
{% endblock %}