Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions client/src/components/BulkApproveAbsences.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,20 @@ export const BulkApproveAbsences = ({ label, name }) => {
};

return (
<ActionOrDialogButton label={label} name="approvedAbsences" dialogContent={({ onClose }) => (
<SimpleForm onSubmit={values => handleSave(values, onClose)}>
<ActionOrDialogButton label={label} name="approvedAbsences" title="אישור חיסורים מרוכז" dialogContent={({ onClose }) => (
<SimpleForm defaultValues={{approvedAbsences:[{absnceCount: 1}]}} onSubmit={values => handleSave(values, onClose)}>
<CommonReferenceInput source="studentReferenceId" reference="student_by_year" validate={required()} label="תלמידה" />
<DateInput source="reportDate" validate={required()} label="תאריך" />
<NumberInput source="absnceCode" label="קוד חיסור" />
<TextInput source="senderName" validate={maxLength(500)} label="שולחת" />
<TextInput source="reason" validate={maxLength(500)} label="סיבה" />
<TextInput source="comment" validate={maxLength(500)} label="הערה" />
<BooleanInput source="isApproved" defaultValue label="מאושר" />
<ArrayInput source="approvedAbsences" initialValues={[{ absnceCount: 1 }]} label="חיסורים לאישור">
<ArrayInput source="approvedAbsences" label="חיסורים לאישור">
<SimpleFormIterator>
<CommonReferenceInput source="klassReferenceId" reference="klass" validate={required()} label="כיתה" />
<CommonReferenceInput source="lessonReferenceId" reference="lesson" label="שיעור" />
<NumberInput source="absnceCount" validate={required()} label="מספר חיסורים" defaultValue={1} />
<NumberInput source="absnceCount" validate={required()} label="מספר חיסורים"/>
</SimpleFormIterator>
</ArrayInput>
</SimpleForm>
Expand Down
2 changes: 1 addition & 1 deletion client/src/entities/known-absence.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const importer = {
const additionalListActions = [
<BulkApproveAbsences
key="approvedAbsences"
label="חיסורים מאושרים"
label="אישור חיסורים לתלמידה"
name="approvedAbsences"
/>,
];
Expand Down