add deployment user to limit deployment

This commit is contained in:
2023-09-24 15:35:22 +02:00
parent 4e1a2ba20b
commit 50963324f3
7 changed files with 83 additions and 7 deletions
+8 -3
View File
@@ -58,9 +58,12 @@
{% endfor %}
</table>
{% include 'pagination.html' %}
<button type="button" class="btn btn-success" data-bs-toggle="modal" data-bs-target="#create-deployment-modal">
<button type="button" {% if can_create %} class="btn btn-success" data-bs-toggle="modal" data-bs-target="#create-deployment-modal" {% else %} class="btn btn-danger" disabled {% endif %}>
Create
</button>
</button>
{% if not can_create %}
<p style="font-style: italic;">You can't create new deployments, contact administrator for support.</p>
{% endif %}
{% else %}
<h4 style="text-align: center;">Please log in !</h4>
{% endif %}
@@ -70,7 +73,9 @@
{% endblock %}
{% block modal %}
{% include 'deployment/create_modal.html' %}
{% if can_create %}
{% include 'deployment/create_modal.html' %}
{% endif %}
{% endblock %}
{% block script %}