components/openstack/horizon/files/overrides.py
changeset 4518 9d8f9947b371
parent 3998 5bd484384122
child 4695 0aecdc531b77
equal deleted inserted replaced
4517:61dba4b40cd4 4518:9d8f9947b371
   141 # Disable 'admin_state' in Project/Networks/Create Network/Network
   141 # Disable 'admin_state' in Project/Networks/Create Network/Network
   142 admin_state = CreateNetworkInfoAction.base_fields['admin_state']
   142 admin_state = CreateNetworkInfoAction.base_fields['admin_state']
   143 admin_state.widget.attrs['disabled'] = True
   143 admin_state.widget.attrs['disabled'] = True
   144 admin_state.widget.value_from_datadict = lambda *args: True
   144 admin_state.widget.value_from_datadict = lambda *args: True
   145 
   145 
   146 # Disable 'no_gateway' in Project/Networks/Create Network/Network. Note that
       
   147 # this is unchecked by default.
       
   148 CreateSubnetInfoAction.base_fields['no_gateway'].widget.attrs['disabled'] = \
       
   149     True
       
   150 
       
   151 # Remove 'CreateVolumeFromImage' checkbox from
   146 # Remove 'CreateVolumeFromImage' checkbox from
   152 # Project/Images & Snapshots/Actions
   147 # Project/Images & Snapshots/Actions
   153 ImagesTable._meta.row_actions = (LaunchImage, EditImage, DeleteImage,)
   148 ImagesTable._meta.row_actions = (LaunchImage, EditImage, DeleteImage,)
   154 
   149 
   155 # Change 'host_routes' field to read-only in
   150 # Change 'host_routes' field to read-only in