diff --git a/airlock/templates/file_browser/index.html b/airlock/templates/file_browser/index.html index 01fa7786..259f805e 100644 --- a/airlock/templates/file_browser/index.html +++ b/airlock/templates/file_browser/index.html @@ -16,11 +16,44 @@ {% #airlock_header context=context release_request=release_request title=title workspace=workspace %} {% if is_author %} {% if release_request.status_owner.name == "AUTHOR" %} -
- {% #modal id="withdrawRequest" button_text="Withdraw this request" variant="warning" %} + {% if release_request.status.name == "PENDING" %} + {% comment %} Initial submission requires confirmation modal {% endcomment %} + {% #modal id="submitRequest" button_text="Submit for review" button_variant="success" %} + {% #card container=True title="Submit this request for review" %} + + {% /card %} + {% /modal %} + {% else %} + {% comment %} Subsequent re-submission requires just a button press {% endcomment %} + + {% endif %} + {% #modal id="withdrawRequest" button_text="Withdraw this request" button_variant="warning" %} {% #card container=True title="Withdraw this request" %}