uclouvain/osis-dissertation

View on GitHub
templates/propositiondocumentfile_confirm_delete_inner.html

Summary

Maintainability
Test Coverage
{% load static %}
{% load bootstrap3 i18n %}

{% comment "License" %}
 * OSIS stands for Open Student Information System. It's an application
 * designed to manage the core business of higher education institutions,
 * such as universities, faculties, institutes and professional schools.
 * The core business involves the administration of students, teachers,
 * courses, programs and so on.
 *
 * Copyright (C) 2015-2019 Université catholique de Louvain (http://www.uclouvain.be)
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * A copy of this license - GNU General Public License - is available
 * at the root of the source code of this program.  If not,
 * see http://www.gnu.org/licenses/.
{% endcomment %}

<div class="page-header col-md-offset-3">
  <h2>{% trans 'Delete file' %}</h2>
</div>
<div class="modal-body" id="form-modal-body">
  <form method="POST" id="form-modal" class="post-form" action="{{ request.get_full_path }}">
      {% csrf_token %}

      <div class="row">
          <div class="col-md-8 col-md-offset-1">
            <span>{% trans 'Are you sure you want to delete this document?' %} </span>
          </div>
      </div>
  </form>
  {{ form.media }}
</div>

<div class="modal-footer" style="text-align:right">
   <button type="button" class="btn btn-default" data-dismiss="modal" id="bt_cancel_remove_manager_modal">{% trans 'Cancel' %}</button>
   <button type="submit" class="save btn btn-primary" onclick="$('#form-modal').submit();">{% trans 'Delete' %}</button>
</div>