Blame view

app/partials/ContactView/ContactView.html 21.7 KB
4bb02bb84   Rishav   new integration w...
1
  <style>
8fc0ea8f4   Kuldeep Arora   update menu items
2
     .subnavbar .mainnav > li:nth-child(2) > a{
6f19fff16   Kuldeep Arora   Rebranding-FBOins...
3
     color: #ca5c6a;
4bb02bb84   Rishav   new integration w...
4
5
     }
  </style>
9aae3d136   Mr. Hot Foods   show loaders and ...
6
7
8
9
  
  <div class="myLoader" ng-show="showLoader">
    <img src="../img/hourglass.gif" width="50px;">
  </div>
4bb02bb84   Rishav   new integration w...
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
  <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 ...
33

52fea957f   Anchit Jindal   csv and search co...
34
35
                          <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 ...
36
37
38
  
                          <!-- <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
39
                          <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...
40
41
42
43
                       </ul>
                       <br>  
                       <div class="tab-content customer-table" style="margin:0px">
                          <div class="tab-pane active" id="companyView">
49676befb   Anchit Jindal   new changes applied
44
  	                        <table ng-table="displayContactList" class="table table-striped table-condensed" show-filter="true">
52fea957f   Anchit Jindal   csv and search co...
45
  	                           <tr ng-repeat="row in $data | filter:searchText" style="cursor: pointer;" ui-sref="app.viewContact({id : row.id})">
49676befb   Anchit Jindal   new changes applied
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
  	                             <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
64
  	                             <td data-title="'Pricing Email'">
da24c95c8   Rishav Singla   confirmation mess...
65
  	                              <toggle ng-model="row.priceEmail" ng-change="changePriceEmail(row.id, $index)" size="customToogle"></toggle>
49676befb   Anchit Jindal   new changes applied
66
67
68
69
70
71
  	                             </td>
  	                             <td data-title="'User Name'" filter="{userName: 'text'}" sortable="'userName'">
  	                              {{row.userName}}
  	                             </td>
  	                           </tr>
  	                         </table>
8f7dbe97c   Swarn Singh   fuel order comple...
72

52fea957f   Anchit Jindal   csv and search co...
73
                              <button type="button" ng-click="exportContacts()" class="btn btn-warning exportBtn">Export CSV</button>
49676befb   Anchit Jindal   new changes applied
74
75
                          
                             <!-- <table class="table table-striped">
4bb02bb84   Rishav   new integration w...
76
77
78
79
                                <thead>
                                   <tr>
                                      <th>
                                         <input type="text" class="form-control" style="height:31px;" name="name" id="name">
c555af312   Rishav   price email, comp...
80
                                         <label class="font-company">Last Name <i class="fa fa-sort" aria-hidden="true"></i></label>
4bb02bb84   Rishav   new integration w...
81
                                      </th>
2c476c756   Anchit Jindal   added new code
82
                                      
4bb02bb84   Rishav   new integration w...
83
84
                                      <th>
                                         <input type="text" class="form-control" style="height:31px;" name="name" id="name">
c555af312   Rishav   price email, comp...
85
                                         <label class="font-company">First Phone <i class="fa fa-sort" aria-hidden="true"></i></label>
4bb02bb84   Rishav   new integration w...
86
87
88
                                      </th>
                                      <th>
                                         <input type="text" class="form-control" style="height:31px;" name="name" id="name">
c555af312   Rishav   price email, comp...
89
                                         <label class="font-company">Company Name <i class="fa fa-sort" aria-hidden="true"></i></label>
4bb02bb84   Rishav   new integration w...
90
                                      </th>
2c476c756   Anchit Jindal   added new code
91
                                      
4bb02bb84   Rishav   new integration w...
92
93
                                      <th>
                                         <input type="text" class="form-control" style="height:31px;" name="name" id="name">
c555af312   Rishav   price email, comp...
94
95
96
97
98
99
100
101
102
103
                                         <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...
104
105
                                      <th>
                                         <input type="text" class="form-control" style="height:31px;" name="name" id="name">
c555af312   Rishav   price email, comp...
106
                                         <label class="font-company">Price Email<i class="fa fa-sort" aria-hidden="true"></i></label>
4bb02bb84   Rishav   new integration w...
107
108
                                      </th>
                                      <th>
2c476c756   Anchit Jindal   added new code
109
                                         <input type="text" class="form-control" style="height:31px;" name="name" id="name">
c555af312   Rishav   price email, comp...
110
                                         <label class="font-company">Username<i class="fa fa-sort" aria-hidden="true"></i></label>
4bb02bb84   Rishav   new integration w...
111
                                      </th>
4bb02bb84   Rishav   new integration w...
112
113
114
                                   </tr>
                                </thead>
                                <tbody>
406deaecb   Rishav   state change
115
  									<tr ng-repeat="contact in contactList" style="cursor: pointer;" ui-sref="app.viewContact({id : contact.id})">
2c476c756   Anchit Jindal   added new code
116
117
118
119
120
121
  										<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...
122
  										<td>
74c8ae4bb   Rishav   remove old toogle...
123
                                   <toggle ng-model="contact.priceEmail" ng-change="changePriceEmail(contact.id, $index)" size="customToogle"></toggle>
c555af312   Rishav   price email, comp...
124
125
                                </td>
                                <td>{{contact.userName}}</td>
2c476c756   Anchit Jindal   added new code
126
127
  									</tr>
  								</tbody>
49676befb   Anchit Jindal   new changes applied
128
129
                             </table> -->
                             <!-- <div class="row" style="margin-left: 0px;">
4bb02bb84   Rishav   new integration w...
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
                                <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
157
                             </div> -->
4bb02bb84   Rishav   new integration w...
158
                          </div>
4bb02bb84   Rishav   new integration w...
159
160
161
162
163
164
165
166
167
168
169
170
171
                       </div>
                    </div>
                 </div>
                 <!-- /widget-content -->
              </div>
              <!-- /widget -->
           </div>
           <!-- /span8 -->
        </div>
        <!-- /row -->
     </div>
     <!-- /container -->
  </div>
2c476c756   Anchit Jindal   added new code
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
305
306
307
308
  <!-- /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...
309
                                            <toggle ng-model="data.priceEmail" size="customToogle"></toggle>
2c476c756   Anchit Jindal   added new code
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
337
338
339
340
                                         </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
341
                  <button type="button" class="btn btn-default" ng-click="reset()" data-dismiss="modal">Cancel</button>
2c476c756   Anchit Jindal   added new code
342
343
344
345
                  <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...
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
  </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>