Skip to content

Commit 663142e

Browse files
NateowamiRaymondLuong3
authored andcommitted
Add missing error messages to onboarding form
1 parent 9f24d06 commit 663142e

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-signup-form/draft-onboarding-form.component.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ <h1>{{ t("title") }}</h1>
6969
formControlName="translationLanguageName"
7070
[placeholder]="t('translation_language_name_placeholder')"
7171
/>
72+
@if (signupForm.controls.translationLanguageName.hasError("required")) {
73+
<mat-error>{{ t("translation_language_name_required") }}</mat-error>
74+
}
7275
</mat-form-field>
7376
</div>
7477

@@ -80,6 +83,9 @@ <h1>{{ t("title") }}</h1>
8083
formControlName="translationLanguageIsoCode"
8184
[placeholder]="t('translation_language_iso_placeholder')"
8285
/>
86+
@if (signupForm.controls.translationLanguageIsoCode.hasError("required")) {
87+
<mat-error>{{ t("translation_language_iso_required") }}</mat-error>
88+
}
8389
</mat-form-field>
8490
</div>
8591

src/SIL.XForge.Scripture/ClientApp/src/assets/i18n/non_checking_en.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -972,8 +972,10 @@
972972
"title": "Sign up for draft generation",
973973
"translation_language_iso_label": "Translation language ISO code",
974974
"translation_language_iso_placeholder": "e.g. swa, tpi",
975+
"translation_language_iso_required": "Translation language ISO code is required",
975976
"translation_language_name_label": "Translation language name",
976-
"translation_language_name_placeholder": "e.g. Swahili, Tok Pisin"
977+
"translation_language_name_placeholder": "e.g. Swahili, Tok Pisin",
978+
"translation_language_name_required": "Translation language name is required"
977979
},
978980
"users": {
979981
"collaborators": "Collaborators",

0 commit comments

Comments
 (0)