|
|
@@ -34,9 +34,9 @@ const statusLLDIKTI = [
|
|
|
];
|
|
|
|
|
|
const jadwalSchema = Yup.object().shape({
|
|
|
- judul: Yup.string().required("Required"),
|
|
|
- dari_tanggal: Yup.date().required("Required"),
|
|
|
- sampai_tanggal: Yup.date().required("Required"),
|
|
|
+ judul: Yup.string().required("Wajib diisi"),
|
|
|
+ dari_tanggal: Yup.date().required("Wajib diisi"),
|
|
|
+ sampai_tanggal: Yup.date().required("Wajib diisi"),
|
|
|
});
|
|
|
|
|
|
const laporanSchema = Yup.object().shape({
|
|
|
@@ -166,9 +166,9 @@ class Calendar extends Component {
|
|
|
update = await updateLaporan(token, id, data);
|
|
|
}
|
|
|
if (!update) {
|
|
|
- toast.update(toastid, { render: "All is not good", type: "error", isLoading: false, autoClose: true, closeButton: true });
|
|
|
+ toast.update(toastid, { render: "Gagal simpan jadwal", type: "error", isLoading: false, autoClose: true, closeButton: true });
|
|
|
} else {
|
|
|
- toast.update(toastid, { render: "All is good", type: "success", isLoading: false, autoClose: true, closeButton: true });
|
|
|
+ toast.update(toastid, { render: "Input jadwal berhasil", type: "success", isLoading: false, autoClose: true, closeButton: true });
|
|
|
Router.push("/app/penjadwalan");
|
|
|
}
|
|
|
}
|
|
|
@@ -252,7 +252,7 @@ class Calendar extends Component {
|
|
|
""
|
|
|
) : (
|
|
|
<FormGroup>
|
|
|
- <label className="col-form-label">Keterangan</label>
|
|
|
+ <label className="col-form-label">Keterangan<span className=" text-danger">*</span></label>
|
|
|
<Field name="keterangan">{({ field, form }) => <Input type="text" placeholder="Keterangan" {...field} />}</Field>
|
|
|
<ErrorMessage name="keterangan" component="div" className="form-text text-danger" />
|
|
|
</FormGroup>
|
|
|
@@ -297,7 +297,7 @@ class Calendar extends Component {
|
|
|
</FormGroup>
|
|
|
|
|
|
<FormGroup>
|
|
|
- <label className="col-form-label">Judul</label>
|
|
|
+ <label className="col-form-label">Judul<span className=" text-danger">*</span></label>
|
|
|
<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>
|