From 9c9832704d67ccca11830cfaab886cf7f2fdcf0e Mon Sep 17 00:00:00 2001 From: Brice Maron Date: Sat, 31 Aug 2019 22:54:23 +0200 Subject: bill list: add placeholder and disable add bill when no members --- ihatemoney/static/css/main.css | 19 +++++- ihatemoney/static/images/gradient.png | Bin 10236 -> 0 bytes ihatemoney/static/images/hand-holding-heart.svg | 1 + ihatemoney/templates/layout.html | 8 +-- ihatemoney/templates/list_bills.html | 77 +++++++++++++++--------- ihatemoney/tests/tests.py | 28 ++++++++- 6 files changed, 99 insertions(+), 34 deletions(-) delete mode 100644 ihatemoney/static/images/gradient.png create mode 100644 ihatemoney/static/images/hand-holding-heart.svg diff --git a/ihatemoney/static/css/main.css b/ihatemoney/static/css/main.css index 8667f23..acc95a1 100644 --- a/ihatemoney/static/css/main.css +++ b/ihatemoney/static/css/main.css @@ -157,6 +157,20 @@ body { color: black; } +.empty-bill { + margin-top: 5rem !important; + +} +.empty-bill .card { + border: 0; +} + +.empty-bill .hand-holding-heart svg { + fill: lightgray; + height: 5em; + width: 5em; +} + .invites textarea { width: 800px; height: 100px; @@ -258,7 +272,6 @@ footer .footer-left { #new-bill { margin-top: 30px; - margin-bottom: 30px; } /* Avoid text color flickering when it loose focus as the modal appears */ @@ -295,6 +308,10 @@ footer .footer-left { background: url("../images/edit.png") no-repeat right; } +#bill_table { + margin-top: 30px; +} + .project-actions > .delete, .project-actions > .edit { font-size: 0px; diff --git a/ihatemoney/static/images/gradient.png b/ihatemoney/static/images/gradient.png deleted file mode 100644 index d627fec..0000000 Binary files a/ihatemoney/static/images/gradient.png and /dev/null differ diff --git a/ihatemoney/static/images/hand-holding-heart.svg b/ihatemoney/static/images/hand-holding-heart.svg new file mode 100644 index 0000000..65ee45e --- /dev/null +++ b/ihatemoney/static/images/hand-holding-heart.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ihatemoney/templates/layout.html b/ihatemoney/templates/layout.html index c00105b..89f65e7 100644 --- a/ihatemoney/templates/layout.html +++ b/ihatemoney/templates/layout.html @@ -129,17 +129,17 @@