From 297419f370ea87458017ee506a2e551e9068b66b Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Sun, 17 Nov 2013 19:15:30 +0200 Subject: Swicthing machines --- templates/core/form.html | 13 +++++++++ templates/core/list.html | 7 +++++ templates/default.html | 28 ++++++++++++++----- templates/login.html | 10 ++++--- templates/manage.html | 70 ++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 117 insertions(+), 11 deletions(-) create mode 100644 templates/core/form.html create mode 100644 templates/core/list.html (limited to 'templates') diff --git a/templates/core/form.html b/templates/core/form.html new file mode 100644 index 0000000..4c1fb71 --- /dev/null +++ b/templates/core/form.html @@ -0,0 +1,13 @@ +{% extends "manage.html" %} +{% load bootstrap3 %} +{% load i18n %} + +{% block detail_view %} +
+ {% csrf_token %} + {% bootstrap_form form %} + {% buttons %} + + {% endbuttons %} +
+{% endblock detail_view %} diff --git a/templates/core/list.html b/templates/core/list.html new file mode 100644 index 0000000..87428c0 --- /dev/null +++ b/templates/core/list.html @@ -0,0 +1,7 @@ +{% extends "manage.html" %} + +{% block detail_list %} +{% for i in object_list %} +
  • {{ i }}
  • +{% endfor %} +{% endblock detail_list %} diff --git a/templates/default.html b/templates/default.html index ca5829a..b9c5ee0 100644 --- a/templates/default.html +++ b/templates/default.html @@ -5,6 +5,7 @@ + @@ -13,16 +14,29 @@ - -
    - + + +
    {% block main %} - {% endblock main %} - -
    +
    - + diff --git a/templates/login.html b/templates/login.html index 2167d15..35479e7 100644 --- a/templates/login.html +++ b/templates/login.html @@ -1,10 +1,12 @@ {% extends "default.html" %} +{% load bootstrap3 %} +{% load i18n %} {% block main %} -
    + {% csrf_token %} - - {{ form.as_p }} - + + {% bootstrap_form form %} +
    {% endblock main %} diff --git a/templates/manage.html b/templates/manage.html index 67b0352..a463109 100644 --- a/templates/manage.html +++ b/templates/manage.html @@ -1 +1,71 @@ {% extends "default.html" %} +{% load i18n %} + +{% block toolbar %} + + {% block toolbar_buttons %} + asd + {% endblock toolbar_buttons %} + +{% endblock toolbar %} + +{% block main %} + + +
    +
    +
    + +
    +
    + {% block detail_view %} + {% endblock detail_view %} +
    +
    +
    +{% endblock main %} -- cgit v1.2.3