Skip to content

Commit

Permalink
tables header footer widths
Browse files Browse the repository at this point in the history
  • Loading branch information
eatyourpeas committed Jul 30, 2024
1 parent e8bfc48 commit c003355
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 15 deletions.
1 change: 1 addition & 0 deletions project/npda/templates/npda_users.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<div class="flex flex-col justify-center px-10" hx-get="/npda_users" hx-trigger="npda_users from:body" hx-target="#npda_user_table">
<div class="overflow-x-auto sm:-mx-6 lg:-mx-8">
<div class="inline-block min-w-full py-2 sm:px-6 lg:px-8">
<h1 class="text-3xl font-montserrat font-semibold text-rcpch_dark_blue">NPDA Users at {{chosen_pdu}}</h1>
{% url 'npda_users' as hx_post %}
<div id="npdauser_view_preference" class="mb-5">
{% include 'partials/view_preference.html' with view_preference=request.user.view_preference hx_post=hx_post organisation_choices=organisation_choices ods_code_select_name="npdauser_ods_code_select_name" pz_code_select_name="npdauser_pz_code_select_name" ods_code=ods_code pdu_choices=pdu_choices chosen_pdu=chosen_pdu hx_target="#npdauser_view_preference" %}
Expand Down
2 changes: 1 addition & 1 deletion project/npda/templates/partials/npda_user_table.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% load npda_tags %}
{% if npdauser_list %}
<table class="table-auto w-full text-sm text-left rtl:text-right text-gray-500 text-gray-400 mb-5 font-montserrat">
<table class="table table-md w-full text-sm text-left rtl:text-right text-gray-500 text-gray-400 mb-5 font-montserrat">
<thead class="text-xs text-gray-700 uppercase bg-gray-50 bg-rcpch_dark_blue text-white">
<tr>
<th scope="col" class="w-1/12">NPDA UserID</th>
Expand Down
26 changes: 13 additions & 13 deletions project/npda/templates/partials/patient_table.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{% load npda_tags %}
{% if patient_list %}
<table class="table table-md w-full text-sm text-left rtl:text-right text-gray-500 text-gray-400 mb-5 font-montserrat">
<thead class="text-xs text-gray-700 uppercase bg-gray-50 bg-rcpch_dark_blue text-white">
<table class="table table-md w-full text-sm text-left rtl:text-right text-gray-500 text-gray-400 mb-5 font-montserrat">
<thead class="text-xs text-gray-700 uppercase bg-gray-50 bg-rcpch_dark_blue text-white">
<tr>
<th scope="col" class="px-2 py-3 text-center">NPDA ID</th>
<th scope="col" class="px-2 py-3 text-center">NHS Number</th>
<th scope="col" class="px-2 py-3 text-center">Sex</th>
<th scope="col" class="px-2 py-3 text-center">Date of Birth</th>
<th scope="col" class="px-2 py-3 text-center">Postcode</th>
<th scope="col" class="px-2 py-3 text-center">Ethnicity</th>
<th scope="col" class="px-2 py-3 text-center">Diabetes Type</th>
<th scope="col" class="px-2 py-3 text-center">Diagnosis Date</th>
<th scope="col" class="px-2 py-3 text-center">Date Uploaded</th>
<th scope="col" class="px-2 py-3 text-center">Audit Year (Quarterly Cohort)</th>
<th scope="col"></th>
<th scope="col" class="px-2 py-3 text-center">NPDA ID</th>
<th scope="col" class="px-2 py-3 text-center">NHS Number</th>
<th scope="col" class="px-2 py-3 text-center">Sex</th>
<th scope="col" class="px-2 py-3 text-center">Date of Birth</th>
<th scope="col" class="px-2 py-3 text-center">Postcode</th>
<th scope="col" class="px-2 py-3 text-center">Ethnicity</th>
<th scope="col" class="px-2 py-3 text-center">Diabetes Type</th>
<th scope="col" class="px-2 py-3 text-center">Diagnosis Date</th>
<th scope="col" class="px-2 py-3 text-center">Date Uploaded</th>
<th scope="col" class="px-2 py-3 text-center">Audit Year (Quarterly Cohort)</th>
<th scope="col"></th>
</tr>
</thead>
<tbody>
Expand Down
2 changes: 1 addition & 1 deletion project/npda/templates/submissions_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="overflow-x-auto sm:-mx-6 lg:-mx-8">
<div class="inline-block min-w-full py-2 sm:px-6 lg:px-8">
<div class="relative overflow-x-auto">
<strong>All Submissions for {{pz_code}}</strong>
<h1 class="text-3xl font-montserrat font-semibold text-rcpch_dark_blue">All Submissions for {{pz_code}}</h1>
{% include 'partials/submission_history.html' with submissions=object_list %}
</div>
</div>
Expand Down

0 comments on commit c003355

Please sign in to comment.