Forums

Grouped table row headings with submit buttons

healyhatman 06 Apr, 2018
Hi there I have two tables in my database

_employee_timesheet and _employee_timesheet_timesheetline

I have a form that creates timesheetlines (basically an entry on a timesheet)

What I would like is to be able to view all the timesheet entries by week, with an expandable panel showing individual timesheet entries, with the heading of that row being "Week Starting {date}" and showing all timesheetlines in that week.

The header row needs to have a submit button that will submit all the unsubmitted timesheetlines in that week, that is disabled (or non-existant) if all the timesheetlines in that week have already been submitted. Like in the attached photo.

Is this all a possibility?

Note on the photo : forgot to add the little + symbols showing you can expand the panels.

This topic is locked and no more replies can be posted.