equal
deleted
inserted
replaced
52 DeleteNetwork as projectDeleteNetwork |
52 DeleteNetwork as projectDeleteNetwork |
53 from openstack_dashboard.dashboards.project.networks.tables import \ |
53 from openstack_dashboard.dashboards.project.networks.tables import \ |
54 NetworksTable as projectNetworksTable |
54 NetworksTable as projectNetworksTable |
55 from openstack_dashboard.dashboards.project.networks.workflows import \ |
55 from openstack_dashboard.dashboards.project.networks.workflows import \ |
56 CreateNetworkInfoAction, CreateSubnetDetailAction, CreateSubnetInfoAction |
56 CreateNetworkInfoAction, CreateSubnetDetailAction, CreateSubnetInfoAction |
57 from openstack_dashboard.dashboards.project.stacks.tabs import \ |
|
58 StackDetailTabs, StackEventsTab, StackOverviewTab, StackResourcesTab |
|
59 |
57 |
60 # Remove 'PostCreationStep' from Project/Instances/Launch Instance |
58 # Remove 'PostCreationStep' from Project/Instances/Launch Instance |
61 create_instance.LaunchInstance.default_steps = ( |
59 create_instance.LaunchInstance.default_steps = ( |
62 create_instance.SelectProjectUser, |
60 create_instance.SelectProjectUser, |
63 create_instance.SetInstanceDetails, |
61 create_instance.SetInstanceDetails, |
144 |
142 |
145 # Remove 'CreateVolumeFromImage' checkbox from |
143 # Remove 'CreateVolumeFromImage' checkbox from |
146 # Project/Images & Snapshots/Actions |
144 # Project/Images & Snapshots/Actions |
147 ImagesTable._meta.row_actions = (LaunchImage, EditImage, DeleteImage,) |
145 ImagesTable._meta.row_actions = (LaunchImage, EditImage, DeleteImage,) |
148 |
146 |
149 # Change 'allocation_pools' and 'host_routes' fields to read-only in |
147 # Change 'host_routes' field to read-only in |
150 # Project/Networks/Create Network/Subnet Detail |
148 # Project/Networks/Create Network/Subnet Detail |
151 base_fields = CreateSubnetDetailAction.base_fields |
149 base_fields = CreateSubnetDetailAction.base_fields |
152 base_fields['allocation_pools'].widget.attrs['readonly'] = 'readonly' |
|
153 base_fields['host_routes'].widget.attrs['readonly'] = 'readonly' |
150 base_fields['host_routes'].widget.attrs['readonly'] = 'readonly' |
154 |
|
155 # Remove 'StackTopologyTab' from Project/Stacks/StackDetailTabs |
|
156 StackDetailTabs.tabs = (StackOverviewTab, StackResourcesTab, StackEventsTab) |
|