From 2f4a92b0f1d02096427a2d1c97746bb52cdcc38a Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Fri, 11 Nov 2022 21:22:31 +0530 Subject: Merged OpenBills-lib code into OpenBills-server --- web/templates/invoice.html | 15 +++++++++++++++ web/templates/partials/item.html | 3 +++ web/templates/partials/item_list.html | 7 +++++++ 3 files changed, 25 insertions(+) create mode 100644 web/templates/invoice.html create mode 100644 web/templates/partials/item.html create mode 100644 web/templates/partials/item_list.html (limited to 'web') diff --git a/web/templates/invoice.html b/web/templates/invoice.html new file mode 100644 index 0000000..77825fe --- /dev/null +++ b/web/templates/invoice.html @@ -0,0 +1,15 @@ + + + + + + OpenBills Testing + + + + + + + {{ template "partials/item_list.html" .}} + + diff --git a/web/templates/partials/item.html b/web/templates/partials/item.html new file mode 100644 index 0000000..04eabba --- /dev/null +++ b/web/templates/partials/item.html @@ -0,0 +1,3 @@ +{{ define "partials/item.html" }} +
{{ .Name }}
+{{ end }} diff --git a/web/templates/partials/item_list.html b/web/templates/partials/item_list.html new file mode 100644 index 0000000..f12a34a --- /dev/null +++ b/web/templates/partials/item_list.html @@ -0,0 +1,7 @@ +{{ define "partials/item_list.html.tmpl" }} +
+ {{ range .Items }} + {{ template "partials/item.html" .}} + {{ end }} +
+{{ end }} -- cgit v1.2.3