From 4d20a5cf70006e369c49a2782e1d9213daaa8aa8 Mon Sep 17 00:00:00 2001 From: Philipp Klaus Date: Fri, 22 Sep 2017 17:43:23 +0800 Subject: [PATCH] DASH: PV info button /pv/PV:NAME + button copy PV:NAME to clipboard --- .../dashboard/static/images/clipboard.svg | 29 ++++++++ .../views/pv_overview_bootstrap.jinja2 | 71 ++++++++++++++++++- 2 files changed, 98 insertions(+), 2 deletions(-) create mode 100644 python_suite/dashboard/static/images/clipboard.svg diff --git a/python_suite/dashboard/static/images/clipboard.svg b/python_suite/dashboard/static/images/clipboard.svg new file mode 100644 index 0000000..db2c56d --- /dev/null +++ b/python_suite/dashboard/static/images/clipboard.svg @@ -0,0 +1,29 @@ + + + + + + image/svg+xml + + + + + + + + diff --git a/python_suite/dashboard/views/pv_overview_bootstrap.jinja2 b/python_suite/dashboard/views/pv_overview_bootstrap.jinja2 index e379369..38208bc 100644 --- a/python_suite/dashboard/views/pv_overview_bootstrap.jinja2 +++ b/python_suite/dashboard/views/pv_overview_bootstrap.jinja2 @@ -14,6 +14,20 @@ margin-bottom: 20px; padding: 10px; } +.icon { + width: 16px; + height: 16px; + padding: 0; + margin: 0; + vertical-align: middle; + color: #000; + fill: currentColor; + display: inline-block; + vertical-align: text-top; +} +.btn-copy { + cursor: pointer; +} {% endblock %} @@ -32,8 +46,14 @@
-
{{ PV.name }}
-
+
{{ PV.alias or PV.name }}
+
+ PV + +
+
{% if 'switch' in PV.classes %}