From 1c7451786ada5a4eca76380f8386498070fc6ab8 Mon Sep 17 00:00:00 2001 From: Philipp Klaus Date: Sun, 8 Jan 2017 10:01:30 +0100 Subject: [PATCH] UI improvements: icons, button disabled while printing --- static/css/custom.css | 13 +++++++++++++ views/base.jinja2 | 1 + views/labeldesigner.jinja2 | 29 +++++++++++++++++++++-------- 3 files changed, 35 insertions(+), 8 deletions(-) create mode 100644 static/css/custom.css diff --git a/static/css/custom.css b/static/css/custom.css new file mode 100644 index 0000000..96b1734 --- /dev/null +++ b/static/css/custom.css @@ -0,0 +1,13 @@ +#statusBox.alert { + margin-bottom: 0; +} + +.alert .glyphicon{ + display:table-cell; +} + +.alert div, +.alert span{ + padding-left: 10px; + display:table-cell; +} diff --git a/views/base.jinja2 b/views/base.jinja2 index 0dde685..9b560fa 100644 --- a/views/base.jinja2 +++ b/views/base.jinja2 @@ -8,6 +8,7 @@ + {% block page_title %}{% endblock %} | Brother QL diff --git a/views/labeldesigner.jinja2 b/views/labeldesigner.jinja2 index 7e7cb4b..117ec3e 100644 --- a/views/labeldesigner.jinja2 +++ b/views/labeldesigner.jinja2 @@ -17,30 +17,36 @@

- Label Size + Label Size

+
+

- Font Settings + + + Font Settings +

+
- +
- +
@@ -64,7 +70,9 @@
-
Some more settings will show here, once implemented.
+
+ Some more settings will show here, once implemented. +
@@ -80,7 +88,9 @@
- +
@@ -124,12 +134,15 @@ function preview() { function setStatus(data) { if (data['success']) - $('#statusPanel').html('Printing was successful.'); + $('#statusPanel').html(''); else - $('#statusPanel').html('Printing was unsuccessful:
'+data['message']); + $('#statusPanel').html(''); + $('#printButton').prop('disabled', false); } function print() { + $('#printButton').prop('disabled', true); + $('#statusPanel').html(''); $.ajax({ type: 'POST', dataType: 'json',