diff --git a/lms/lms/doctype/lms_batch/lms_batch.json b/lms/lms/doctype/lms_batch/lms_batch.json index f0838a4b..c5c66723 100644 --- a/lms/lms/doctype/lms_batch/lms_batch.json +++ b/lms/lms/doctype/lms_batch/lms_batch.json @@ -120,12 +120,14 @@ { "fieldname": "start_time", "fieldtype": "Time", - "label": "Start Time" + "label": "Start Time", + "reqd": 1 }, { "fieldname": "end_time", "fieldtype": "Time", - "label": "End Time" + "label": "End Time", + "reqd": 1 }, { "fieldname": "assessment_tab", @@ -281,7 +283,7 @@ ], "index_web_pages_for_search": 1, "links": [], - "modified": "2023-10-12 12:53:37.351989", + "modified": "2023-11-17 10:41:00.340418", "modified_by": "Administrator", "module": "LMS", "name": "LMS Batch", diff --git a/lms/public/js/common_functions.js b/lms/public/js/common_functions.js index e4cf8433..88a86e28 100644 --- a/lms/public/js/common_functions.js +++ b/lms/public/js/common_functions.js @@ -308,12 +308,14 @@ const open_batch_dialog = () => { label: __("Start Time"), fieldname: "start_time", default: batch_info && batch_info.start_time, + reqd: 1, }, { fieldtype: "Time", label: __("End Time"), fieldname: "end_time", default: batch_info && batch_info.end_time, + reqd: 1, }, { fieldtype: "Link", diff --git a/lms/www/batches/index.html b/lms/www/batches/index.html index d05bf6f5..0e18eb46 100644 --- a/lms/www/batches/index.html +++ b/lms/www/batches/index.html @@ -147,6 +147,18 @@ +