From 5256aeeda337c4fc78da2d0def31325f32431023 Mon Sep 17 00:00:00 2001 From: Tobias Schulmann Date: Sun, 24 Jun 2018 12:14:29 +1200 Subject: [PATCH] Started dashboard design --- pinaxcon/templates/_form_btns.html | 2 + pinaxcon/templates/_form_snippet.html | 5 +- pinaxcon/templates/dashboard.html | 617 +++++++++--------- pinaxcon/templates/site_base.html | 2 +- .../symposion/speakers/speaker_create.html | 5 +- .../symposion/speakers/speaker_edit.html | 5 +- static/src/scss/app.scss | 68 +- 7 files changed, 383 insertions(+), 321 deletions(-) create mode 100644 pinaxcon/templates/_form_btns.html diff --git a/pinaxcon/templates/_form_btns.html b/pinaxcon/templates/_form_btns.html new file mode 100644 index 00000000..a38a9ce7 --- /dev/null +++ b/pinaxcon/templates/_form_btns.html @@ -0,0 +1,2 @@ + + Cancel \ No newline at end of file diff --git a/pinaxcon/templates/_form_snippet.html b/pinaxcon/templates/_form_snippet.html index 1e5193a3..09f49b88 100644 --- a/pinaxcon/templates/_form_snippet.html +++ b/pinaxcon/templates/_form_snippet.html @@ -1,5 +1,6 @@ {% load lca2018_tags %} {% load bootstrap %} +{% load crispy_forms_tags %} {% if form.non_field_errors %}
@@ -9,7 +10,7 @@ {% endif %}
- Fields marked with * are required. + Fields marked with a
* are required
-{{ form|bootstrap_horizontal }} +{% crispy form %} diff --git a/pinaxcon/templates/dashboard.html b/pinaxcon/templates/dashboard.html index 94366cf5..d041014f 100644 --- a/pinaxcon/templates/dashboard.html +++ b/pinaxcon/templates/dashboard.html @@ -11,363 +11,362 @@ {% block header_title %}linux.conf.au 2019{% endblock %} {% block header_lead %}User Dashboard{% endblock %} - +{% block main_class %}{% endblock %} {% block content %} - {% available_categories as categories %} - {% if categories %} +{% available_categories as categories %} +
+

Dashboard

+
+{% if categories %} - {% if user.is_staff %} -
-