mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 12:19:12 +00:00
style: Fix formatting issues
This commit is contained in:
@@ -19,18 +19,22 @@ frappe.ui.form.on('Course Scheduling Tool', {
|
||||
}
|
||||
const { course_schedules } = r.message;
|
||||
if (course_schedules) {
|
||||
/* eslint-disable indent */
|
||||
const html = `<table class="table table-bordered">
|
||||
<caption>${__('Following course schedules were created')}</caption>
|
||||
<thead><tr><th>${__("Course")}</th><th>${__("Date")}</th></tr></thead>
|
||||
<tbody>
|
||||
${course_schedules.map(c =>
|
||||
`<tr><td><a href="/app/course-schedule/${c.name}">${c.name}</a></td>
|
||||
<td>${c.schedule_date}</td></tr>`
|
||||
).join('')}
|
||||
</tbody>
|
||||
</table>`;
|
||||
/* eslint-disable indent */
|
||||
const course_schedules_html = course_schedules.map(c => `
|
||||
<tr>
|
||||
<td><a href="/app/course-schedule/${c.name}">${c.name}</a></td>
|
||||
<td>${c.schedule_date}</td>
|
||||
</tr>
|
||||
`).join('');
|
||||
|
||||
const html = `
|
||||
<table class="table table-bordered">
|
||||
<caption>${__('Following course schedules were created')}</caption>
|
||||
<thead><tr><th>${__("Course")}</th><th>${__("Date")}</th></tr></thead>
|
||||
<tbody>
|
||||
${course_schedules_html}
|
||||
</tbody>
|
||||
</table>
|
||||
`;
|
||||
|
||||
frappe.msgprint(html);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user