diff --git a/app/controllers/main_routes/main_routes.py b/app/controllers/main_routes/main_routes.py index b4c34ea4..14bff875 100755 --- a/app/controllers/main_routes/main_routes.py +++ b/app/controllers/main_routes/main_routes.py @@ -206,19 +206,17 @@ def getFormattedData(filteredSearchResults, view ='simple'): for form in filteredSearchResults: # The order in which you append the items to 'record' matters and it should match the order of columns on the table! formattedData.append([f""" - - - {form.formID.studentSupervisee.FIRST_NAME} {form.formID.studentSupervisee.LAST_NAME} ({form.formID.studentSupervisee.ID}) - + + {form.formID.studentSupervisee.FIRST_NAME} {form.formID.studentSupervisee.LAST_NAME} ({form.formID.studentSupervisee.ID}) {form.status}
- {form.formID.termCode.termName} - {form.formID.POSN_TITLE} ({form.formID.jobType}) - {form.formID.department.DEPT_NAME} + {form.formID.termCode.termName} - {form.formID.POSN_TITLE} ({form.formID.jobType}) - {form.formID.department.DEPT_NAME} """]) return formattedData supervisorHTML = '{} ' - studentHTML = '
{}
{}
' + studentHTML = '
{}
{}
' departmentHTML = ' {}' positionHTML = ' {}' formTypeStatus = ' {}' @@ -230,8 +228,7 @@ def getFormattedData(filteredSearchResults, view ='simple'): record.append(form.formID.termCode.termName) # Student record.append(studentHTML.format( - form.formID.laborStatusFormID, - form.formID.studentSupervisee.ID, + form.formID.studentSupervisee.ID, f'{form.formID.studentSupervisee.preferred_name if form.formID.studentSupervisee.preferred_name else form.formID.studentSupervisee.legal_name} {form.formID.studentSupervisee.LAST_NAME}', form.formID.studentSupervisee.ID, form.formID.studentSupervisee.STU_EMAIL)) @@ -277,7 +274,7 @@ def getFormattedData(filteredSearchResults, view ='simple'): - record.append(f'{form.formID.POSN_TITLE}
{positionField}') + record.append(f'{form.formID.POSN_TITLE}
{positionField}') record.append(hoursField) # Contract Dates record.append("
".join([form.formID.startDate.strftime('%m/%d/%y'), diff --git a/app/static/js/laborhistory.js b/app/static/js/laborhistory.js index 4ad753be..ef01d1a0 100755 --- a/app/static/js/laborhistory.js +++ b/app/static/js/laborhistory.js @@ -11,11 +11,11 @@ $('#positionTable tbody tr td').on('click',function(){ $("#flash_container").html(''); $("#flasher").delay(3000).fadeOut(); } else { - loadLaborHistoryModal(this.id) + loadFormHistoryModal(this.id) } }); -function loadLaborHistoryModal(formHistory) { +function loadFormHistoryModal(formHistory) { $("#modal").modal("show"); $("#modal").find('.modal-content').load('/laborHistory/modal/' + formHistory); setTimeout(function(){ $(".loader").fadeOut("slow"); }, 500);