Provides some customisable bootstrap templates for things in Symposion, so that you get basic behaviour automatically.
symposion provides a bunch of django views that make the app tick, however, it does not include any templates, which means that as new features are added, things do not work automagically
For each template required by symposion, symposion_templates provides two templates. Say the template used by the view is called view.html. We provide:
view.html, which is the template that is loaded directly -- this will be very modular, and will let you easily override things that you need to override in your own installationsview_.html, which is the thing that lays everything out.
So you can either override view_.html if you're happy with the text and markup that view.html provides, or you can override view.html if you want to change the entire thing. Your choice!
Ensure that APP_DIRS is switched on in your settings, like so:
TEMPLATES = [{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'APP_DIRS': True,
}]
Then add symposion_templates to your INSTALLED_APPS:
INSTALLED_APPS = [
...
"symposion_templates",
...
]
symposion/form.htmlis used by these templates whenever a form needs to be rendered. The default implementation of this just calls{form}.symposion/base.htmlextendssite_base.html. Eachview_.htmltemplate that we provide extendssymposion/base.html
- Our default templates place their content in a block called
content. Yoursymposion/base.htmlMUST include a block calledcontentwhere you want the content to appear. - Each template will document the purpose of the templates