<div class="modal-header">
  <button type="button" class="close" ng-click="cancel()">×</button>
  <h3>
    {% block icon %}<i class="{% block icon_name %}{% endblock %}"></i>{% endblock %}
    {% block title %}
    {{title}}
    <span ng-show="profile.can_see_pid() && editingName">
      ([[ editingName]])
    </span>
    {% endblock %}
  </h3>
    {% block process_steps %}
    {% endblock %}
</div>
<div class="modal-body" {% block modal_body_extra %}{% endblock %}>
  {% block modal_body %}{% endblock %}
</div>
<div class="modal-footer">
  {% block pop_buttons %}{% endblock %}

  {% if not single %}
      {% block modal_delete %}
        <span class="float-left" ng-show="editingMode()">
            <button class="btn btn-secondary" ng-click="delete('delete')">
              <i class="fa fa-trash-o"></i>
                Delete
             </button>
         </span>
      {% endblock %}
  {% endif %}

  {% block modal_save %}
  <button class="btn btn-primary" ng-click="save('save')"
          ng-disabled="form.$invalid || saving">
    <i class="fa fa-save"></i>
    Save
  </button>
  {% endblock %}
  {% block modal_cancel %}
  <button class="btn" ng-click="cancel()">Cancel</button>
  {% endblock %}
</div>
