-
Notifications
You must be signed in to change notification settings - Fork 1
50 improve required field look and feel #73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -17,7 +16,7 @@ export class CreateActivityComponent { | |||
constructor(private formBuilder: FormBuilder) { | |||
this.activityForm = this.formBuilder.group({ | |||
name: ['', Validators.required], | |||
description: [''] | |||
description: ['', Validators.required], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't if the description is required in activity. @enriquezrene can help us.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not, let's remove this validation @daros10
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done @enriquezrene
@@ -17,7 +16,7 @@ export class CreateActivityComponent { | |||
constructor(private formBuilder: FormBuilder) { | |||
this.activityForm = this.formBuilder.group({ | |||
name: ['', Validators.required], | |||
description: [''] | |||
description: ['', Validators.required], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not, let's remove this validation @daros10
required | ||
/> | ||
<p class="text-danger" *ngIf="(name.dirty || name.touched) && name.invalid && name.errors.required"> | ||
Name Project is required. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Project name is required.
required | ||
></textarea> | ||
<p class="text-danger" *ngIf="(details.dirty || details.touched) && details.invalid && details.errors.required"> | ||
Details Project is required. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Project details are required.
</select> | ||
<p class="alert alert-danger" *ngIf="(status.dirty || status.touched) && status.invalid && status.errors.required">Status Project is required.</p> | ||
<p class="text-danger" *ngIf="(status.dirty || status.touched) && status.invalid && status.errors.required"> | ||
Status Project is required. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Project status is required.
This PR replaces the previous one.