{% extends 'dg_ufr/base_ufr.html' %}
{% load static %}
{% load custom_tag %}
{% load custom_tag_obj %}
{% load widget_tweaks %}
{% block content %}
<div class="card mb-3">
    <div class="card-header">
        <i class="fas fa-table"></i>
        MODIFIER UNE INFORMATION
    </div>
    <div class="card-body">
        <form method="post" action="#">
            {% csrf_token %}
                <div class="form-group">
                <label>Titre</label>
                {% render_field form.titre class="form-control" placeholder="Entrez le titre" %}
            </div>
            <div class="form-group">
                <label>Message</label>
                {% render_field form.message class="form-control" placeholder="Information à véhiculer" %}
            </div>
            <div class="form-group">
                <label>Cible</label>
                {% render_field form.cible class="form-control" %}
            </div>
            <div class="form-group">
                <label>UFR</label>
                {% render_field form.ufr class="form-control" %}
            </div>
            <div class="form-group">
                <label>Date limite de diffusion</label>
                {% render_field form.limite type="date" class="form-control" %}
            </div>
            <div class="form-group row col-md-3">
                <label>Voulez-vous publier cette info?</label>
                {% render_field form.published type="checkbox" class="form-control" %}
            </div>

            <br/>
            <div class="modal-footer">
            <button type="button" class="btn btn-secondary" data-dismiss="modal">Annuler</button>
            <button type="submit" name="addGroupBtn" class="btn btn-success">Enregistrer</button>
          </div>

        </form>
    </div>
</div>

{% endblock content %}

{% block custom_js %}

{% endblock custom_js %}