Project

General

Profile

« Previous | Next » 

Revision 52064

1. Use modal from library for 'save' and 'update' forms ('<modal-form>' changed to '<modal-alert>').
2. Asterisks (*) added in necessary fields of forms.

View differences:

community-form.component.html
1 1
<form [formGroup]="myForm">
2 2
    <div class="form-group" [ngClass]="{'has-error':!myForm.controls.name.valid && myForm.controls.name.dirty}">
3
        <label for="communityNameTag">Community Name</label>
3
        <label for="communityNameTag">*Community Name</label>
4 4
        <input type="text" class="form-control" formControlName="name" id="pageNameTag" placeholder="Community Name">
5 5
    </div>
6 6
    <div class="form-group" [ngClass]="{'has-error':!myForm.controls.pid.valid && myForm.controls.pid.dirty}">
7
        <label for="communityPidTag">Community persistent id for portal</label>
7
        <label for="communityPidTag">*Community persistent id for portal</label>
8 8
        <input type="text" class="uk-input uk-width-medium" formControlName="pid" id="communityPidTag" placeholder="Community Pid">
9 9
    </div>
10 10
    <input type="hidden" formControlName="_id">

Also available in: Unified diff