summaryrefslogtreecommitdiffstats
path: root/ui/html/pages/operations (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Implemented template cacheMatthew Lemon2024-02-151-58/+0
| | | | | | | | | | | | | | | | | This is not perfect. At the moment, the new render() function, introduced in this commit, expects a templateData{} struct which contains an Operations field. This will need to be made generic, or we have multiple render() functions to accommdate the different types of data struct we want to be able to pass to templates. Also, in this commit I had to get rid of the /pages/operations and /pages/organisation sub directories for now. This does not fit the newTemplateCache() function - also introduced here. This needs to be refactored if we want to have subdirectories of templates - or else we stick to putting them inside pages/ and we name them appropriately, as we have done here with operations_list and organisation_list templates.
* More styling - reverted from gray backgroundMatthew Lemon2024-02-121-10/+12
| | | | | | | Have moved to white background and given the whole content a padding on the left and right. Have commented out the table width styling for now as it's now required but want to leave it in there for the forseeable as I'm sure I will come back to it.
* Introduces much better styling of the operations tableMatthew Lemon2024-02-121-2/+2
|
* Method to format an EngagementStrategy for renderingMatthew Lemon2024-02-121-3/+3
| | | | | The objective is to render a link to the ES in the Operations table. Only the start year and end year are required for it to make sense.
* Some formatting for ESes in Ops tableMatthew Lemon2024-02-121-3/+8
| | | | | Added another dummy ES to Operation 1 in test data so I can test the listing inside the table - it still does not look correct though.
* Operations list shows ESs for each entityMatthew Lemon2024-02-121-2/+10
| | | | | | | | | | This was about two hours of learning, and getting confused - and it needs to be refactored. We need to be able to generate the list of EPs for the Operation also. At the moment this only prints the object representation. More work to be done writing a method that gives us the id and textual representation for the link in the table.
* Adds mock ES and EP entries in Ops tableMatthew Lemon2024-02-121-0/+4
|
* Adds lorem ipsum text to operations pageMatthew Lemon2024-02-121-0/+4
| | | | Just for padding at this stage.
* An Operations list page now renders data in tableMatthew Lemon2024-02-121-23/+12
| | | | | | | | | The data is fetched from the database and uses html/template to render the rows in a list. A critical bug was not including the dot in {{ template "main" . }} in the base template. THIS MEANT THAT NO DATA PASSED TO ExecuteTemplate function rendered and took a long time to figure out.
* wip: Cannot get the dynamic data to show up in templateMatthew Lemon2024-02-111-1/+11
|
* Adds an operations html templateMatthew Lemon2024-02-111-0/+36
Does not contain any dynamic data at this point, i.e. does not actually list the operations from the database - just dummy data at this point.