From adee5d87fd7091b8b1c36b210c232cbe8849123a Mon Sep 17 00:00:00 2001 From: Ekaterina Fedorova Date: Thu, 30 Jan 2014 16:28:46 +0400 Subject: [PATCH] Add hint for fixed IP address (as placeholder) Change-Id: I20582821e28b1eda16b8c95bbba7b4fa8bfb9f9e Fixes-Bug: #1272361 --- muranodashboard/dynamic_ui/fields.py | 1 + 1 file changed, 1 insertion(+) diff --git a/muranodashboard/dynamic_ui/fields.py b/muranodashboard/dynamic_ui/fields.py index d1fc5024c..44b9dc342 100644 --- a/muranodashboard/dynamic_ui/fields.py +++ b/muranodashboard/dynamic_ui/fields.py @@ -652,6 +652,7 @@ class ClusterIPField(CharField): self.help_text = _('Specify valid fixed IP') self.validators = [self.make_nova_validator(request, ip_ranges)] elif self.network_topology == 'routed': + self.widget.attrs['placeholder'] = self.existing_subnet self.validators = [self.make_neutron_validator()] else: # 'flat' topology raise NotImplementedError('Flat topology is not implemented yet')