Display max student count

This commit is contained in:
Tanner Collin 2020-01-16 02:35:01 +00:00
parent a58aa22bbf
commit d171f19d4e
2 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@ function ClassTable(props) {
<Table.Cell>{x.is_cancelled ? 'Cancelled' : moment.utc(x.datetime).local().format('LT')}</Table.Cell>
<Table.Cell>{x.instructor_name}</Table.Cell>
<Table.Cell>{x.cost === '0.00' ? 'Free' : '$'+x.cost}</Table.Cell>
<Table.Cell>{x.student_count}</Table.Cell>
<Table.Cell>{x.student_count} {x.max_students && '/ '+x.max_students}</Table.Cell>
</Table.Row>
)
:
@ -144,7 +144,7 @@ export function ClassDetail(props) {
</Table.Row>
<Table.Row>
<Table.Cell>Students:</Table.Cell>
<Table.Cell>{clazz.student_count}</Table.Cell>
<Table.Cell>{clazz.student_count} {clazz.max_students && '/ '+clazz.max_students}</Table.Cell>
</Table.Row>
</Table.Body>
</BasicTable>

View File

@ -45,7 +45,7 @@ function InstructorClassEditor(props) {
/>
<Form.Input
label='Max Number of Students'
label='Max Students — Blank for Unlimited'
{...makeProps('max_students')}
/>