Files @ 6d3d2de2b330
Branch filter:

Location: CopyleftConf/copyleftconf-website/pinaxcon/templates/pinax/boxes/_box_body.html

Patrick Altman
Add admin user: u: pinax, p: django
{% 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">&times;</span></button>
                        <h4 class="modal-title">{% trans "Editing content:" %} {{ label }}</h4>
                    </div>
                    <div class="modal-body">
                        {% 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>