Assign SawStop course to lockout

This commit is contained in:
Tanner Collin 2023-07-24 23:02:57 +00:00
parent c86d38229a
commit a4b3112232
3 changed files with 4 additions and 4 deletions

View File

@ -411,8 +411,8 @@ class TrainingViewSet(Base, Retrieve, Create, Update):
# always update cert date incase member is returning and gets recertified # always update cert date incase member is returning and gets recertified
if session.course.id == 249: if session.course.id == 249:
member.orientation_date = check_attendance() member.orientation_date = check_attendance()
#elif session.course.id == 261: elif session.course.id == 463:
# member.wood_cert_date = check_attendance() member.wood_cert_date = check_attendance()
elif session.course.id == 401: elif session.course.id == 401:
member.wood2_cert_date = check_attendance() member.wood2_cert_date = check_attendance()
elif session.course.id == 281: elif session.course.id == 281:

View File

@ -736,7 +736,7 @@ export function AdminMemberCertifications(props) {
<Table.Row> <Table.Row>
<Table.Cell>SawStop</Table.Cell> <Table.Cell>SawStop</Table.Cell>
<Table.Cell>{member.wood_cert_date ? 'Yes, ' + member.wood_cert_date : 'No'}</Table.Cell> <Table.Cell>{member.wood_cert_date ? 'Yes, ' + member.wood_cert_date : 'No'}</Table.Cell>
<Table.Cell>SawStop course (WIP)</Table.Cell> <Table.Cell><Link to='/courses/463'>SawStop Update</Link></Table.Cell>
<Table.Cell><AdminCert name='SawStop' field='wood_cert_date' {...props} loading={loading} setLoading={setLoading} /></Table.Cell> <Table.Cell><AdminCert name='SawStop' field='wood_cert_date' {...props} loading={loading} setLoading={setLoading} /></Table.Cell>
</Table.Row> </Table.Row>
<Table.Row> <Table.Row>

View File

@ -35,7 +35,7 @@ export function CertList(props) {
<Table.Row> <Table.Row>
<Table.Cell>SawStop</Table.Cell> <Table.Cell>SawStop</Table.Cell>
<Table.Cell>{isMobile && 'Enabled: '}{member.wood_cert_date ? 'Yes, ' + member.wood_cert_date : 'No'}</Table.Cell> <Table.Cell>{isMobile && 'Enabled: '}{member.wood_cert_date ? 'Yes, ' + member.wood_cert_date : 'No'}</Table.Cell>
<Table.Cell>SawStop course (WIP)</Table.Cell> <Table.Cell><Link to='/courses/463'>SawStop Update</Link></Table.Cell>
</Table.Row> </Table.Row>
<Table.Row> <Table.Row>
<Table.Cell>Drum Sander</Table.Cell> <Table.Cell>Drum Sander</Table.Cell>