@@ -6,7 +6,7 @@ import { faExclamationTriangle } from '@fortawesome/free-solid-svg-icons'
6
6
import { CippWizard } from 'src/components/layout'
7
7
import { WizardTableField } from 'src/components/tables'
8
8
import PropTypes from 'prop-types'
9
- import { RFFCFormSelect , RFFCFormTextarea } from 'src/components/forms'
9
+ import { RFFCFormRadio , RFFCFormSelect , RFFCFormTextarea } from 'src/components/forms'
10
10
import { useLazyGenericGetRequestQuery , useLazyGenericPostRequestQuery } from 'src/store/api/app'
11
11
import { OnChange } from 'react-final-form-listeners'
12
12
@@ -41,7 +41,6 @@ const AddPolicy = () => {
41
41
values . TemplateType = values . Type
42
42
genericPostRequest ( { path : '/api/AddCAPolicy' , values : values } )
43
43
}
44
- /* eslint-disable react/prop-types */
45
44
const WhenFieldChanges = ( { field, set } ) => (
46
45
< Field name = { set } subscription = { { } } >
47
46
{ (
@@ -147,6 +146,29 @@ const AddPolicy = () => {
147
146
/>
148
147
</ CCol >
149
148
</ CRow >
149
+ < RFFCFormRadio
150
+ value = "donotchange"
151
+ name = "newstate"
152
+ label = "Do not change state - Template contains the state information"
153
+ validate = { false }
154
+ > </ RFFCFormRadio >
155
+ < RFFCFormRadio
156
+ value = "Enabled"
157
+ name = "newstate"
158
+ label = "Enabled"
159
+ validate = { false }
160
+ > </ RFFCFormRadio >
161
+ < RFFCFormRadio
162
+ value = "Disabled"
163
+ name = "newstate"
164
+ label = "Disabled"
165
+ validate = { false }
166
+ > </ RFFCFormRadio >
167
+ < RFFCFormRadio
168
+ value = "enabledForReportingButNotEnforced"
169
+ name = "newstate"
170
+ label = "Report only"
171
+ > </ RFFCFormRadio >
150
172
< hr className = "my-4" />
151
173
< WhenFieldChanges field = "TemplateList" set = "rawjson" />
152
174
</ CippWizard . Page >
@@ -159,7 +181,6 @@ const AddPolicy = () => {
159
181
{ ! postResults . isSuccess && (
160
182
< FormSpy >
161
183
{ ( props ) => {
162
- /* eslint-disable react/prop-types */
163
184
return (
164
185
< >
165
186
< CRow >
0 commit comments