mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2025-02-11 12:21:17 +00:00
Only administrators can update the calendar
This commit is contained in:
parent
072ba3b2a3
commit
9571cfc19d
@ -18,8 +18,8 @@
|
|||||||
{% include "base_modal.html" with modal_id="updatePhase" %}
|
{% include "base_modal.html" with modal_id="updatePhase" %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% if user.registration.is_admin %}
|
|
||||||
{% block extrajavascript %}
|
{% block extrajavascript %}
|
||||||
|
{% if user.registration.is_admin %}
|
||||||
<script>
|
<script>
|
||||||
$("tr").click(function () {
|
$("tr").click(function () {
|
||||||
let modalBody = $("#updatePhaseModal div.modal-body");
|
let modalBody = $("#updatePhaseModal div.modal-body");
|
||||||
@ -29,5 +29,5 @@
|
|||||||
$("#updatePhaseModal").modal();
|
$("#updatePhaseModal").modal();
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endblock %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user