|
|
@@ -64,6 +64,7 @@ class Calendar extends Component {
|
|
|
laporan: {},
|
|
|
selectedOption: null,
|
|
|
color: "",
|
|
|
+ disabled: true,
|
|
|
};
|
|
|
}
|
|
|
|
|
|
@@ -241,6 +242,7 @@ class Calendar extends Component {
|
|
|
}}
|
|
|
options={this.getStatus()}
|
|
|
required
|
|
|
+ isDisabled={laporan.data?.sanksi}
|
|
|
/>
|
|
|
)}
|
|
|
</Field>
|
|
|
@@ -296,7 +298,7 @@ class Calendar extends Component {
|
|
|
|
|
|
<FormGroup>
|
|
|
<label className="col-form-label">Judul</label>
|
|
|
- <Field name="judul">{({ field, form }) => <Input type="text" placeholder="judul" {...field} />}</Field>
|
|
|
+ <Field name="judul">{({ field, form }) => <Input disabled={laporan.data?.sanksi} type="text" placeholder="judul" {...field} />}</Field>
|
|
|
<ErrorMessage name="judul" component="div" className="form-text text-danger" />
|
|
|
</FormGroup>
|
|
|
<Row>
|
|
|
@@ -306,6 +308,8 @@ class Calendar extends Component {
|
|
|
<Field name="dari_tanggal">
|
|
|
{({ field, form }) => (
|
|
|
<Datetime
|
|
|
+ open={false}
|
|
|
+ updateOnView={false}
|
|
|
timeFormat={false}
|
|
|
inputProps={{ className: "form-control" }}
|
|
|
value={field.value}
|
|
|
@@ -324,6 +328,7 @@ class Calendar extends Component {
|
|
|
<Field name="sampai_tanggal">
|
|
|
{({ field, form }) => (
|
|
|
<Datetime
|
|
|
+ closeOnSelect={false}
|
|
|
timeFormat={false}
|
|
|
inputProps={{ className: "form-control" }}
|
|
|
value={field.value}
|