Files
@ d84d9de1593b
Branch filter:
Location: copyleftconf-website-fork/pinaxcon/templates/pinax/boxes/_box_body.html - annotation
d84d9de1593b
1.4 KiB
text/html
Merge pull request #7 from northbaypython/josh/copy
updates to site copy, fixes, and addition of markdown support
updates to site copy, fixes, and addition of markdown support
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>
|