Project

General

Profile

« Previous | Next » 

Revision 53748

Check if input emails are valid and Send inviatation to multiple emails

View differences:

invite.component.html
25 25
                                        <tr>
26 26
                                            <td for="email.recipients[0]" class="uk-text-bold uk-text-right">To <span class="uk-text-danger uk-text-bold">*</span> :</td>
27 27
                                            <td class="uk-text-left">
28

  
29
                                                <!-- <div *ngIf="!email.recipients[1].match('^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$')"
30
                                                        class="uk-width-large uk-text-danger uk-text-small uk-margin-top"> Please add a valid email. </div> -->
28
                                                <!-- <div *ngIf="email.recipients && email.recipients[0] != ''">
29
                                                        <div >
30
                                                        </div>
31
                                                        <div *ngFor='let emailsss of email.recipients.split(,), let index; trackBy:trackByFn'> -->
32
                                                                <!-- <div *ngIf="!email[i].match('^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$')"
33
                                                                        class="uk-width-large uk-text-danger uk-text-small uk-margin-top"> Please add a valid email. </div> -->
34
                                                        <!-- </div>
35
                                                </div> -->
31 36
                                                <input  placeholder="email" type="text"
32
                                                        class="form-control uk-input uk-width-large@l uk-width-medium@s" [(ngModel)] = "email.recipients[0]" id="recipients"
33
                                                        required >
34
                                                        {{email.recipients}}
37
                                                        class="form-control uk-input uk-width-large@l uk-width-medium@s" [(ngModel)] = "recipients" id="recipients"
38
                                                        required>
35 39
                                                <div class="uk-width-medium uk-text-muted uk-text-small style=display:none">separate multiple emails with a comma</div>
36 40
                                            </td>
37 41

  
......
69 73
                                                       <!--[config]="{uiColor: '#99000'}"-->
70 74
                                                       <!--(blur)="onBlur($event)"-->
71 75
                                                       <!--(change)="onChange($event)"-->
72
                                                    </ckeditor>
76
                                                   </ckeditor>
73 77
                                                <!-- <textarea type="text"
74 78
                                                        class="form-control uk-input uk-width-large@l uk-width-medium@s" [(ngModel)] = "email.body" id="message">
75 79
                                                </textarea> -->
......
131 135
        </div>
132 136
</div>
133 137
</div>
134
<div *ngIf="longView =='false'">
138
<div *ngIf="longView == false">
135 139
        <div class="uk-width-large@m uk-width-1-1@s">
136 140
          <div class="uk-card uk-card-default uk-card-body">
137 141
            <div class="uk-text-center uk-text-large">

Also available in: Unified diff