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/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 ++++++++++++++++++++++++++++++++++++++ 5 files changed, 134 insertions(+) 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 (limited to 'templates/card') 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 %} -- cgit v1.2.3