Assign SawStop course to lockout

master
Tanner Collin 9 months ago
parent c86d38229a
commit a4b3112232
  1. 4
      apiserver/apiserver/api/views.py
  2. 2
      webclient/src/AdminMembers.js
  3. 2
      webclient/src/Training.js

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

@ -736,7 +736,7 @@ export function AdminMemberCertifications(props) {
<Table.Row>
<Table.Cell>SawStop</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.Row>
<Table.Row>

@ -35,7 +35,7 @@ export function CertList(props) {
<Table.Row>
<Table.Cell>SawStop</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.Cell>Drum Sander</Table.Cell>

Loading…
Cancel
Save