wayfarer1549 / ECU-SENG-6240-SP2020-Team-3-project

Term Project for SENG 6240 Implementation
1 stars 1 forks source link

Refactor templates to use base template #15

Open wayfarer1549 opened 4 years ago

wayfarer1549 commented 4 years ago

Django provides a flexible template system for building modularized HTML files.

Essentially, you create a base template with the parts of your site that need to be shared across several pages, then you extend that base template as you add additional details via new templates that import the base file.

As part of our project, we may want to consider doing this.

rscottjohnson commented 4 years ago

@wayfarer1549 completely agree.

In the assetsStyles pull request, I've included a base_layout.html file in the templates folder to hopefully serve as the main layout.

Then, for example in the contracts\templates\contracts\contract_list.html file, I've used the Django notation {% extends 'base_layout.html' %}.

We can change, of course, but this was my attempt at using that approach.