Switch branches/tags
Find file History
Permalink
..
Failed to load latest commit information.
basket Drop the use of empty and . values for the form action attribute May 24, 2018
catalogue Do not allow to put child product to the basket, but rather navigate … Aug 30, 2018
checkout Merge pull request #2708 from craigloftus/fix/removing-empty-actions May 30, 2018
customer Drop the use of empty and . values for the form action attribute May 24, 2018
dashboard Added ability to manage Catalogue.Option from the dashboard Oct 14, 2018
flatpages Remove redundant permissions checks in templates. Apr 16, 2017
forms/widgets Update ImageInput to use built-in template rendering and add tests fo… Feb 12, 2018
offer Cleanup unused promotion tags load in templates. Feb 22, 2018
order/partials Move the basket totals from thank_you.html into a partial template May 29, 2018
partials Update ImageInput to use built-in template rendering and add tests fo… Feb 12, 2018
promotions Fix whitespace in templates Feb 24, 2015
registration Drop the use of empty and . values for the form action attribute May 24, 2018
search Drop the use of empty and . values for the form action attribute May 24, 2018
403.html Move the package to the ‘src’ dir. Dec 6, 2014
404.html Move the package to the ‘src’ dir. Dec 6, 2014
500.html Move the package to the ‘src’ dir. Dec 6, 2014
README.rst Move the package to the ‘src’ dir. Dec 6, 2014
base.html Upgrade select2 to v4.0, and refactor RemoteSelect widget to work wit… Feb 16, 2018
error.html Let error pages inherit from layout.html, not base.html Jan 22, 2016
layout.html Upgrade several JS dependencies: Jan 30, 2018
layout_2_col.html Move the package to the ‘src’ dir. Dec 6, 2014
layout_3_col.html Move the package to the ‘src’ dir. Dec 6, 2014
login_forbidden.html Move the package to the ‘src’ dir. Dec 6, 2014

README.rst

Template Structure

Markup

Template markup for the most part has been written in accordance with Twitter Bootstrap. Documentation on Bootstrap HTML markup and classes used see (http://twitter.github.com/bootstrap/index.html).

Layouts

Currently there are 5 different layouts that extend the base.html

layout.html :
For single column layouts
  • detail.html
  • basket.html
  • flatpages/default.html
layout_2_col.html :
For two column layouts whereby first column is subservient (aside) to the main column
  • home.html
  • browse.html
layout_3_col.html :
For three column layouts whereby first and third columns are subservient (aside) to the main middlecolumn
  • Currently NOT used
checkout/layout.html :
For the checkout pages, removes the main navigation and uses a single column by default
  • checkout.html
  • gateway.html
  • thank_you.html
dashboard/layout.html :
For dashboard section specifically different from the other frontend features:
  • separate css
  • separate js
  • single column 100% page width

Forms

Forms are rendered using either of these two partial templates

  • form_fields.html
  • form_fields_inline.html
form_fields.html :
This is used for the majority of the forms in the frontend and dashboard, using a horizontal label / field stack
form_fields_inline.html :
Used for smaller forms to reduced screen space (mainly in the dashboard section for search forms)

Partials form_fields:

'include "partials/form_fields.html" with form=form'

Partials form_fields_inline:

'include "partials/form_fields_inline.html" with form=form'

Conventions

Template names should use underscores, not hyphens.