symposion_app/pinaxcon/templates/symposion/sponsorship/detail.html
2015-10-16 12:53:02 -05:00

40 lines
1.2 KiB
HTML

{% extends "site_base.html" %}
{% load bootstrap %}
{% load i18n %}
{% block head_title %}{{ sponsor }}{% endblock %}
{% block page_title %}{% trans "Sponsorship" %}{% endblock %}
{% block body %}
<h2>{{ sponsor.name }} ({{ sponsor.level }})</h2>
<form enctype="multipart/form-data" method="POST" action="" class="form-horizontal">
{% csrf_token %}
<fieldset>
{{ form|bootstrap_horizontal }}
</fieldset>
<h3>{{ sponsor.level }} Sponsor Benefits</h3>
{{ formset.management_form }}
{{ formset.non_form_errors }}
{% for form in formset.forms %}
<div class="control-group">
<label class="control-label">{{ form.instance.benefit }}</label>
<div class="controls">
{{ form }}
<p class="help-block">{{ form.instance.benefit.description }}</p>
</div>
</div>
{% endfor %}
<div class="form-actions">
<input class="btn btn-primary" type="submit" value="Save" />
<a class="btn btn-default" href="{% url "dashboard" %}">Cancel</a>
</div>
</form>
{% endblock %}