@@ -38,7 +38,7 @@ public function init()
38
38
$ this ->setDecorators ( [ [ 'ViewScript ' , [ 'viewScript ' => 'virtual-interface/forms/add-wizard.phtml ' ] ] ] );
39
39
40
40
$ this ->addElement ( IXP_Form_Customer::getPopulatedSelect ( 'custid ' ) );
41
- $ this ->getElement ( 'custid ' )->setAttrib ( 'class ' , 'chzn-select span12 ' );
41
+ $ this ->getElement ( 'custid ' )->setAttrib ( 'class ' , 'chzn-select span12 ' )-> setAttrib ( ' chzn-nofix-width ' , ' 1 ' ) ;
42
42
43
43
////////////////////////////////////////////////////////////////////////////////////////////////////
44
44
// VIRTUAL INTERFACE DETAILS
@@ -93,14 +93,15 @@ public function init()
93
93
// PHYSICAL INTERFACE DETAILS
94
94
95
95
$ this ->addElement ( IXP_Form_Switch::getPopulatedSelect ( 'switchid ' ) );
96
- $ this ->getElement ( 'switchid ' )->setAttrib ( 'class ' , 'chzn-select span12 ' );
96
+ $ this ->getElement ( 'switchid ' )->setAttrib ( 'class ' , 'chzn-select span12 ' )-> setAttrib ( ' chzn-nofix-width ' , ' 1 ' ) ;
97
97
98
98
$ switchPorts = $ this ->createElement ( 'select ' , 'switchportid ' );
99
99
100
100
$ switchPorts ->setRequired ( true )
101
101
->setRegisterInArrayValidator ( false )
102
102
->setLabel ( 'Port ' )
103
103
->setAttrib ( 'class ' , 'chzn-select span12 ' )
104
+ ->setAttrib ( 'chzn-nofix-width ' , '1 ' )
104
105
->addValidator ( 'greaterThan ' , false , array ( 'min ' => 1 ) )
105
106
->setErrorMessages ( array ( 'Please select a switch port ' ) );
106
107
$ this ->addElement ( $ switchPorts );
@@ -110,6 +111,7 @@ public function init()
110
111
$ status ->setMultiOptions ( \Entities \PhysicalInterface::$ STATES )
111
112
->setRegisterInArrayValidator ( true )
112
113
->setAttrib ( 'class ' , 'chzn-select span12 ' )
114
+ ->setAttrib ( 'chzn-nofix-width ' , '1 ' )
113
115
->setLabel ( 'Status ' )
114
116
->setErrorMessages ( array ( 'Please set the status ' ) );
115
117
$ this ->addElement ( $ status );
@@ -119,6 +121,7 @@ public function init()
119
121
$ speed ->setMultiOptions ( \Entities \PhysicalInterface::$ SPEED )
120
122
->setRegisterInArrayValidator ( true )
121
123
->setAttrib ( 'class ' , 'chzn-select span12 ' )
124
+ ->setAttrib ( 'chzn-nofix-width ' , '1 ' )
122
125
->setLabel ( 'Speed ' )
123
126
->setErrorMessages ( array ( 'Please set the speed ' ) );
124
127
$ this ->addElement ( $ speed );
@@ -128,6 +131,7 @@ public function init()
128
131
$ duplex ->setMultiOptions ( \Entities \PhysicalInterface::$ DUPLEX )
129
132
->setRegisterInArrayValidator ( true )
130
133
->setAttrib ( 'class ' , 'chzn-select span12 ' )
134
+ ->setAttrib ( 'chzn-nofix-width ' , '1 ' )
131
135
->setLabel ( 'Duplex ' )
132
136
->setErrorMessages ( array ( 'Please set the duplex ' ) );
133
137
$ this ->addElement ( $ duplex );
@@ -144,7 +148,10 @@ public function init()
144
148
// VLAN INTERFACE DETAILS
145
149
146
150
$ this ->addElement ( IXP_Form_Vlan::getPopulatedSelect ( 'vlanid ' ) );
147
- $ this ->getElement ( 'vlanid ' )->setAttrib ( 'class ' , 'chzn-select span12 ' );
151
+ $ this ->getElement ( 'vlanid ' )
152
+ ->setAttrib ( 'class ' , 'chzn-select span12 ' )
153
+ ->setAttrib ( 'chzn-nofix-width ' , '1 ' );
154
+
148
155
149
156
$ ipv4enabled = $ this ->createElement ( 'checkbox ' , 'ipv4enabled ' );
150
157
$ ipv4enabled ->setLabel ( 'IPv4 Enabled ' )
0 commit comments