diff options
author | Sawyer Bergeron <sbergeron@iol.unh.edu> | 2021-03-24 15:48:39 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2021-03-24 15:48:39 +0000 |
commit | e23127473b81bdbc1f4630036ddec3c46ee17dda (patch) | |
tree | e6171df583a6cace7ef966b0e22f298a64b09b7b /src/booking/forms.py | |
parent | b14e617edb86628f31648847c0b96206764ef44c (diff) | |
parent | e817c3203fde0ca9bfb66a00919050cbdd1179e8 (diff) |
Merge "Front end fixes for enforcing hostname"
Diffstat (limited to 'src/booking/forms.py')
-rw-r--r-- | src/booking/forms.py | 8 |
1 files changed, 8 insertions, 0 deletions
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. |