From 655ed09b6cfecda407659bccb6de8887d4725788 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Thu, 5 Sep 2024 12:33:56 +0100 Subject: Improving the info box on effort form --- core/static/css/output.css | 4 ++ .../engagements/engagement_effort_create.html | 55 ++++++++++++++++++++-- 2 files changed, 54 insertions(+), 5 deletions(-) diff --git a/core/static/css/output.css b/core/static/css/output.css index 0a5c4ee..7850c75 100644 --- a/core/static/css/output.css +++ b/core/static/css/output.css @@ -1428,6 +1428,10 @@ html { align-items: center; } +.justify-end { + justify-content: flex-end; +} + .justify-center { justify-content: center; } diff --git a/engagements/templates/engagements/engagement_effort_create.html b/engagements/templates/engagements/engagement_effort_create.html index 09a357a..f4edc8d 100644 --- a/engagements/templates/engagements/engagement_effort_create.html +++ b/engagements/templates/engagements/engagement_effort_create.html @@ -8,11 +8,13 @@
- - + + -

Register {{ etype|lower }} time

+

Register {{ etype|lower }} time

- Please fill out the form below to log your {{ etype|lower }} effort for this engagement. + Please fill out the form below to log your {{ etype|lower }} effort for this + engagement. Make sure to provide accurate information for proper tracking and reporting.

+ +
+ + {% if etype == "REGULATION" %} +
+

This is time on-site. Actual {{ etype|lower }}!

+
    +
  • Carrying out the work
  • +
  • Follow up meetings, etc
  • +
+
+ {% elif etype == "TRAVEL" %} +
+

Time spent travelling to and from the engagement.

+
    +
  • Travelling to
  • +
  • Travelling from
  • +
+
+ {% elif etype == "PLANNING" %} +
+

Loads of stuff about Planning.

+

Anyting related to planning for the engagement.

+
    +
  • Initial planning
  • +
  • Planning meetings
  • +
  • Reviewing past data
  • +
+
+ {% elif etype == "REPORTING" %} +
+

Anyting related to reporting for the engagement.

+
    +
  • Writing up notes
  • +
  • Writing draft and final report
  • +
  • Reviewing colleagues' report drafts
  • +
+
+ {% endif %} +
-

Help

+
+

Help

+
-- cgit v1.2.3 From 18c4913ee1961de2b61e953b6fed1cd35e2051be Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Thu, 5 Sep 2024 12:35:23 +0100 Subject: Added widget_tweaks to requirements. --- requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements.txt b/requirements.txt index 468d422..ff555a3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,3 +6,4 @@ gunicorn==22.0.0 psycopg2==2.9.9 tzdata==2024.1 whitenoise==6.6.0 +django-widget-tweaks==1.5.0 \ No newline at end of file -- cgit v1.2.3