From 6f87cf155e7dce4e76cb07d4138a1765c7173683 Mon Sep 17 00:00:00 2001 From: Drew Larson Date: Thu, 23 Jun 2016 11:53:17 -0600 Subject: [PATCH] Refactor templates. --- bikeshop_project/core/templates/base.html | 55 +---------------- .../core/templates/dashboard.html | 60 +++++++++++++++++++ .../core/templates/membership_form.html | 2 +- .../templates/edit_member_form.html | 2 +- .../registration/templates/member_form.html | 2 +- 5 files changed, 64 insertions(+), 57 deletions(-) diff --git a/bikeshop_project/core/templates/base.html b/bikeshop_project/core/templates/base.html index 86206ed..881f116 100644 --- a/bikeshop_project/core/templates/base.html +++ b/bikeshop_project/core/templates/base.html @@ -50,60 +50,7 @@
-
-
- Home -
-
- -
- - -
-
- -
    -
  • About
  • -
  • Contact
  • -
  • Legal information
  • -
-
-
-
-
- -
- hello@example.com -
- -
    -
  • hello@example.com
  • -
  • info@example.com
  • -
  • addAdd another account...
  • -
-
-
- -
+ {% block header %}{% endblock %}
{% block content %} diff --git a/bikeshop_project/core/templates/dashboard.html b/bikeshop_project/core/templates/dashboard.html index 19c0459..f8f8292 100644 --- a/bikeshop_project/core/templates/dashboard.html +++ b/bikeshop_project/core/templates/dashboard.html @@ -1,5 +1,65 @@ {% extends 'base.html' %} {% load render_bundle from webpack_loader %} +{% load staticfiles %} + +{% block header %} +
+
+ BCBC +
+{#
#} +{# #} +{#
#} +{# #} +{# #} +{#
#} +{#
#} +{# #} +{#
    #} +{#
  • About
  • #} +{#
  • Contact
  • #} +{#
  • Legal information
  • #} +{#
#} +
+
+
+
+ +
+ + {{ request.user.get_full_name }} + +
+ +
    +
  • hello@example.com
  • +
  • info@example.com
  • +
  • addAdd another account...
  • +
+
+
+ +
+{% endblock %} {% block content %}
diff --git a/bikeshop_project/core/templates/membership_form.html b/bikeshop_project/core/templates/membership_form.html index df5d49a..1883342 100644 --- a/bikeshop_project/core/templates/membership_form.html +++ b/bikeshop_project/core/templates/membership_form.html @@ -1,4 +1,4 @@ -{% extends 'base.html' %} +{% extends 'dashboard.html' %} {% load staticfiles %} {% block styles %} diff --git a/bikeshop_project/registration/templates/edit_member_form.html b/bikeshop_project/registration/templates/edit_member_form.html index 90f3cc2..f93cc87 100644 --- a/bikeshop_project/registration/templates/edit_member_form.html +++ b/bikeshop_project/registration/templates/edit_member_form.html @@ -1,4 +1,4 @@ -{% extends 'base.html' %} +{% extends 'dashboard.html' %} {% load staticfiles %} {% block styles %} diff --git a/bikeshop_project/registration/templates/member_form.html b/bikeshop_project/registration/templates/member_form.html index 9f8328e..6796411 100644 --- a/bikeshop_project/registration/templates/member_form.html +++ b/bikeshop_project/registration/templates/member_form.html @@ -1,4 +1,4 @@ -{% extends 'base.html' %} +{% extends 'dashboard.html' %} {% load staticfiles %} {% block styles %}