<div id="{{dialog.id}}" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="{{dialog.id}}_label" aria-hidden="true">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title">{*dialog.title*}</h5>
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
      </div>
      <div class="modal-body {{dialog.custom_dialog_class}}">
        <div class="message {{dialog.custom_alert_class or "alert alert-warning"}}">
          {*dialog.message*}
          <span id="{{dialog.id}}_more_content"></span>
        </div>
      </div>
      {% if dialog.no_footer then %}
        {# empty #}
      {% else %}
      <div class="modal-footer">
        {% if dialog.action ~= nil then %}
          <button type="submit" class="btn {{dialog.confirm_button or "btn-primary"}}" onclick="{{dialog.action}}">{*dialog.confirm*}</button>
        {% else %}
          <button id="btn-confirm-action" type="submit" class="btn {{dialog.confirm_button or "btn-primary"}}">{*dialog.confirm*}</button>
        {% end %}
      </div>
      {% end %}
    </div>
  </div>
</div>
