1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-20 14:54:15 +01:00

(bug) training default seats should be null

This commit is contained in:
Sylvain 2022-11-24 09:34:40 +01:00
parent a55880a0ad
commit bc5e306091
2 changed files with 3 additions and 1 deletions

View File

@ -96,12 +96,13 @@ export const TrainingForm: React.FC<TrainingFormProps> = ({ action, training, on
id="machine_ids"
formState={formState}
label={t('app.admin.training_form.associated_machines')}
tooltip={t('app.admin.training_form.associated_machines_help')}
loadOptions={loadMachines} />}
<FormInput register={register}
type="number"
id="nb_total_places"
formState={formState}
rules={{ required: true }}
nullable
label={t('app.admin.training_form.default_seats')} />
<FormSwitch control={control}
id="public_page"

View File

@ -20,6 +20,7 @@ en:
add_a_new_training: "Add a new training"
validate_your_training: "Validate your training"
associated_machines: "Associated machines"
associated_machines_help: "If you associate a machine to this training, the members will need to successfully pass this training before being able to reserve the machine."
default_seats: "Default number of seats"
public_page: "Show in training lists"
public_help: "When unchecked, this option will prevent the training from appearing in the trainings list."