Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
ska-angular-webapp-skeleton
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
SKAO
templates
ska-angular-webapp-skeleton
Commits
db3514bf
Commit
db3514bf
authored
3 years ago
by
smita wanere
Browse files
Options
Downloads
Patches
Plain Diff
added-labels-validation-msg-to-lang-config-file
parent
95156365
No related branches found
No related tags found
1 merge request
!12
Draft: AT2-1158 Add Dummy Login Screen
Pipeline
#484850278
passed
3 years ago
Stage: dependencies
Stage: test
Stage: .post
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/ska_angular_webapp_skeleton/app/login/login.component.html
+6
-6
6 additions, 6 deletions
...ka_angular_webapp_skeleton/app/login/login.component.html
src/ska_angular_webapp_skeleton/assets/i18n/en.json
+8
-0
8 additions, 0 deletions
src/ska_angular_webapp_skeleton/assets/i18n/en.json
with
14 additions
and
6 deletions
src/ska_angular_webapp_skeleton/app/login/login.component.html
+
6
−
6
View file @
db3514bf
<main
data-component=
"login"
>
<mat-card>
<mat-card-header>
<mat-card-title
>
Login
</mat-card-title>
<mat-card-title
translate
>
translate.login-compo.cardTitle
</mat-card-title>
</mat-card-header>
<mat-card-content>
<form
[formGroup]=
"loginForm"
(ngSubmit)=
"onSubmit()"
novalidate
>
<mat-form-field
appearance=
"outline"
>
<mat-label
>
Enter U
ser
Name
</mat-label>
<mat-label
translate
>
translate.login-compo.u
serName
Label
</mat-label>
<input
matInput
placeholder=
"Enter Value"
formControlName=
"userName"
id=
"userName"
required
/>
<mat-error
*ngIf=
"hasError('userName', 'required')"
>
userName
is r
equired
</mat-error>
<mat-error
translate
*ngIf=
"hasError('userName', 'required')"
>
translate.login-comp.
userName
R
equired
</mat-error>
</mat-form-field>
<mat-form-field
appearance=
"outline"
>
<mat-label
>
Enter your
password
</mat-label>
<mat-label
translate
>
translate.login-compo.
password
Label
</mat-label>
<input
matInput
[type]=
"'password'"
formControlName=
"password"
id=
"password"
required
minlength=
"4"
/>
<mat-error
*ngIf=
"hasError('password', 'required')"
>
password
is r
equired
</mat-error>
<mat-error
*ngIf=
"hasError('password', 'minlength')"
>
password is not valid
</mat-error>
<mat-error
translate
*ngIf=
"hasError('password', 'required')"
>
translate.login-comp.
password
R
equired
</mat-error>
<mat-error
*ngIf=
"hasError('password', 'minlength')"
>
translate.login-comp.passwordMinLength
</mat-error>
</mat-form-field>
<button
mat-raised-button
color=
"primary"
[disabled]=
"!loginForm.valid"
>
Login
</button>
...
...
This diff is collapsed.
Click to expand it.
src/ska_angular_webapp_skeleton/assets/i18n/en.json
+
8
−
0
View file @
db3514bf
...
...
@@ -4,6 +4,14 @@
"dummyText"
:
"Welcome to skeleton"
,
"subDummyText"
:
"This is a test"
,
"noTranslation"
:
"There is no translation for this message"
},
"login-compo"
:
{
"userNameLabel"
:
"Enter User Name"
,
"passwordLabel"
:
"Enter Password"
,
"userNameRequired"
:
"A username is required"
,
"passwordRequired"
:
"Password is required"
,
"cardTitle"
:
"Login"
,
"passwordMinLength"
:
"Please choose a password with at least 4 characters"
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment