cgu_rgpd.html 673 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{% extends "base.html" %}
{% load render_bundle from webpack_loader %}

{% block content %}

    <script>
       var __hasValidatedCguRgpd = {% if user.has_validated_cgu_rgpd %} true {% else %} false {% endif %};
    </script>

    {% render_bundle 'rgpdCgu' %}

    {% if user.has_validated_cgu_rgpd %}
    {% else %}
    <div style="display: none;">
        <!-- Hidden form to be used by react to submit the values -->
        <form method="post">
            {% csrf_token %}
            {{ form.has_validated_cgu_rgpd }}
            <br>
            <input type="submit" value="Valider" id="formSubmitButton">
        </form>
    </div>
    {% endif %}
{% endblock %}