diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-11-11 21:22:31 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-11-11 21:22:31 +0530 |
commit | 2f4a92b0f1d02096427a2d1c97746bb52cdcc38a (patch) | |
tree | c27d44f8746316d158bd77c0796462a024efce2e /web | |
parent | d43b356fc302d61728a08f08dbdf474906e3fa82 (diff) |
Merged OpenBills-lib code into OpenBills-server
Diffstat (limited to 'web')
-rw-r--r-- | web/templates/invoice.html | 15 | ||||
-rw-r--r-- | web/templates/partials/item.html | 3 | ||||
-rw-r--r-- | web/templates/partials/item_list.html | 7 |
3 files changed, 25 insertions, 0 deletions
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 @@ +<!doctype html> +<html class="no-js" lang=""> + <head> + <meta charset="utf-8"> + <meta http-equiv="x-ua-compatible" content="ie=edge"> + <title>OpenBills Testing</title> + <meta name="description" content=""> + <meta name="viewport" content="width=device-width, initial-scale=1"> + + <link rel="apple-touch-icon" href="/apple-touch-icon.png"> + </head> + <body> + {{ template "partials/item_list.html" .}} + </body> +</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" }} +<div>{{ .Name }}</div> +{{ 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" }} +<div class="items"> + {{ range .Items }} + {{ template "partials/item.html" .}} + {{ end }} +</div> +{{ end }} |