{% if saveButton is not defined %}
    {% set saveButton = 'Save' %}
{% endif %}
<div class="modal fade" id="{{ modalName }}Modal" tabindex="-1" role="dialog" aria-labelledby="{{ modalName }}ModalLabel">
    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content">
            <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" id="{{ modalName }}ModalLabel">{{ modalTitle }}</h4>
            </div>
            <div class="modal-body">
                {% block modalBody %}...{% endblock %}
            </div>
            <div class="modal-footer">
                {% block modalAllButtons %}
                    <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                    {% block modalButtons %}
                        <button type="button" class="btn btn-primary btn-save">{{ saveButton }}</button>
                    {% endblock %}
                {% endblock %}
            </div>
        </div>
    </div>
</div>

{% if closeButton is not defined %}
    {% set closeButton = 'Close' %}
{% endif %}
{% if saveButton is not defined %}
    {% set saveButton = 'Save' %}
{% endif %}
<div class="modal fade" id="{{ modalName }}Modal" tabindex="-1" role="dialog" aria-labelledby="{{ modalName }}ModalLabel">
    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content">
            <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" id="{{ modalName }}ModalLabel">{{ modalTitle }}</h4>
            </div>
            <div class="modal-body">
                {% block modalBody %}Loading form...{% endblock %}
            </div>
            <div class="modal-footer">
                {% block modalAllButtons %}
                    <button type="button" class="btn btn-default" data-dismiss="modal">{{ closeButton }}</button>
                    {% block modalButtons %}
                        <button type="button" class="btn btn-primary btn-save">{{ saveButton }}</button>
                    {% endblock %}
                {% endblock %}
            </div>
        </div>
    </div>
</div>

Allow "close" button text to be specified in Editor/_modalComponent view
Allow "close" button text to be specified in Editor/_modalComponent view
