Files
@ e6c623a69ca9
Branch filter:
Location: symposion_app/pinaxcon/templates/pinax/boxes/_box_body.html - annotation
e6c623a69ca9
1.4 KiB
text/html
Refactors all speaker-facing forms and editing pages to use the new theme (#27)
* Themes speaker_edit.html
* speaker_create now uses takeflight theme
* proposal_submit_kind now uses takeflight theme
* fixes bug in form_snippet
* Optimises proposals_submit_kind
* proposal_submit now uses wagtail theme
* Proposal_edit now uses new theme
* More forms
* Proposal details page now loads from take flight theme
* proposal_fields now looks nicer under the take flight theme
* proposal_speaker_manage rethemed
* Themes speaker_edit.html
* speaker_create now uses takeflight theme
* proposal_submit_kind now uses takeflight theme
* fixes bug in form_snippet
* Optimises proposals_submit_kind
* proposal_submit now uses wagtail theme
* Proposal_edit now uses new theme
* More forms
* Proposal details page now loads from take flight theme
* proposal_fields now looks nicer under the take flight theme
* proposal_speaker_manage rethemed
04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 ad9e5484f3ea 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 | {% load i18n %}
{% if form %}
<div id="edit_{{ label }}" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<form id="edit_form_{{ label }}" accept-charset="UTF-8" class="modal-form" method="POST" action="{{ form_action }}?next={{ request.path }}">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title">{% trans "Editing content:" %} {{ label }}</h4>
</div>
<div class="modal-body form-group">
{% csrf_token %}
{{ form.content }}
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-primary">Save changes</button>
</div>
</form>
</div>
</div>
</div>
{% endif %}
<div id="content_{{ label }}" class="content-box {% if form %}editable{% endif %}">
{% if form %}
<a href="#edit_{{ label }}" data-toggle="modal" class="btn btn-default btn-sm edit-toggle">
<i class="fa fa-pencil"></i>
Edit this content
</a>
{% endif %}
{{ box.content_html|safe }}
</div>
|