From 37382fbee84d5da4cbb44b8f6612a9f98e8bdf34 Mon Sep 17 00:00:00 2001 From: mpeltriaux Date: Mon, 31 Jan 2022 08:06:41 +0100 Subject: [PATCH] # 71 Shortcut buttons enhanced * adds bootstrap class to prevent link style rendering * reorganizes templates for home view into separate quickstart templates --- konova/templates/konova/home.html | 116 +----------------- .../includes/quickstart/compensations.html | 37 ++++++ .../includes/quickstart/ecoaccounts.html | 42 +++++++ .../includes/quickstart/interventions.html | 37 ++++++ news/templates/news/dashboard-news.html | 2 +- 5 files changed, 120 insertions(+), 114 deletions(-) create mode 100644 konova/templates/konova/includes/quickstart/compensations.html create mode 100644 konova/templates/konova/includes/quickstart/ecoaccounts.html create mode 100644 konova/templates/konova/includes/quickstart/interventions.html diff --git a/konova/templates/konova/home.html b/konova/templates/konova/home.html index 533bbba3..d6499532 100644 --- a/konova/templates/konova/home.html +++ b/konova/templates/konova/home.html @@ -7,123 +7,13 @@
-

- {% trans 'Intervention' %} -

-
- -
-
- {% fa5_icon 'pencil-ruler' %} -
-
-
-
-
-
{% trans 'Total' %}
-
{{total_intervention_count|intcomma}}
-
-
-
{% trans 'Shared with you' %}
-
{{user_intervention_count|intcomma}}
-
-
-
- -
+ {% include 'konova/includes/quickstart/interventions.html' %}
-
-

- {% trans 'Compensation' %} -

-
- -
-
- {% fa5_icon 'leaf' %} -
-
-
-
-
-
{% trans 'Total' %}
-
{{total_compensation_count|intcomma}}
-
-
-
{% trans 'Shared with you' %}
-
{{user_compensation_count|intcomma}}
-
-
-
- -
+ {% include 'konova/includes/quickstart/compensations.html' %}
- -
-

- {% trans 'Eco-account' %} -

-
- -
-
- {% fa5_icon 'tree' %} -
-
-
-
-
-
{% trans 'Total' %}
-
{{total_eco_count|intcomma}}
-
-
-
{% trans 'Shared with you' %}
-
{{user_eco_count|intcomma}}
-
-
-
- -
-
+ {% include 'konova/includes/quickstart/ecoaccounts.html' %}
diff --git a/konova/templates/konova/includes/quickstart/compensations.html b/konova/templates/konova/includes/quickstart/compensations.html new file mode 100644 index 00000000..347bbef1 --- /dev/null +++ b/konova/templates/konova/includes/quickstart/compensations.html @@ -0,0 +1,37 @@ +{% load i18n fontawesome_5 humanize %} + +

+ {% trans 'Compensation' %} +

+
+ +
+
+ {% fa5_icon 'leaf' %} +
+
+
+
+
+
{% trans 'Total' %}
+
{{total_compensation_count|intcomma}}
+
+
+
{% trans 'Shared with you' %}
+
{{user_compensation_count|intcomma}}
+
+
+
+
+ + +
+
\ No newline at end of file diff --git a/konova/templates/konova/includes/quickstart/ecoaccounts.html b/konova/templates/konova/includes/quickstart/ecoaccounts.html new file mode 100644 index 00000000..aa5cc68a --- /dev/null +++ b/konova/templates/konova/includes/quickstart/ecoaccounts.html @@ -0,0 +1,42 @@ +{% load i18n fontawesome_5 humanize %} + +

+ {% trans 'Eco-account' %} +

+
+ +
+
+ {% fa5_icon 'tree' %} +
+
+
+
+
+
{% trans 'Total' %}
+
{{total_eco_count|intcomma}}
+
+
+
{% trans 'Shared with you' %}
+
{{user_eco_count|intcomma}}
+
+
+
+
+ +
+ +
\ No newline at end of file diff --git a/konova/templates/konova/includes/quickstart/interventions.html b/konova/templates/konova/includes/quickstart/interventions.html new file mode 100644 index 00000000..965faeb6 --- /dev/null +++ b/konova/templates/konova/includes/quickstart/interventions.html @@ -0,0 +1,37 @@ +{% load i18n fontawesome_5 humanize %} + +

+ {% trans 'Intervention' %} +

+
+ +
+
+ {% fa5_icon 'pencil-ruler' %} +
+
+
+
+
+
{% trans 'Total' %}
+
{{total_intervention_count|intcomma}}
+
+
+
{% trans 'Shared with you' %}
+
{{user_intervention_count|intcomma}}
+
+
+
+
+ + +
+
\ No newline at end of file diff --git a/news/templates/news/dashboard-news.html b/news/templates/news/dashboard-news.html index 6301e2cc..f6aa9c6d 100644 --- a/news/templates/news/dashboard-news.html +++ b/news/templates/news/dashboard-news.html @@ -17,7 +17,7 @@ {% endfor %}