From 2bde1b0660585e16116fbd12c86b53e886b6f3be Mon Sep 17 00:00:00 2001 From: Jonathan Tschanter Date: Fri, 21 Jan 2022 00:14:34 +0100 Subject: Add first layout with simplecss --- templates/base.twig | 26 ++++++++++++++++++++++++++ templates/card/card.twig | 16 ++++++++++++++++ templates/card/card_add.twig | 29 +++++++++++++++++++++++++++++ templates/card/card_display.twig | 25 +++++++++++++++++++++++++ templates/card/card_edit.twig | 26 ++++++++++++++++++++++++++ templates/card/card_list.twig | 38 ++++++++++++++++++++++++++++++++++++++ templates/dashboard.twig | 12 ++++++++++++ templates/root.twig | 14 ++++++++++++++ 8 files changed, 186 insertions(+) create mode 100644 templates/base.twig create mode 100644 templates/card/card.twig create mode 100644 templates/card/card_add.twig create mode 100644 templates/card/card_display.twig create mode 100644 templates/card/card_edit.twig create mode 100644 templates/card/card_list.twig create mode 100644 templates/dashboard.twig create mode 100644 templates/root.twig (limited to 'templates') diff --git a/templates/base.twig b/templates/base.twig new file mode 100644 index 0000000..a27b5d7 --- /dev/null +++ b/templates/base.twig @@ -0,0 +1,26 @@ +{% extends 'root.twig' %} + +{% block css %} + {{ parent() }} + + + +{% endblock %} + +{% block body %} +
+ +

Elements

+

{% block subtitle %}{% endblock %}

+
+
+ {% block main %}{% endblock %} +
+ +{% endblock %} diff --git a/templates/card/card.twig b/templates/card/card.twig new file mode 100644 index 0000000..9a91bfa --- /dev/null +++ b/templates/card/card.twig @@ -0,0 +1,16 @@ +{% extends 'base.twig' %} + +{% block subtitle %} + Cards +{% endblock %} +{% block main %} +
+ + +

{% block pagetitle %}{% endblock %}

+
+ +
+ {% block pagecontent %}{% endblock %} +
+{% endblock %} diff --git a/templates/card/card_add.twig b/templates/card/card_add.twig new file mode 100644 index 0000000..ef01632 --- /dev/null +++ b/templates/card/card_add.twig @@ -0,0 +1,29 @@ +{% extends 'card/card.twig' %} + +{% block pagetitle %} + Add Card +{% endblock %} +{% block pagecontent %} +
+ {% for key, field in fields %} +

+
+ +

+ {% endfor %} + + + +

Artworks

+ + + +
+{% endblock %} diff --git a/templates/card/card_display.twig b/templates/card/card_display.twig new file mode 100644 index 0000000..27d5bea --- /dev/null +++ b/templates/card/card_display.twig @@ -0,0 +1,25 @@ +{% extends 'card/card.twig' %} + +{% block pagetitle %} + Show Card +{% endblock %} +{% block pagecontent %} + {% for meta in card.meta %} +

+
+ +

+ {% endfor %} + + + +

Artworks

+ {% for artwork in card.artworks %} +

+ + + + +

+ {% endfor %} +{% endblock %} diff --git a/templates/card/card_edit.twig b/templates/card/card_edit.twig new file mode 100644 index 0000000..a7f9aa7 --- /dev/null +++ b/templates/card/card_edit.twig @@ -0,0 +1,26 @@ +{% extends 'card/card.twig' %} + +{% block pagetitle %} + Edit Card +{% endblock %} +{% block pagecontent %} +
+ {% for meta in card.meta %} +

+
+ +

+ {% endfor %} + + +
+ +

Artworks

+ {% for artwork in card.artworks %} +

+ + + +

+ {% endfor %} +{% endblock %} diff --git a/templates/card/card_list.twig b/templates/card/card_list.twig new file mode 100644 index 0000000..1714fc8 --- /dev/null +++ b/templates/card/card_list.twig @@ -0,0 +1,38 @@ +{% extends 'card/card.twig' %} + +{% block pagetitle %} +List +{% endblock %} +{% block pagecontent %} + + + + + {% for meta in cards[0].getAllMeta() %} + + {% endfor %} + + + + + + {% for card in cards %} + + + {% for meta in card.getAllMeta() %} + + {% endfor %} + + + + {% endfor %} + +
ID{{ meta.key }}Votes
{{ card.id }}{{ meta.value }} + {{ card.getVotesTotal() }} + + + + + +
+{% endblock %} diff --git a/templates/dashboard.twig b/templates/dashboard.twig new file mode 100644 index 0000000..31f2353 --- /dev/null +++ b/templates/dashboard.twig @@ -0,0 +1,12 @@ +{% extends 'base.twig' %} + +{% block subtitle %} + Dashboard +{% endblock %} +{% block main %} +

Home?

+

Updates to own cards?

+

Card of the day?

+

Events?

+

News?

+{% endblock %} diff --git a/templates/root.twig b/templates/root.twig new file mode 100644 index 0000000..9c3534e --- /dev/null +++ b/templates/root.twig @@ -0,0 +1,14 @@ + + + Elements + + {% block css %}{% endblock %} + + +{% block body %}{% endblock %} + +{% block js %}{% endblock %} + + \ No newline at end of file -- cgit v1.2.3