Name: symposion-bootstrap-templates
Owner: PyOhio
Description: Provides some basic templates for things in Registrasion, so that you get basic behaviour automatically.
Created: 2018-02-21 01:12:24.0
Updated: 2018-05-15 20:27:10.0
Pushed: 2018-05-15 20:27:09.0
Homepage: null
Size: 65
Language: HTML
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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:
LATES = [{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'APP_DIRS': True,
Then add symposion_templates
to your INSTALLED_APPS:
ALLED_APPS = [
.
ymposion_templates",
.
symposion/form.html
is used by these templates whenever a form needs to be rendered. The default implementation of this just calls {form}
.symposion/base.html
extends site_base.html
. Each view_.html
template that we provide extends symposion/base.html
content
. Your symposion/base.html
MUST include a block called content
where you want the content to appear.