From e817c3203fde0ca9bfb66a00919050cbdd1179e8 Mon Sep 17 00:00:00 2001 From: Sean Smith Date: Wed, 24 Feb 2021 12:18:45 -0500 Subject: Front end fixes for enforcing hostname Signed-off-by: Sean Smith Change-Id: I0a077307a2e1bcfef5b31acdaf4ecb73be64fff9 --- src/booking/forms.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/booking/forms.py') diff --git a/src/booking/forms.py b/src/booking/forms.py index 2a8784f..19c0c85 100644 --- a/src/booking/forms.py +++ b/src/booking/forms.py @@ -59,6 +59,14 @@ class QuickBookingForm(forms.Form): self.fields['filter_field'] = MultipleSelectFilterField(widget=MultipleSelectFilterWidget(**lab_data)) + help_text = 'Hostname can be set only for single-node bookings. For multi-node bookings set hostname through Design a POD.' + self.fields['hostname'].widget.attrs.update({ + 'class': 'has-popover', + 'data-content': help_text, + 'data-placement': 'top', + 'data-container': 'body' + }) + def build_user_list(self): """ Build list of UserProfiles. -- cgit 1.2.3-korg