@@ -47,6 +47,7 @@ const AddPolicy = () => {
4747 name = "selectedTenants"
4848 type = "multiple"
4949 allTenants = { true }
50+ preselectedEnabled = { true }
5051 validators = { { required : "At least one tenant must be selected" } }
5152 />
5253 </ Grid >
@@ -72,73 +73,67 @@ const AddPolicy = () => {
7273 </Grid> */ }
7374
7475 < Divider sx = { { my : 2 , width : "100%" } } />
75- < Grid xs = { 6 } >
76- < CippFormComponent
77- type = "textField"
78- label = "Policy Name"
79- name = "Name"
80- placeholder = "Enter policy name"
81- formControl = { formControl }
82- required = { true }
83- />
84- < Divider sx = { { my : 2 , width : "100%" } } />
85- < CippFormComponent
86- type = "autoComplete"
87- label = "Release Action Preference"
88- name = "ReleaseActionPreference"
89- placeholder = "Select release action preference"
90- formControl = { formControl }
91- required = { true }
92- multiple = { false }
93- options = { [
94- { label : "Release" , value : "Release" } ,
95- { label : "Request Release" , value : "RequestRelease" } ,
96- ] }
97- />
98- </ Grid >
76+ < Grid xs = { 6 } >
77+ < CippFormComponent
78+ type = "textField"
79+ label = "Policy Name"
80+ name = "Name"
81+ placeholder = "Enter policy name"
82+ formControl = { formControl }
83+ required = { true }
84+ />
85+ < Divider sx = { { my : 2 , width : "100%" } } />
86+ < CippFormComponent
87+ type = "autoComplete"
88+ label = "Release Action Preference"
89+ name = "ReleaseActionPreference"
90+ placeholder = "Select release action preference"
91+ formControl = { formControl }
92+ required = { true }
93+ multiple = { false }
94+ options = { [
95+ { label : "Release" , value : "Release" } ,
96+ { label : "Request Release" , value : "RequestRelease" } ,
97+ ] }
98+ />
99+ </ Grid >
99100
100- < Grid xs = { 2 } >
101-
102- < CippFormComponent
103- type = "switch"
104- label = "Delete"
105- name = "Delete"
106- formControl = { formControl }
107- />
108- < CippFormComponent
109- type = "switch"
110- label = "Preview"
111- name = "Preview"
112- formControl = { formControl }
113- />
114- < CippFormComponent
115- type = "switch"
116- label = "Block Sender"
117- name = "BlockSender"
118- formControl = { formControl }
119- />
120- < CippFormComponent
121- type = "switch"
122- label = "Allow Sender"
123- name = "AllowSender"
124- formControl = { formControl }
125- />
126- </ Grid >
127- < Grid xs = { 4 } >
128- < CippFormComponent
129- type = "switch"
130- label = "Quarantine Notification"
131- name = "QuarantineNotification"
132- formControl = { formControl }
133- />
134- < CippFormComponent
135- type = "switch"
136- label = "Include Messages From Blocked Sender Address"
137- name = "IncludeMessagesFromBlockedSenderAddress"
138- formControl = { formControl }
139- disabled = { ! quarantineNotification }
140- />
141- </ Grid >
101+ < Grid xs = { 2 } >
102+ < CippFormComponent type = "switch" label = "Delete" name = "Delete" formControl = { formControl } />
103+ < CippFormComponent
104+ type = "switch"
105+ label = "Preview"
106+ name = "Preview"
107+ formControl = { formControl }
108+ />
109+ < CippFormComponent
110+ type = "switch"
111+ label = "Block Sender"
112+ name = "BlockSender"
113+ formControl = { formControl }
114+ />
115+ < CippFormComponent
116+ type = "switch"
117+ label = "Allow Sender"
118+ name = "AllowSender"
119+ formControl = { formControl }
120+ />
121+ </ Grid >
122+ < Grid xs = { 4 } >
123+ < CippFormComponent
124+ type = "switch"
125+ label = "Quarantine Notification"
126+ name = "QuarantineNotification"
127+ formControl = { formControl }
128+ />
129+ < CippFormComponent
130+ type = "switch"
131+ label = "Include Messages From Blocked Sender Address"
132+ name = "IncludeMessagesFromBlockedSenderAddress"
133+ formControl = { formControl }
134+ disabled = { ! quarantineNotification }
135+ />
136+ </ Grid >
142137 </ Grid >
143138 </ CippFormPage >
144139 ) ;
0 commit comments