From dc8622e92245a9f2d23a46a20fd979c373997aec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Fri, 11 Aug 2017 15:08:59 +0200 Subject: [PATCH] general: add a widget template for event selection (#12551) --- static/includes/_misc.scss | 37 +++++++ .../qommon/forms/widgets/select--meetings.html | 106 +++++++++++++++++++++ 2 files changed, 143 insertions(+) create mode 100644 templates/qommon/forms/widgets/select--meetings.html diff --git a/static/includes/_misc.scss b/static/includes/_misc.scss index b3cd2bb..5564519 100644 --- a/static/includes/_misc.scss +++ b/static/includes/_misc.scss @@ -448,3 +448,40 @@ table.centered-cells td { div.a2-continue { padding: 1em; } + +div.meetings_table { + /* style for templates/qommon/forms/widgets/select--meetings.html */ + margin-top: 1ex; + display: flex; + width: 100%; + & > div { + flex: 0 1 auto; + width: 20%; + text-align: center; + display: none; + } + + div.head { + padding-bottom: 1ex; + } + + div span { + display: block; + cursor: pointer; + padding: 0.3ex 0; + &.disabled { + opacity: 0.3; + } + } + + span.selectable { + &:hover { + background: #ccc; + color: black; + } + &.on { + background: $button-background; + color: $button-color; + } + } +} diff --git a/templates/qommon/forms/widgets/select--meetings.html b/templates/qommon/forms/widgets/select--meetings.html new file mode 100644 index 0000000..227f637 --- /dev/null +++ b/templates/qommon/forms/widgets/select--meetings.html @@ -0,0 +1,106 @@ +{% extends "qommon/forms/widget.html" %} +{% block widget-control %} + +
+
+ + +{% endblock %} -- 2.14.1