From 8cfd61aa885ad30947d3f1fab413ab8addeec724 Mon Sep 17 00:00:00 2001 From: Sawyer Bergeron Date: Tue, 18 Jun 2019 11:51:22 -0400 Subject: Fix cross platform issues with SSMF Change-Id: Iecaabd1175ffd35daa938561e374244139f38117 Signed-off-by: Sawyer Bergeron --- src/templates/booking/steps/booking_meta.html | 13 +++++++++- .../dashboard/searchable_select_multiple.html | 30 +++++++++++++++------- 2 files changed, 33 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/templates/booking/steps/booking_meta.html b/src/templates/booking/steps/booking_meta.html index cdd7834..410a7c8 100644 --- a/src/templates/booking/steps/booking_meta.html +++ b/src/templates/booking/steps/booking_meta.html @@ -10,6 +10,17 @@ padding: 5%; } + .bkcontrib_panel { + display: flex; + flex-direction: column; + } + + .bkcontrib_panel > .form-group { + flex: 1; + display: flex; + flex-direction: column; + } + .panel{ padding: 5%; /*border: solid 1px black;*/ @@ -52,7 +63,7 @@
-
+

You may add collaborators on your booking to share resources with coworkers.

{% bootstrap_field form.users label="Collaborators" %}
diff --git a/src/templates/dashboard/searchable_select_multiple.html b/src/templates/dashboard/searchable_select_multiple.html index 5fa8993..91ed09c 100644 --- a/src/templates/dashboard/searchable_select_multiple.html +++ b/src/templates/dashboard/searchable_select_multiple.html @@ -1,21 +1,21 @@ -
+
{% if incompatible == "true" %}

Warning: Incompatible Configuration

Please make a different selection, as the current config conflicts with the selected pod

{% endif %}
- -
- -

0

/ {% if selectable_limit > -1 %} {{ selectable_limit }} {% else %} ∞ {% endif %}added

+
+ +
+ @@ -36,6 +36,11 @@ overflow-y: auto; padding-bottom: 10px; } + + #added_list { + margin-bottom: 5px; + } + .autocomplete { display: flex; flex: 1; @@ -44,6 +49,9 @@ #user_field { font-size: 14pt; padding: 5px; + height: 40px; + border: 1px solid #ccc; + border-radius: 5px; } @@ -55,7 +63,7 @@ border: solid 1px #ddd; border-top: none; border-bottom: none; - visibility: hidden; + visibility: inherit; flex: 1; position: absolute; @@ -401,13 +409,15 @@ drop.appendChild(result_entry); } + var scroll_restrictor = document.getElementById("scroll_restrictor"); + if( !drop.firstChild ) { - drop.style.visibility = 'hidden'; + scroll_restrictor.style.visibility = 'hidden'; } else { - drop.style.visibility = 'inherit'; + scroll_restrictor.style.visibility = 'inherit'; } } @@ -423,7 +433,10 @@ } } update_selected_list(); + // clear search bar contents + document.getElementById("user_field").value = ""; document.getElementById("user_field").focus(); + search(""); } function remove_item(item_ref) @@ -473,5 +486,4 @@ added_list.innerHTML = list_html; } - -- cgit 1.2.3-korg