Project

General

Profile

1
<div *ngIf="longView == true">
2
<div class=" uk-section  uk-margin-small-top tm-middle uk-container" id="tm-main">
3

    
4
        <div class="uk-container  uk-margin-bottom">
5

    
6
                <div id="invite" class=" uk-card uk-card-default uk-padding">
7
                        <div class="uk-text-large uk-text-center uk-width-5-6@l uk-width ">Invite users to subscribe</div>
8
                        <!--table *ngIf="communityId != null && community != null && !showLoading && !errorMessage" class="uk-table uk-align-center"-->
9
                        <table class="uk-table uk-align-center">
10
                                <tbody>
11
                                        <!-- <tr>
12
                                            <td>
13
                                            </td>
14
                                            <td>
15
                                                <li>Invite by email</li>
16
                                            </td>
17
                                        </tr> -->
18
                                        <tr>
19
                                            <td for="from" class="uk-text-bold uk-width-1-3@xl uk-width-1-3@m uk-width-1-3@s uk-text-right">From:</td>
20
                                            <td class="uk-text-left uk-width-expand">
21
                                                <input  placeholder="Type your name" type="text"
22
                                                        class="form-control uk-input uk-width-large@l uk-width-medium@s" [(ngModel)] = "body.fromName" id="from">
23
                                            </td>
24
                                        </tr>
25
                                        <tr>
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
                                            <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> -->
31
                                                <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}}
35
                                                <div class="uk-width-medium uk-text-muted uk-text-small style=display:none">separate multiple emails with a comma</div>
36
                                            </td>
37

    
38
                                        </tr>
39
                                </tbody>
40
                        </table>
41
                        <div class="boundary-align uk-panel uk-placeholder">
42

    
43
                        <table class="uk-table uk-align-center">
44
                                <tbody>
45
                                        <tr>
46
                                           <td class="uk-text-bold uk-width-1-4@xl uk-width-1-4@m uk-width-1-4@s uk-text-right"></td>
47
                                           <td class="uk-text-left">
48
                                                {{body.salutation}}<br>
49
                                                <span *ngIf="body.fromName == ''" class="uk-text-muted">
50
                                                        <i>{{body.fromMessage}}...</i>
51
                                                </span>
52
                                                <span *ngIf="body.fromName !=''">
53
                                                        {{body.fromMessage}}
54
                                                        <b>{{body.fromName}}</b>
55
                                                </span>
56
                                           </td>
57
                                        </tr>
58
                                        <tr>
59
                                           <td for="email.body" class="uk-text-bold uk-text-right">Message:</td>
60
                                           <td class="uk-text-left">
61
                                                   <ckeditor
62
                                                        debounce="400"
63
                                                        [config]="{ extraAllowedContent: '* [uk-*](*) ; span', disallowedContent: 'script; *[on*]', removeButtons: 'Save,NewPage,DocProps,Preview,Print',
64
                                                                   extraPlugins: 'divarea'}">
65
                                                       <!-- <id="contentTag"-->
66
                                                       <!--(ready)="onReady($event)"-->
67
                                                       <!--(focus)="onFocus($event)"-->
68
                                                       <!--[config]="{uiColor: '#99000'}"-->
69
                                                       <!--(blur)="onBlur($event)"-->
70
                                                       <!--(change)="onChange($event)"-->
71
                                                    </ckeditor>
72
                                                <!-- <textarea type="text"
73
                                                        class="form-control uk-input uk-width-large@l uk-width-medium@s" [(ngModel)] = "email.body" id="message">
74
                                                </textarea> -->
75
                                           </td>
76
                                        </tr>
77
                                        <tr>
78
                                           <td></td>
79
                                           <td class="uk-text-left">
80
                                                {{body.closing}}<br>
81
                                                {{body.signature}}
82
                                           </td>
83
                                        </tr>
84
                                        <!-- <tr>
85
                                           <td for="email.subject" class="uk-text-bold uk-text-right">Subject :</td>
86
                                           <td class="uk-text-left">
87
                                                <textarea type="text"
88
                                                        class="form-control uk-input uk-width-large@l uk-width-medium@s" [(ngModel)] = "email.subject" id="subject">
89
                                                </textarea>
90
                                           </td>
91
                                        </tr> -->
92
                                </tbody>
93
                        </table>
94
                        </div>
95
                        <table class="uk-table uk-align-center">
96
                                <tbody>
97
                                        <tr>
98
                                          <td class="uk-text-bold uk-width-3-5@xl uk-width-3-5@m uk-width-3-5@s uk-text-right"></td>
99
                                          <td><div class="uk-padding uk-padding-remove-top uk-padding-remove-bottom uk-text-danger uk-text-bold">* Required fields</div>
100
                                          </td>
101
                                        </tr>
102
                                        <tr>
103
                                          <td class="uk-text-right"></td>
104
                                          <td>
105
                                              <div class="uk-grid-margin uk-first-column uk-align-center uk-text-left uk-padding uk-padding-remove-top uk-padding-remove-bottom">
106
                                                  <button class="uk-button uk-button-primary" (click)="invite()">Invite</button>
107
                                              </div>
108
                                          </td>
109
                                        </tr>
110
                                        <!-- <tr>
111
                                           <td>
112
                                           </td>
113
                                           <td>
114
                                                <li>Invite by link</li>
115
                                           </td>
116
                                        </tr> -->
117
                                        <!-- <tr>
118
                                           <td for="link" class="uk-text-bold uk-text-right">Link :</td>
119
                                           <td class="uk-text-left">
120
                                                <input  placeholder="link" type="text"
121
                                                        class="form-control uk-input uk-width-large@l uk-width-medium@s" id="link"></td>
122
                                        </tr>
123
                                        <tr>
124
                                          <td class="uk-text-right"></td>
125
                                          <td>
126
                                              <div class="uk-grid-margin uk-first-column uk-align-center uk-text-left uk-padding uk-padding-remove-top uk-padding-remove-bottom">
127
                                                  <button class="uk-button" (click)="resetForm(communityId)">Cancel</button>
128
                                              </div>
129
                                          </td>
130
                                        </tr> -->
131
                                </tbody>
132
                        </table>
133

    
134
                        <div class="uk-text-left">
135
                                <span uk-icon="chevron-left"></span><span class="uk-margin-small-left"><a href="invite">Back</a></span>
136
                        </div>
137
                </div>
138
        </div>
139
</div>
140
</div>
141
<!-- <div *ngIf="longView =='false'">
142
        <div class="uk-width-large@m uk-width-1-1@s">
143
          <div class="uk-card uk-card-default uk-card-body">
144
            <div class="uk-text-center uk-text-large">
145
              <div> Invite users to subscribe </div>
146
              <div uk-grid>
147
                  <div class="uk-width-1-6">
148
                    <span class="uk-margin-small-right" uk-icon="social"></span>
149
                  </div>
150
                  <div class="uk-width-3-5">
151
                    <input placeholder="" type="text"
152
                           class="form-control uk-input" [(ngModel)] = "email.recipients[0]" id="recipients"
153
                           required >
154
                  </div>
155
                  <div class="uk-width-1-6">
156
                    <button class="uk-button" (click)="invite()">Invite</button>
157
                  </div>
158
              </div>
159
              <div class="uk-width-medium uk-text-muted uk-text-small style=display:none">separate multiple emails with a comma</div>
160
              <div class="uk-text-right">
161
                <span class="uk-margin-small-left" uk-icon="cog"></span><span class="uk-margin-small-left uk-text-small"><a href="invite">customise it</a></span>
162
              </div>
163
            </div>
164
          </div>
165
        </div>
166
</div> -->
(2-2/4)