diff --git a/airlock/templates/_components/article/header.html b/airlock/templates/_components/article/header.html deleted file mode 100644 index 09844f97..00000000 --- a/airlock/templates/_components/article/header.html +++ /dev/null @@ -1,11 +0,0 @@ -
-

- {{ title }} -

- {% if text %} -
- {{ text }} -
- {% endif %} - {{ children }} -
diff --git a/airlock/templates/_components/breadcrumbs/breadcrumb.html b/airlock/templates/_components/breadcrumbs/breadcrumb.html deleted file mode 100644 index d9604bdc..00000000 --- a/airlock/templates/_components/breadcrumbs/breadcrumb.html +++ /dev/null @@ -1,30 +0,0 @@ -
  • - {% if title == "Home" %} - - {% icon_home_outline class="flex-shrink-0 h-5 w-5" %} - {{ title }} - - {% else %} - {% if url %} - - {{ title }} - - {% if location %} - {% tooltip position="-bottom-2" content=location %} - {% endif %} - - {% else %} - - {{ title }} - - {% if location %} - {% tooltip position="-bottom-2" content=location %} - {% endif %} - - {% endif %} - {% endif %} - - {% if not active %} - {% icon_chevron_right_outline class="flex-shrink-0 h-5 w-5 text-oxford/25" %} - {% endif %} -
  • diff --git a/airlock/templates/_components/breadcrumbs/breadcrumbs-container.html b/airlock/templates/_components/breadcrumbs/breadcrumbs-container.html deleted file mode 100644 index fed017c8..00000000 --- a/airlock/templates/_components/breadcrumbs/breadcrumbs-container.html +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/airlock/templates/_components/code.html b/airlock/templates/_components/code.html deleted file mode 100644 index f8ed83d0..00000000 --- a/airlock/templates/_components/code.html +++ /dev/null @@ -1 +0,0 @@ -{{ children }} diff --git a/airlock/templates/_components/footer.html b/airlock/templates/_components/footer.html deleted file mode 100644 index a6c0157a..00000000 --- a/airlock/templates/_components/footer.html +++ /dev/null @@ -1,103 +0,0 @@ -{% load static %} - - diff --git a/airlock/templates/_components/form/fieldset.html b/airlock/templates/_components/form/fieldset.html deleted file mode 100644 index d2c6950d..00000000 --- a/airlock/templates/_components/form/fieldset.html +++ /dev/null @@ -1,3 +0,0 @@ -
    - {{ children }} -
    diff --git a/airlock/templates/_components/form/legend.html b/airlock/templates/_components/form/legend.html deleted file mode 100644 index 50d4e55c..00000000 --- a/airlock/templates/_components/form/legend.html +++ /dev/null @@ -1,3 +0,0 @@ - - {{ text }} - diff --git a/airlock/templates/_components/grid/col-lg-span-2.html b/airlock/templates/_components/grid/col-lg-span-2.html deleted file mode 100644 index 2632b4fe..00000000 --- a/airlock/templates/_components/grid/col-lg-span-2.html +++ /dev/null @@ -1,3 +0,0 @@ -
    - {{ children }} -
    diff --git a/airlock/templates/_components/grid/col-span-1.html b/airlock/templates/_components/grid/col-span-1.html deleted file mode 100644 index bdc5fb28..00000000 --- a/airlock/templates/_components/grid/col-span-1.html +++ /dev/null @@ -1,3 +0,0 @@ -
    - {{ children }} -
    diff --git a/airlock/templates/_components/grid/three-cols.html b/airlock/templates/_components/grid/three-cols.html deleted file mode 100644 index 9ba6ac07..00000000 --- a/airlock/templates/_components/grid/three-cols.html +++ /dev/null @@ -1,3 +0,0 @@ -
    - {{ children }} -
    diff --git a/airlock/templates/_components/header.html b/airlock/templates/_components/header.html deleted file mode 100644 index bbf18368..00000000 --- a/airlock/templates/_components/header.html +++ /dev/null @@ -1,182 +0,0 @@ -
    - -
    diff --git a/airlock/templates/_components/link.html b/airlock/templates/_components/link.html deleted file mode 100644 index 58d9fca2..00000000 --- a/airlock/templates/_components/link.html +++ /dev/null @@ -1,12 +0,0 @@ -{{ text }}{{ append_after }} diff --git a/airlock/templates/_components/log-item.html b/airlock/templates/_components/log-item.html deleted file mode 100644 index ddf0279e..00000000 --- a/airlock/templates/_components/log-item.html +++ /dev/null @@ -1,13 +0,0 @@ -{% load humanize %} - -
  • -
    -
    - {{ children }} -
    - - {% #time datetime=created_at.isoformat tooltip=created_at|date:"Y-m-d H:i:sO" class="flex-shrink-0" %} - {{ created_at|naturalday:"d M Y"|capfirst }} - {% /time %} -
    -
  • diff --git a/airlock/templates/_components/multiselect/multiselect-option.html b/airlock/templates/_components/multiselect/multiselect-option.html deleted file mode 100644 index 2e20ad36..00000000 --- a/airlock/templates/_components/multiselect/multiselect-option.html +++ /dev/null @@ -1,3 +0,0 @@ - diff --git a/airlock/templates/_components/multiselect/multiselect.css b/airlock/templates/_components/multiselect/multiselect.css deleted file mode 100644 index 5488ce77..00000000 --- a/airlock/templates/_components/multiselect/multiselect.css +++ /dev/null @@ -1,111 +0,0 @@ -.ts-hidden-accessible { - @apply sr-only; -} - -.multiselect__wrapper.has-items { - margin-top: -0.5rem; -} - -.multiselect__wrapper { - position: relative; - - & .multiselect__dropdown { - display: none; - } - - &.dropdown-active .multiselect__dropdown { - display: block; - } - - &.dropdown-active .multiselect__control input { - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; - border-bottom-color: var(--color-white); - } -} - -.multiselect__control { - display: flex; - flex-direction: row; - flex-wrap: wrap; - gap: 0.5rem; - - & input { - background-color: var(--color-white); - border: 1px solid var(--color-slate-300); - border-radius: 0.375rem; - box-shadow: - 0 0 var(--color-black), - 0 0 var(--color-black), - 0 1px 2px 0 rgba(0, 0, 0, 0.05); - color: var(--color-slate-900); - font-size: 0.875rem; - line-height: 1.5rem; - line-height: 1.25rem; - padding: 0.5rem 0.75rem; - width: 100%; - - &:focus { - border-color: var(--color-oxford-500); - outline: 2px solid var(--color-oxford-500); - outline-offset: -2px; - } - } -} - -.multiselect__item { - background-color: var(--color-oxford-50); - border: 1px solid var(--color-oxford-300); - border-radius: 0.5rem; - color: var(--color-oxford-700); - display: flex; - flex-direction: row; - font-size: 0.9rem; - font-weight: 500; - gap: 0.25rem; - padding: 0.125rem 0.25rem; - - & a { - &:hover, - &:focus { - color: var(--color-bn-ribbon-700); - } - } -} - -.multiselect__dropdown { - background-color: var(--color-white); - border: 1px solid var(--color-slate-300); - border-top-width: 0; - box-shadow: - 0 0 var(--color-black), - 0 0 var(--color-black), - 0 10px 15px -3px rgba(0, 0, 0, 0.1), - 0 4px 6px -4px rgba(0, 0, 0, 0.1); - height: auto; - max-height: 20rem; - overflow-y: auto; - padding: 0.25rem 0; - position: absolute; - width: 100%; - z-index: 100; -} - -.multiselect__option { - border: 1px solid var(--color-slate-200); - border-inline-width: 0; - margin-top: -1px; -} - -.multiselect__option, -.multiselect__dropdown .no-results { - cursor: pointer; - color: var(--color-slate-800); - font-size: 0.95rem; - font-weight: 500; - padding: 0.125rem 1rem; - - &.active { - background-color: var(--color-oxford-50); - } -} diff --git a/airlock/templates/_components/multiselect/multiselect.html b/airlock/templates/_components/multiselect/multiselect.html deleted file mode 100644 index d0975616..00000000 --- a/airlock/templates/_components/multiselect/multiselect.html +++ /dev/null @@ -1,26 +0,0 @@ -{% if custom_field == True %} - {% var input_id=id %} - {% var input_name=name %} -{% else %} - {% var input_id=input.auto_id %} - {% var input_name=input.html_name %} -{% endif %} - -{% var multiple=multiple|default:True %} - -
    - -
    diff --git a/airlock/templates/_components/multiselect/multiselect.js b/airlock/templates/_components/multiselect/multiselect.js deleted file mode 100644 index 38850285..00000000 --- a/airlock/templates/_components/multiselect/multiselect.js +++ /dev/null @@ -1,31 +0,0 @@ -import TomSelect from "@remotedevforce/tom-select"; -import "./multiselect.css"; - -const multiselectElements = document.querySelectorAll(`[data-multiselect]`); - -const newSelect = (body, opts) => new TomSelect(body, opts); - -if (multiselectElements?.length) { - [...multiselectElements].map((node) => { - const opts = { - maxItems: node?.dataset?.maxItems, - plugins: ["remove_button"], - placeholder: node?.dataset?.placeholder, - closeAfterSelect: true, - optionClass: "multiselect__option", - itemClass: "multiselect__item", - wrapperClass: "multiselect__wrapper", - controlClass: "multiselect__control", - dropdownClass: "multiselect__dropdown", - dropdownContentClass: "multiselect__dropdown-content", - onDropdownOpen(dropdown) { - dropdown.removeAttribute("style"); - }, - onDropdownClose(dropdown) { - dropdown.removeAttribute("style"); - }, - }; - - return newSelect(node, opts); - }); -} diff --git a/airlock/templates/_components/pill/application-status.html b/airlock/templates/_components/pill/application-status.html deleted file mode 100644 index 5d65d333..00000000 --- a/airlock/templates/_components/pill/application-status.html +++ /dev/null @@ -1,24 +0,0 @@ -{% var text=status|capfirst %} - -{% if status == "approved_fully" %} - {% pill variant="success" text="Approved fully" class=class %} - -{% elif status == "approved_subject_to" %} - {% pill variant="success" text="Approved subject to" class=class %} - -{% elif status == "completed" %} - {% pill variant="success" text=text class=class %} - -{% elif status == "submitted" %} - {% pill variant="primary" text=text class=class %} - -{% elif status == "rejected" or status == "deleted" %} - {% pill variant="danger" text=text class=class %} - -{% elif status == "deferred" %} - {% pill variant="warning" text=text class=class %} - -{% elif status == "ongoing" %} - {% pill variant="info" text=text class=class %} - -{% endif %} diff --git a/airlock/templates/_components/pill/project-status.html b/airlock/templates/_components/pill/project-status.html deleted file mode 100644 index 9af9957a..00000000 --- a/airlock/templates/_components/pill/project-status.html +++ /dev/null @@ -1,16 +0,0 @@ -{% if status == "completed-and-awaiting" or status == "completed-and-linked" %} - {% pill variant="success" text="Completed" %} - -{% elif status == "approved_subject_to" %} - {% pill variant="success" text="Approved subject to" %} - -{% elif status == "ongoing" or status == "ongoing-and-linked" %} - {% pill variant="primary" text=text %} - -{% elif status == "retired" %} - {% pill variant="danger" text=text %} - -{% elif status == "postponed" %} - {% pill variant="warning" text=text %} - -{% endif %} diff --git a/airlock/templates/_components/skip-link.html b/airlock/templates/_components/skip-link.html deleted file mode 100644 index ebb04aea..00000000 --- a/airlock/templates/_components/skip-link.html +++ /dev/null @@ -1,5 +0,0 @@ - - Skip to content - diff --git a/airlock/templates/_components/table/table-body.html b/airlock/templates/_components/table/table-body.html deleted file mode 100644 index 3cd66c68..00000000 --- a/airlock/templates/_components/table/table-body.html +++ /dev/null @@ -1,3 +0,0 @@ - - {{ children }} - diff --git a/airlock/templates/_components/table/table-cell.html b/airlock/templates/_components/table/table-cell.html deleted file mode 100644 index e4b33825..00000000 --- a/airlock/templates/_components/table/table-cell.html +++ /dev/null @@ -1,3 +0,0 @@ - - {{ children }} - diff --git a/airlock/templates/_components/table/table-head.html b/airlock/templates/_components/table/table-head.html deleted file mode 100644 index a379f7e1..00000000 --- a/airlock/templates/_components/table/table-head.html +++ /dev/null @@ -1,3 +0,0 @@ - - {{ children }} - diff --git a/airlock/templates/_components/table/table-header.html b/airlock/templates/_components/table/table-header.html deleted file mode 100644 index 256330cf..00000000 --- a/airlock/templates/_components/table/table-header.html +++ /dev/null @@ -1,10 +0,0 @@ - - {{ children }} - diff --git a/airlock/templates/_components/table/table-pagination.html b/airlock/templates/_components/table/table-pagination.html deleted file mode 100644 index 8e2f9cf9..00000000 --- a/airlock/templates/_components/table/table-pagination.html +++ /dev/null @@ -1,29 +0,0 @@ -{% if paginator %} - {% var page_number=paginator.number %} - {% var total_pages=paginator.paginator.num_pages %} - {% var has_previous=paginator.has_previous %} - {% var has_next=paginator.has_next %} -{% endif %} - - diff --git a/airlock/templates/_components/table/table-row.html b/airlock/templates/_components/table/table-row.html deleted file mode 100644 index fe713284..00000000 --- a/airlock/templates/_components/table/table-row.html +++ /dev/null @@ -1 +0,0 @@ -{{ children }} diff --git a/airlock/templates/_components/table/table.html b/airlock/templates/_components/table/table.html deleted file mode 100644 index a351bfa8..00000000 --- a/airlock/templates/_components/table/table.html +++ /dev/null @@ -1,3 +0,0 @@ - - {{ children }} -
    diff --git a/airlock/templates/_components/time.html b/airlock/templates/_components/time.html deleted file mode 100644 index 864a08dd..00000000 --- a/airlock/templates/_components/time.html +++ /dev/null @@ -1,15 +0,0 @@ - diff --git a/airlock/templates/_components/timeline-item.html b/airlock/templates/_components/timeline-item.html deleted file mode 100644 index 59028d43..00000000 --- a/airlock/templates/_components/timeline-item.html +++ /dev/null @@ -1,48 +0,0 @@ -{% load humanize %} - -
  • - {% if not last %} - - {% endif %} -
    - - {{ children }} - -
    - {% if time or content %} -

    - {{ title }} - {% if time %} - - {% else %} - - {{ content }} - - {% endif %} -

    - {% else %} -

    {{ title }}

    - {% endif %} -
    -
    -
  • diff --git a/airlock/templates/_partials/card-pagination.html b/airlock/templates/_partials/card-pagination.html deleted file mode 100644 index 0801b928..00000000 --- a/airlock/templates/_partials/card-pagination.html +++ /dev/null @@ -1,43 +0,0 @@ -{% load querystring_tools %} - -{% if page_obj.has_next %} - {% url_with_querystring page=page_obj.paginator.num_pages as last_page_url %} - {% url_with_querystring page=page_obj.next_page_number as next_page_url %} -{% endif %} - -{% if page_obj.has_previous %} - {% url_with_querystring page=1 as first_page_url %} - {% url_with_querystring page=page_obj.previous_page_number as previous_page_url %} -{% endif %} - -{% var page_number=page_obj.number %} -{% var total_pages=page_obj.paginator.num_pages %} - -{% #card_footer no_container=no_container %} - -{% /card_footer %} diff --git a/airlock/templates/_partials/latest-job-requests-table.html b/airlock/templates/_partials/latest-job-requests-table.html deleted file mode 100644 index bd5c6da7..00000000 --- a/airlock/templates/_partials/latest-job-requests-table.html +++ /dev/null @@ -1,72 +0,0 @@ -{% load humanize %} - -{% url "job-list" as job_list_url %} -
    - {% #card class="mx-4" no_container=True title="Latest job requests" subtitle="Most recent job requests on the OpenSAFELY platform" button=True button_text="View all job requests" button_href=job_list_url %} -
    -
    -
    -
    - {% #table %} - {% #table_head %} - {% #table_row %} - {% #table_header %}Status{% /table_header %} - {% #table_header nowrap=True %}Organisation{% /table_header %} - {% #table_header nowrap=True %}Project{% /table_header %} - {% #table_header nowrap=True %}User{% /table_header %} - {% #table_header nowrap=True %}Started{% /table_header %} - {% #table_header %}View request{% /table_header %} - {% /table_row %} - {% /table_head %} - {% #table_body %} - {% for job_request in job_requests %} - {% #table_row %} - {% #table_cell class="py-2 pl-4 pr-3" title=job_request.status|title nowrap=True %} - {% if job_request.status == "succeeded" %} - {% icon_check_circle_solid class="h-6 w-6 text-green-700" %} - {% elif job_request.status == "pending" %} - {% icon_clock_outline class="h-6 w-6 text-slate-500 stroke-2" %} - {% elif job_request.status == "running" %} - {% icon_custom_spinner class="h-6 w-6 animate-spin stroke-oxford-600 stroke-2 text-oxford-300" %} - {% elif job_request.status == "failed" %} - {% icon_x_circle_solid class="h-6 w-6 text-bn-ribbon-700" %} - {% endif %} - {{ job_request.status|title }} - {% /table_cell %} - {% #table_cell class="max-w-[25ch]" %} - {{ job_request.workspace.project.org }} - {% /table_cell %} - {% #table_cell class="break-words min-w-[18ch]" %} - {{ job_request.workspace.project.name }} - {% /table_cell %} - {% #table_cell nowrap=True %} - {{ job_request.created_by.name }} - {% /table_cell %} - {% #table_cell nowrap=True title=job_request.started_at %} - - {% if job_request.started_at|naturalday == "today" %} - {{ job_request.started_at|naturaltime }} - {% elif job_request.started_at %} - {{ job_request.started_at|date:"d M Y" }} - at - {{ job_request.started_at|date:"H:i" }} - {% else %} - - - {% endif %} - - {% /table_cell %} - {% #table_cell nowrap=True %} - {% #button type="link" href=job_request.get_absolute_url variant="secondary-outline" small=True %} - View, Job request {{ job_request.id }} - {% /button %} - {% /table_cell %} - {% /table_row %} - {% endfor %} - {% /table_body %} - {% /table %} -
    -
    -
    -
    - {% /card %} -
    diff --git a/airlock/templates/_partials/staff-hero.html b/airlock/templates/_partials/staff-hero.html deleted file mode 100644 index 53683679..00000000 --- a/airlock/templates/_partials/staff-hero.html +++ /dev/null @@ -1,7 +0,0 @@ -
    -
    - {% #article_header title=title text=text %} - {{ children }} - {% /article_header %} -
    -