From 46a067892595d7837ab49f503183861c6755d715 Mon Sep 17 00:00:00 2001 From: Tom O'Dwyer Date: Fri, 6 Sep 2024 15:28:46 +0100 Subject: [PATCH] Replace inline styles with Tailwind classes --- airlock/templates/_includes/header.html | 22 ++++++++++++++---- airlock/templates/activity.html | 2 +- .../file_browser/file_content/csv.html | 2 +- .../file_browser/request/filegroup.html | 23 ++++++++----------- .../file_browser/request/request.html | 2 +- 5 files changed, 30 insertions(+), 21 deletions(-) diff --git a/airlock/templates/_includes/header.html b/airlock/templates/_includes/header.html index 9c540143..56136fd9 100644 --- a/airlock/templates/_includes/header.html +++ b/airlock/templates/_includes/header.html @@ -67,17 +67,29 @@
-

TEST MODE ONLY

+

TEST MODE ONLY

{% for username, token in dev_users.items %}
+ action="{% url 'login' %}" + method="POST" + > {% csrf_token %} - +
{% endfor %}
diff --git a/airlock/templates/activity.html b/airlock/templates/activity.html index e888c626..887b7b98 100644 --- a/airlock/templates/activity.html +++ b/airlock/templates/activity.html @@ -6,7 +6,7 @@ {% if activity %}

Loading table data...

- + diff --git a/airlock/templates/file_browser/file_content/csv.html b/airlock/templates/file_browser/file_content/csv.html index c5c3e87c..02b498fb 100644 --- a/airlock/templates/file_browser/file_content/csv.html +++ b/airlock/templates/file_browser/file_content/csv.html @@ -16,7 +16,7 @@
{% if use_datatables %}

Loading table data...

-
+ {% else %} {% endif %} diff --git a/airlock/templates/file_browser/request/filegroup.html b/airlock/templates/file_browser/request/filegroup.html index b1fdbabd..8a5b0d4c 100644 --- a/airlock/templates/file_browser/request/filegroup.html +++ b/airlock/templates/file_browser/request/filegroup.html @@ -9,24 +9,21 @@ {% #card title=group.title container=True class="group_modal" %}
-
+ {% csrf_token %} -
-
- {% form_textarea field=group.c2_edit_form.context show_placeholder=True resize=True placeholder="Describe the data to be released in this group of files" class="w-full max-w-lg mx-auto" rows=6 disabled=group.c2_readonly readonly=group.c2_readonly %} -
-
- {% form_textarea field=group.c2_edit_form.controls resize=True show_placeholder=True placeholder="Describe the disclosure controls that have been applied to these files" class="w-full max-w-lg mx-auto" rows=6 disabled=group.c2_readonly readonly=group.c2_readonly %} -
-
+ {% form_textarea field=group.c2_edit_form.context show_placeholder=True resize=True placeholder="Describe the data to be released in this group of files" class="w-full max-w-lg mx-auto" rows=6 disabled=group.c2_readonly readonly=group.c2_readonly %} + {% form_textarea field=group.c2_edit_form.controls resize=True show_placeholder=True placeholder="Describe the disclosure controls that have been applied to these files" class="w-full max-w-lg mx-auto" rows=6 disabled=group.c2_readonly readonly=group.c2_readonly %} {% if not group.c2_readonly %} -
- {% #button type="submit" variant="success" id="edit-group-button" disabled=group.c2_readonly %}Save{% /button %} -
+ {% #button type="submit" variant="success" id="edit-group-button" class="w-min" disabled=group.c2_readonly %}Save{% /button %} {% endif %} -
+
{% #list_group %} {% for comment, comment_class in group.comments %} diff --git a/airlock/templates/file_browser/request/request.html b/airlock/templates/file_browser/request/request.html index d3951f8e..d2387cf4 100644 --- a/airlock/templates/file_browser/request/request.html +++ b/airlock/templates/file_browser/request/request.html @@ -18,7 +18,7 @@
Please confirm that you have read the OpenSAFELY documentation on data release. In particular note that: -
+

All outputs from the NHS England OpenSAFELY COVID-19 service must be aggregated data with small number suppression applied. The service operates as