uclouvain/osis-dissertation

View on GitHub
templates/file_upload_proposition_dissertaton_modal.html

Summary

Maintainability
Test Coverage
{% extends 'modal.html' %}{% 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-2022 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 %}

{% block modal_id %}proposition_dissertation_file_upload{% endblock %}

{% block modal_title %}{% trans 'Upload your file' %}{% endblock %}

{% block modal_body %}
  <form class="osis-form" method="post" id="proposition_dissertation_file_upload_form">
    {% csrf_token %}
    {% bootstrap_field form.proposition_dissertation_file form_group_class="form-group required_field" %}
  </form>
{% endblock %}

{% block modal_footer %}
  <button type="button" class="btn btn-default" data-dismiss="modal">{% trans "Cancel" %}</button>
  <button type="submit" class="btn btn-primary" name="proposition_dissertation_file_upload" form="proposition_dissertation_file_upload_form">
    {% trans "Upload" context 'dissertation' %}
  </button>
{% endblock %}