feat: publish batches

This commit is contained in:
Jannat Patel
2023-09-12 15:09:13 +05:30
19 changed files with 218 additions and 33 deletions

View File

@@ -2339,4 +2339,8 @@ select {
.batch-course-list .cards-parent {
row-gap: 3rem
}
.embed-tool__caption {
display: none;
}

View File

@@ -261,6 +261,24 @@ const open_batch_dialog = () => {
reqd: 1,
default: batch_info && batch_info.title,
},
{
fieldtype: "Check",
label: __("Published"),
fieldname: "published",
default: batch_info && batch_info.published,
},
{
fieldtype: "Column Break",
},
{
fieldtype: "Int",
label: __("Seat Count"),
fieldname: "seat_count",
default: batch_info && batch_info.seat_count,
},
{
fieldtype: "Section Break",
},
{
fieldtype: "Date",
label: __("Start Date"),
@@ -297,12 +315,6 @@ const open_batch_dialog = () => {
fieldname: "end_time",
default: batch_info && batch_info.end_time,
},
{
fieldtype: "Int",
label: __("Seat Count"),
fieldname: "seat_count",
default: batch_info && batch_info.seat_count,
},
{
fieldtype: "Link",
label: __("Category"),