viewcontact.html
11.6 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
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
<style type="text/css">
.toggle.btn{
width: 140px !important;
}
</style>
<div class="myLoader" ng-show="showLoader">
<img src="../img/hourglass.gif" width="50px;">
</div>
<div class="container">
<div class="row">
<div class="col-md-10" style="padding-right: 60px; margin-bottom: 30px;">
<div class="widget">
<div class="widget-header">
<i class="icon-pencil"></i>
<i class="fa fa-building-o" aria-hidden="true"></i>
<h3>{{contactDetail.owner.companyName}}</h3>
<i class="fa fa-times" areia-hidden="true" ng-click="goBack()" style="float: right; margin-top: 10px; margin-right: 10px; cursor: pointer;"></i>
</div>
<div class="widget-content" style="padding-left: 0; padding-right: 0; ">
<div class="container">
<div style="margin-bottom: 25px;">
<button ng-disabled="disablePrev" class="newButtons animation_select" ng-click="prevContact()" data-animation="fadeInLeft">
<i class="fa fa-long-arrow-left" aria-hidden="true"></i>
Previous Contact
</button>
<button ng-disabled="disableNext" class="newButtons animation_select" ng-click="nextContact()" data-animation="fadeInRight">
Next Contact
<i class="fa fa-long-arrow-right" aria-hidden="true"></i>
</button>
</div>
<div class="row">
<div class="col-md-6" style="margin-left: 20px;">
<div class="widget stacked" id="animation_box">
<div class="widget-header">
<i class="fa fa-building-o" aria-hidden="true"></i>
<h3 style="margin-right: 0px;">Contact Detail</h3>
<i class="fa fa-trash-o deleteTierIcon" ng-click="deleteContact(contactDetail.id)" style="color: white;" aria-hidden="true"></i>
<div class="pull-right" style="margin-top: 5px; margin-right: 10px;">
<toggle ng-show="isShowEmail" ng-model="contactDetail.priceEmail" style="width: 140px;" ng-change="changePriceEmail(contactDetail.id)" size="customToogle" on="PRICE EMAIL ON" off="PRICE EMAIL OFF"></toggle>
</div>
</div>
<div class="widget-content">
<div class="row" style="margin-left:0px">
<div class="col-md-6" style="padding-left: 0px;">
<h3>
<b ng-show="editName" style="color:#F90;">{{contactDetail.firstName}} {{contactDetail.lastName}}</b>
<input type="text" ng-hide="editName" class="form-control" style="width: 49%; float: left; margin-right: 1%;" ng-model="contactDetail.firstName">
<input type="text" ng-hide="editName" class="form-control" style="width: 49%;" ng-model="contactDetail.lastName">
<i class="fa fa-pencil-square-o" ng-show="editName" ng-click="nameEdit()" style="font-size: 11px;" aria-hidden="true"></i>
</h3>
{{contactDetail.owner.companyName}}
</div>
<div class="col-md-6">
<!-- <div style="margin-bottom: 10px" class="input-group email-password">
<span class="input-group-addon email-password"><i class="glyphicon glyphicon-user email-password-icon"></i></span>
<input id="login-username" type="text" ng-model="contactDetail.userName" class="form-control email-password" placeholder="username or email">
</div> -->
<!-- <div class="input-group email-password">
<span class="input-group-addon email-password"><i class="fa fa-key" aria-hidden="true"></i></span>
<input id="login-password" type="password" class="form-control email-password" name="password" placeholder="password">
</div> -->
</div>
</div>
<div>
<!-- commented <p>
<span ng-show="editAddress">
<i class="fa fa-map-marker"></i> {{contactDetail.address}}
<i class="fa fa-pencil-square-o" ng-click="addressEdit()" style="font-size: 11px;" aria-hidden="true"></i>
</span>
<input type="text" ng-hide="editAddress" style="width: 50%;" class="form-control" ng-model="contactDetail.address">
</p> -->
<p ng-show="editPhone">Phone {{contactDetail.mobilePhone}} <i class="fa fa-pencil-square-o" ng-click="phoneEdit()" style="font-size: 11px;" aria-hidden="true"></i></p>
<p ng-hide="editPhone">
<input type="text" style="width: 50%;" ng-model="contactDetail.mobilePhone" class="form-control">
</p>
<p ng-show="editMobile">Mobile {{contactDetail.workPhone}} <i class="fa fa-pencil-square-o" ng-click="mobileEdit()" style="font-size: 11px;" aria-hidden="true"></i></p>
<p ng-hide="editMobile">
<input type="text" style="width: 50%;" ng-model="contactDetail.workPhone" class="form-control">
</p>
<p ng-show="editEmail">Email {{contactDetail.email}} <i class="fa fa-pencil-square-o" ng-click="emailEdit()" style="font-size: 11px;" aria-hidden="true"></i></p>
<p ng-hide="editEmail">
<input type="email" style="width: 50%;" ng-model="contactDetail.email" class="form-control">
</p>
<div>
<input type="checkbox" ng-checked="contactDetail.primaryContact" ng-click="checkPrimaryContact(contactDetail.owner.id)" ng-model="contactDetail.primaryContact">
<span>Primary Contact </span>
</div>
</div>
</br>
<div>
<p><b>Contact Notes</b> <i ng-show="editContactNotes" class="fa fa-pencil-square-o" ng-click="notesEdit()" style="font-size: 11px;" aria-hidden="true"></i>
<p ng-show="editContactNotes">{{contactDetail.note}}</p>
<p ng-hide="editContactNotes">
<textarea ng-model="contactDetail.note" class="form-control" style="resize: vertical;"></textarea>
</p>
<div>
<button ng-click="updateContact(contactDetail)" ng-show="showUpdateBtn" class="btn btn-success pull-left">Update Contact</button>
<button ng-click="cancelContact()" style="margin-left: 5px;" ng-show="showUpdateBtn" class="btn btn-default pull-left">Cancel</button>
<button ng-show="isShowEmail" type="button" class="btn btn-primary pull-right" ng-click="confirmMail()">Send Price to This Contacts</button>
<div class="clearfix"></div>
</div>
</div>
<!-- <div class="col-md-6">
<button type="button" class="btn btn-primary">Send Price to This Contacts</button>
</div> -->
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="customConfirmPopBackdrop" id="primaryContact">
<div class="customModalInner" style="max-width: 400px;">
<div class="customModelBody" style="border-radius: 5px 5px 0 0;">
<table>
<tr>
<td>
<img src="img/info.png" style="width: 50px;">
</td>
<td>
<p style="padding: 5px 10px; margin-bottom: 0;">Are you sure you want to set this person as your primary contact?</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="sendPrimaryContact(contactDetail.id)">Yes</button>
<button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelPrimaryContact()">Cancel</button>
</div>
</div>
</div>
<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>
<div class="customConfirmPopBackdrop" id="delete2">
<div class="customModalInner" style="max-width: 400px;">
<div class="customModelBody" style="border-radius: 5px 5px 0 0;">
<table>
<tr>
<td>
<img src="img/info.png" style="width: 50px;">
</td>
<td>
<p style="padding: 5px 10px; margin-bottom: 0;">Please confirm! Are you sure you want to DELETE this Contact?</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="contactDelete()">Accept</button>
<button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelDelete()">Cancel</button>
</div>
</div>
</div>
<div class="customConfirmPopBackdrop" id="confirm1" style="display: none;">
<div class="customModalInner">
<div class="customModelBody" style="border-radius: 5px 5px 0 0;">
<table>
<tr>
<td>
<img src="img/info.png" style="width: 50px;">
</td>
<td>
<p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to email pricing to this contact?</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="saveAndCloseConfirm()">Yes</button>
<button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelAndCloseConfirm()">Cancel</button>
</div>
</div>
</div>