From 17a1796b53088150fc8a482ad1f34fc68a688ce4 Mon Sep 17 00:00:00 2001 From: q Date: Mon, 4 Jul 2016 19:56:47 +0300 Subject: [PATCH] move action items to dropdown --- static/script.js | 4 ++-- static/style.css | 2 +- templates/layout.html | 21 ++++++++++++++++----- templates/show_shop.html | 16 ++++++++-------- 4 files changed, 27 insertions(+), 16 deletions(-) diff --git a/static/script.js b/static/script.js index b8115bc..bcd8059 100644 --- a/static/script.js +++ b/static/script.js @@ -28,8 +28,8 @@ function hidetoggle(name) { }} } } -function dropDown() { - document.getElementById("Dropdown").classList.toggle("show"); +function dropDown(name) { + document.getElementById(name).classList.toggle("show"); } // Close the dropdown menu if the user clicks outside of it diff --git a/static/style.css b/static/style.css index 8dc7cdb..a50375a 100644 --- a/static/style.css +++ b/static/style.css @@ -22,7 +22,7 @@ td { height: 1.75em; } border: 1px solid #aacbe2; } .error { background: #f0d6d6; padding: 0.5em; } .hidden { display: none; } -.pointer { cursor: pointer; } +.pointer { cursor: pointer; text-decoration: underline; } /* dropdown */ diff --git a/templates/layout.html b/templates/layout.html index e6a42f1..bd15a0c 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -16,13 +16,24 @@
Shops {% for message in get_flashed_messages() %}
{{ message }}
diff --git a/templates/show_shop.html b/templates/show_shop.html index 0021620..0a1150e 100644 --- a/templates/show_shop.html +++ b/templates/show_shop.html @@ -11,26 +11,27 @@
-

Add items:

+

Add items


-

Remove ticked:

- -

Edit items:

+
+ -

Restore backup:

-

Delete shop: