mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-06-21 11:18:27 +02:00
Protect pages (not tested)
This commit is contained in:
@ -30,8 +30,8 @@
|
||||
|
||||
{% block extrajavascript %}
|
||||
<script>
|
||||
$("#id_role").change(function() {
|
||||
let selected_role = $("#id_role :selected");
|
||||
$("#id_type").change(function() {
|
||||
let selected_role = $("#id_type :selected");
|
||||
if (selected_role.val() === "volunteer") {
|
||||
$("#registration_form").html($("#volunteer_registration_form").html());
|
||||
}
|
||||
|
@ -4,9 +4,9 @@
|
||||
|
||||
{% block content %}
|
||||
{% if user.registration.is_admin %}
|
||||
<button href="{% url "registration:add_organizer" %}" class="btn btn-block btn-secondary">
|
||||
<a href="{% url "registration:add_organizer" %}" class="btn btn-block btn-secondary">
|
||||
<i class="fas fa-user-plus"></i> {% trans "Add organizer" %}
|
||||
</button>
|
||||
</a>
|
||||
<hr>
|
||||
{% endif %}
|
||||
|
||||
|
Reference in New Issue
Block a user