add deployment user to limit deployment
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user