Blame view

app/partials/ContactView/ContactView.html 21.6 KB
4bb02bb84   Rishav   new integration w...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
  <style>
     .subnavbar .mainnav > li:nth-child(3) > a{
     color: #ff9900;
     }
  </style>
  <div class="main">
     <div class="container">
        <div class="row">
           <div class="col-md-12">
              <div class="widget stacked ">
                 <div class="widget-content">
                    <div class="tabbable">
                       <ul class="nav nav-tabs">
                          <li>
                             <a ui-sref="app.customers">Company View 
                                <i class="fa fa-caret-down" aria-hidden="true"></i>
                             </a>
                          </li>
                          <li class="active">
                             <a ui-sref="app.ContactView">Contact View 
                                <i class="fa fa-caret-down" aria-hidden="true"></i>
                             </a>
                          </li>
                          <li>
                             <a ui-sref="app.FuelVendors">Fuel Vendors 
                                <i class="fa fa-caret-down" aria-hidden="true"></i>
                             </a>
                          </li>
79e5208c9   Swarn Singh   fixed some minor ...
29

52fea957f   Anchit Jindal   csv and search co...
30
31
                          <li style="margin: 0px 10px 4px 40px;"><input type="text" style="height:31px;"class="form-control" ng-model="searchText" placeholder="Search In Table" ng-model="search" ng-minlength="minlength"></li>
                          <li><button type="button" class="btn btn-default btn-sm" ng-click="displayContactList.filter({}); searchText=null">Clear Search And Filters</button></li>
79e5208c9   Swarn Singh   fixed some minor ...
32
33
34
  
                          <!-- <li style="margin: 0px 10px 4px 40px;"><input type="text" style="height:31px;"class="form-control" name="name" id="name" placeholder="Search In Table" ng-model="search" ng-keyup="searchString(search)" ng-minlength="minlength"></li>
                          <li><button type="button" class="btn btn-default btn-sm">Clear Search And Filters</button></li> -->
2c476c756   Anchit Jindal   added new code
35
                          <li style="float: right"> <button type="submit" data-toggle="modal" data-target="#contact-modal-3" class="btn btn-success btn-sm"> <i class="fa fa-plus" aria-hidden="true"></i> Add Contact </button></li>
4bb02bb84   Rishav   new integration w...
36
37
38
39
                       </ul>
                       <br>  
                       <div class="tab-content customer-table" style="margin:0px">
                          <div class="tab-pane active" id="companyView">
49676befb   Anchit Jindal   new changes applied
40
  	                        <table ng-table="displayContactList" class="table table-striped table-condensed" show-filter="true">
52fea957f   Anchit Jindal   csv and search co...
41
  	                           <tr ng-repeat="row in $data | filter:searchText" style="cursor: pointer;" ui-sref="app.viewContact({id : row.id})">
49676befb   Anchit Jindal   new changes applied
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
  	                             <td data-title="'Last Name'" filter="{lastName: 'text'}" sortable="'lastName'">
  	                              {{row.lastName}}
  	                             </td>
  	                             <td data-title="'First Name'" filter="{firstName: 'text'}" sortable="'firstName'">
  	                              {{row.firstName}}
  	                             </td>
  	                             <td data-title="'Company Name'" filter="{owner: 'text'}" sortable="'owner'">
  	                              {{row.owner}}
  	                             </td>
  	                             <td data-title="'Work Phone'" filter="{workPhone: 'text'}" sortable="'workPhone'">
  	                              {{row.workPhone}}
  	                             </td>
  	                             <td data-title="'Mobile Phone'" filter="{mobilePhone: 'text'}" sortable="'mobilePhone'">
  	                              {{row.mobilePhone}}
  	                             </td>
  	                             <td data-title="'Title'" filter="{title: 'text'}" sortable="'title'">
  	                              {{row.title}}
  	                             </td>
2242aeb43   Anchit Jindal   minor changes
60
  	                             <td data-title="'Pricing Email'">
da24c95c8   Rishav Singla   confirmation mess...
61
  	                              <toggle ng-model="row.priceEmail" ng-change="changePriceEmail(row.id, $index)" size="customToogle"></toggle>
49676befb   Anchit Jindal   new changes applied
62
63
64
65
66
67
  	                             </td>
  	                             <td data-title="'User Name'" filter="{userName: 'text'}" sortable="'userName'">
  	                              {{row.userName}}
  	                             </td>
  	                           </tr>
  	                         </table>
8f7dbe97c   Swarn Singh   fuel order comple...
68

52fea957f   Anchit Jindal   csv and search co...
69
                              <button type="button" ng-click="exportContacts()" class="btn btn-warning exportBtn">Export CSV</button>
49676befb   Anchit Jindal   new changes applied
70
71
                          
                             <!-- <table class="table table-striped">
4bb02bb84   Rishav   new integration w...
72
73
74
75
                                <thead>
                                   <tr>
                                      <th>
                                         <input type="text" class="form-control" style="height:31px;" name="name" id="name">
c555af312   Rishav   price email, comp...
76
                                         <label class="font-company">Last Name <i class="fa fa-sort" aria-hidden="true"></i></label>
4bb02bb84   Rishav   new integration w...
77
                                      </th>
2c476c756   Anchit Jindal   added new code
78
                                      
4bb02bb84   Rishav   new integration w...
79
80
                                      <th>
                                         <input type="text" class="form-control" style="height:31px;" name="name" id="name">
c555af312   Rishav   price email, comp...
81
                                         <label class="font-company">First Phone <i class="fa fa-sort" aria-hidden="true"></i></label>
4bb02bb84   Rishav   new integration w...
82
83
84
                                      </th>
                                      <th>
                                         <input type="text" class="form-control" style="height:31px;" name="name" id="name">
c555af312   Rishav   price email, comp...
85
                                         <label class="font-company">Company Name <i class="fa fa-sort" aria-hidden="true"></i></label>
4bb02bb84   Rishav   new integration w...
86
                                      </th>
2c476c756   Anchit Jindal   added new code
87
                                      
4bb02bb84   Rishav   new integration w...
88
89
                                      <th>
                                         <input type="text" class="form-control" style="height:31px;" name="name" id="name">
c555af312   Rishav   price email, comp...
90
91
92
93
94
95
96
97
98
99
                                         <label class="font-company">Work Phone <i class="fa fa-sort" aria-hidden="true"></i></label>
                                      <th>
                                         <input type="text" class="form-control" style="height:31px;" name="name" id="name">
                                         <label class="font-company">Mobile Phone <i class="fa fa-sort" aria-hidden="true"></i></label>
                                      </th>
                                      <th>
                                         <input type="text" class="form-control" style="height:31px;" name="name" id="name">
                                         <label class="font-company">Title <i class="fa fa-sort" aria-hidden="true"></i></label>
                                      </th>
                                      
4bb02bb84   Rishav   new integration w...
100
101
                                      <th>
                                         <input type="text" class="form-control" style="height:31px;" name="name" id="name">
c555af312   Rishav   price email, comp...
102
                                         <label class="font-company">Price Email<i class="fa fa-sort" aria-hidden="true"></i></label>
4bb02bb84   Rishav   new integration w...
103
104
                                      </th>
                                      <th>
2c476c756   Anchit Jindal   added new code
105
                                         <input type="text" class="form-control" style="height:31px;" name="name" id="name">
c555af312   Rishav   price email, comp...
106
                                         <label class="font-company">Username<i class="fa fa-sort" aria-hidden="true"></i></label>
4bb02bb84   Rishav   new integration w...
107
                                      </th>
4bb02bb84   Rishav   new integration w...
108
109
110
                                   </tr>
                                </thead>
                                <tbody>
406deaecb   Rishav   state change
111
  									<tr ng-repeat="contact in contactList" style="cursor: pointer;" ui-sref="app.viewContact({id : contact.id})">
2c476c756   Anchit Jindal   added new code
112
113
114
115
116
117
  										<td>{{contact.lastName}}</td>
  										<td>{{contact.firstName}}</td>
  										<td>{{contact.owner.companyName}}</td>
  										<td>{{contact.workPhone}}</td>
  										<td>{{contact.mobilePhone}}</td>
  										<td>{{contact.title}}</td>
c555af312   Rishav   price email, comp...
118
  										<td>
74c8ae4bb   Rishav   remove old toogle...
119
                                   <toggle ng-model="contact.priceEmail" ng-change="changePriceEmail(contact.id, $index)" size="customToogle"></toggle>
c555af312   Rishav   price email, comp...
120
121
                                </td>
                                <td>{{contact.userName}}</td>
2c476c756   Anchit Jindal   added new code
122
123
  									</tr>
  								</tbody>
49676befb   Anchit Jindal   new changes applied
124
125
                             </table> -->
                             <!-- <div class="row" style="margin-left: 0px;">
4bb02bb84   Rishav   new integration w...
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
                                <div class="col-md-2">
                                   <button type="button" class="btn btn-warning">Export Customers</button>
                                </div>
                                <div class="col-md-10">
                                   <div class="row" style="margin-left: 0px;">
                                      <div class="col-md-6">
                                      </div>
                                      <div class="col-md-2">
                                         <select class="form-control">
                                            <option>20 Records Per Page</option>
                                            <option>50 Records Per Page</option>
                                            <option>100 Records Per Page</option>
                                         </select>
                                      </div>
                                      <div class="col-md-4">
                                         <ul class="pagination" style="margin:0px">
                                            <li><a href="javascript:;">«</a></li>
                                            <li class="active"><a href="#">1</a></li>
                                            <li><a href="javascript:;">2</a></li>
                                            <li><a href="javascript:;">3</a></li>
                                            <li><a href="javascript:;">4</a></li>
                                            <li><a href="javascript:;">5</a></li>
                                            <li><a href="javascript:;">»</a></li>
                                         </ul>
                                      </div>
                                   </div>
                                </div>
49676befb   Anchit Jindal   new changes applied
153
                             </div> -->
4bb02bb84   Rishav   new integration w...
154
                          </div>
4bb02bb84   Rishav   new integration w...
155
156
157
158
159
160
161
162
163
164
165
166
167
                       </div>
                    </div>
                 </div>
                 <!-- /widget-content -->
              </div>
              <!-- /widget -->
           </div>
           <!-- /span8 -->
        </div>
        <!-- /row -->
     </div>
     <!-- /container -->
  </div>
2c476c756   Anchit Jindal   added new code
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
  <!-- /main -->
  <form class="modal multi-step" id="contact-modal-3" name="companyForm">
      <div class="modal-dialog modal-lg">
          <div class="modal-content">
              <div class="modal-body step-1" data-step="1" style="padding: 0;">
                 <div>
                    <div class="row" style="margin: 0;">
                       <div>
                          <div class="widget" style="margin-bottom: 0; box-shadow: none;">
                             <div class="widget-header">
                                <i class="icon-pencil"></i>
                                <i class="fa fa-tasks" aria-hidden="true"></i>
                                <h3>Add a New Contact</h3>
                                <div class="clearfix"></div>
                             </div>
                             <div class="widget-content" style="padding-left: 0; padding-right: 0; border-bottom: 0;">
                                <div class="col-xs-12">
                                   <div class="col-md-6">
                                      <div class="pull-left" style="width: 110px;">
                                         <label class="new-input-label"><b>First Name</b></label>
                                      </div>
                                      <div class="pull-left" style="margin-left: 15px;">
                                         <input type="tel" ng-model="data.firstName" class="form-control" placeholder="">
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
                                   <div class="col-md-6">
                                      
                                      <div class="pull-left" style="width: 110px;">
                                         <label class="new-input-label"><b>Last Name</b></label>
                                      </div>
                                      <div class="pull-left" style="margin-left: 15px;">
                                         <input type="tel" ng-model="data.lastName" class="form-control" id="Address" placeholder="">
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
                                </div>
                                <div class="clearfix"></div><br>
                                <div class="col-xs-12">
                                   <div class="col-md-6">
                                      <div class="pull-left" style="width: 110px;">
                                         <label class="new-input-label"><b>Title</b></label>
                                      </div>
                                      <div class="pull-left" style="margin-left: 15px;">
                                         <input type="tel" ng-model="data.title" class="form-control" id="Address" placeholder="">
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
                                   <div class="col-md-6">
                                      
                                      <div class="pull-left" style="width: 110px;">
                                         <label class="new-input-label"><b>Email</b></label>
                                      </div>
                                      <div class="pull-left" style="margin-left: 15px;">
                                         <input type="email" ng-model="data.email" class="form-control" id="Address" placeholder="">
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
                                </div>
                                <div class="clearfix"></div><br>
                                <div class="col-xs-12">
                                   <div class="col-md-6">
                                      <div class="pull-left" style="width: 110px;">
                                         <label class="new-input-label"><b>Username</b></label>
                                      </div>
                                      <div class="pull-left" style="margin-left: 15px;">
                                         <input type="tel" ng-model="data.userName" class="form-control" id="Address" placeholder="">
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
                                   <div class="col-md-6">
                                      
                                      <div class="pull-left" style="width: 110px;">
                                         <label class="new-input-label"><b>Password</b></label>
                                      </div>
                                      <div class="pull-left" style="margin-left: 15px;">
                                         <input type="password" ng-model="data.password" class="form-control" id="Address" placeholder="">
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
                                </div>
                                <div class="clearfix"></div><br>
                                <div class="col-xs-12">
                                   <div class="col-md-6">
                                      <div class="pull-left" style="width: 110px;">
                                         <label class="new-input-label"><b>Work Phone</b></label>
                                      </div>
                                      <div class="pull-left" style="margin-left: 15px;">
                                         <input type="tel" ng-model="data.workPhone" class="form-control" id="Address" placeholder="">
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
                                   <div class="col-md-6">
                                      
                                      <div class="pull-left" style="width: 110px;">
                                         <label class="new-input-label"><b>Mobile Phone</b></label>
                                      </div>
                                      <div class="pull-left" style="margin-left: 15px;">
                                         <input type="tel" ng-model="data.mobilePhone" class="form-control" id="Address" placeholder="">
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
                                </div>
                                <div class="clearfix"></div><br>
                                <div class="col-xs-12">
                                    <div class="col-md-12">
                                      <div class="pull-left" style="width: 110px;">
                                         <label class="new-input-label"><b>Address</b></label>
                                      </div>
                                      <div class="pull-right" style="width: calc(100% - 123px);">
                                         <input type="tel" class="form-control" ng-model="data.address" id="Address" placeholder="">
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
                                </div>
                                <div class="clearfix"></div><br>
                                <div class="col-xs-12">
                                    <div class="col-md-12">
                                      <div class="pull-left" style="width: 110px;">
                                         <label class="new-input-label"><b>Company</b></label>
                                      </div>
                                      <div class="pull-right" style="width: calc(100% - 123px);">
                                         <select class="form-control" ng-model="data.companyId">
                                            <option value="{{company.id}}" ng-repeat="company in companies">{{company.companyName}}</option>
                                          </select>
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
                                </div>
                                
                                 
                                <div class="clearfix"></div>
                                <br/>
                                <div class="col-xs-12">
                                   <div class="col-md-3">
                                      <div class="pull-left my-toggle-switch">
                                         <div style="color: #ff9a01;">Price Email &nbsp &nbsp
74c8ae4bb   Rishav   remove old toogle...
305
                                            <toggle ng-model="data.priceEmail" size="customToogle"></toggle>
2c476c756   Anchit Jindal   added new code
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
                                         </div>
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
                                   <div class="col-md-3">
                                      <div class="pull-left my-toggle-switch">
                                         <div style="color: #ff9a01;">Primary Contact &nbsp &nbsp
                                            <input type="checkbox" ng-model="data.primaryContact">
                                         </div>
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
                                   <div class="col-md-6">
                                      <div class="pull-left" style="width: 110px;">
                                         <label class="new-input-label"><b>Internal Note</b></label>
                                      </div>
                                      <div class="pull-left" style="width: calc(100% - 110px);">
                                         <textarea  name="message" ng-model="data.note" rows="4" cols="34"></textarea>
                                      </div>
                                   </div>
                                   <div class="clearfix"></div>
                                </div>
                                <div class="clearfix"></div><br>
                             </div>
                          </div>
                          <div class="clearfix"></div>
                       </div>
                    </div>
                 </div>
              </div>
              <div class="modal-footer" style="border-top: 0;">
7152ff131   Rishav   model handle
337
                  <button type="button" class="btn btn-default" ng-click="reset()" data-dismiss="modal">Cancel</button>
2c476c756   Anchit Jindal   added new code
338
339
340
341
                  <button type="button" class="btn btn-primary step step-1" data-step="1" ng-click="addContact()">Save</button>
              </div>
          </div>
      </div>
da24c95c8   Rishav Singla   confirmation mess...
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
  </form>
  
  <div class="customConfirmPopBackdrop" id="toogleMail">
     <div class="customModalInner" style="max-width: 400px;">
        <div class="customModelBody" style="border-radius: 5px 5px 0 0;">
           <table>
              <tr>
                 <!-- <td>
                    <img src="" style="width: 50px;">
                 </td> -->
                 <td>
                    <p style="padding: 5px 10px; margin-bottom: 0;text-align: center;">{{messageText}}</p>
                 </td>
              </tr>
           </table>
        </div>
        <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;">
           <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelToogle()">Cancel</button>
        </div>
     </div>
  </div>