40
40
< i class ="fa fa-user-plus "> </ i >
41
41
< p > Requests </ p >
42
42
</ a >
43
- </ li >
43
+ </ li >
44
44
</ ul >
45
45
</ div > <!-- /.navbar-collapse -->
46
46
</ div > <!-- /.container-fluid -->
55
55
< div class ="container ">
56
56
< div class ="row ">
57
57
< div class ="col-md-8 col-md-offset-2 ">
58
- < div class ="row ">
58
+ < div class ="row ">
59
59
60
60
< div class ="col-md-6 ">
61
- < div class ="panel-white ">
62
- < center >
61
+ < div class ="panel-white ">
62
+ < center >
63
63
< img src ="http://static2.fjcdn.com/comments/I+kinda+dig+old+batman+_1aeba46f5f2851f4c7c647d598e051c0.jpg " class ="img-responsive " />
64
64
</ center >
65
65
</ div > <!-- /. panel-white -->
68
68
< div class ="col-md-6 ">
69
69
< div class ="panel-white ">
70
70
71
- < form >
71
+ < form ng-submit =" updateProfile() " >
72
72
< div class ="login-table ">
73
73
< h3 class ="center margin-bottom-20 "> PROFILE </ h3 >
74
74
75
- < input type ="text " required class ="form-input margin-bottom-20 " placeholder ="First Name ">
76
- < input type ="text " required class ="form-input margin-bottom-20 " placeholder ="Last Name ">
77
- < input type ="text " required class ="form-input margin-bottom-20 " placeholder ="Company ">
75
+ < input ng-model =" profileData.firstName " type ="text " required class ="form-input margin-bottom-20 " placeholder ="First Name ">
76
+ < input ng-model =" profileData.lastName " type ="text " required class ="form-input margin-bottom-20 " placeholder ="Last Name ">
77
+ < input ng-model =" profileData.company " type ="text " required class ="form-input margin-bottom-20 " placeholder ="Company ">
78
78
79
79
< div class ="center ">
80
- < button type ="submit " class ="btn btn-primary margin-bottom-10 "> UPDATE </ button >
80
+ < button type ="submit " class ="btn btn-primary margin-bottom-10 "> UPDATE </ button >
81
81
</ div >
82
82
83
83
</ div >
@@ -96,21 +96,21 @@ <h3 class="center margin-bottom-20"> PROFILE </h3>
96
96
< div role ="tabpanel " class ="tab-pane fade " id ="connections ">
97
97
< div class ="container ">
98
98
< div class ="row ">
99
- < div class ="col-md-12 ">
99
+ < div class ="col-md-12 ">
100
100
< h3 class ="center "> < b > YOUR CONNECTIONS </ b > </ h3 >
101
101
< div class ="row ">
102
- < div class ="col-md-12 margin-top-10 ">
103
- < center >
102
+ < div ng-show =" profileData['connections'].length==0 " class ="col-md-12 margin-top-10 ">
103
+ < center >
104
104
< p > You have no connections yet. </ p >
105
105
</ center >
106
- </ div >
107
- < div class ="col-md-4 margin-top-20 ">
106
+ </ div >
107
+ < div ng-repeat =" i in profileData['connections'] " class ="col-md-4 margin-top-20 ">
108
108
< center >
109
109
< img src ="https://thesocietypages.org/socimages/files/2009/05/nopic_192.gif " width ="80 " class ="img-responsive img-circle margin-bottom-20 " />
110
- < p > </ p >
111
- < p > </ p >
110
+ < p > {{ i.email }} </ p >
111
+ < p > {{ i.firstName }} </ p >
112
112
</ center >
113
- </ div >
113
+ </ div >
114
114
</ div > <!-- /. row -->
115
115
</ div > <!-- /. col-md-12 -->
116
116
</ div > <!-- /. row -->
@@ -119,18 +119,18 @@ <h3 class="center"><b> YOUR CONNECTIONS </b></h3>
119
119
< div class ="col-md-12 ">
120
120
< h3 class ="center "> < b > SUGGESTED CONNECTIONS </ b > </ h3 >
121
121
< div class ="row ">
122
- < div class ="col-md-12 margin-top-10 ">
123
- < center >
122
+ < div ng-show =" profileData['suggestions'].length==0 " class ="col-md-12 margin-top-10 ">
123
+ < center >
124
124
< p > There are no suggestions for you. </ p >
125
125
</ center >
126
- </ div >
127
- < div class ="col-md-4 margin-top-20 ">
126
+ </ div >
127
+ < div ng-repeat =" i in profileData['suggestions'] " class ="col-md-4 margin-top-20 ">
128
128
< center >
129
129
< img src ="https://thesocietypages.org/socimages/files/2009/05/nopic_192.gif " width ="80 " class ="img-responsive img-circle margin-bottom-20 " />
130
- < p > </ p >
131
- < button class ="btn btn-sm btn-success "> Send Request </ button >
130
+ < p > {{ i.email }} </ p >
131
+ < button ng-click =" sendRequest(i.id) " class ="btn btn-sm btn-success "> Send Request </ button >
132
132
</ center >
133
- </ div >
133
+ </ div >
134
134
</ div > <!-- /. row -->
135
135
</ div > <!-- /. col-md-12 -->
136
136
</ div > <!-- /. row -->
@@ -140,28 +140,28 @@ <h3 class="center"><b> SUGGESTED CONNECTIONS </b></h3>
140
140
141
141
<!-- Requests tab content -->
142
142
< div role ="tabpanel " class ="tab-pane fade " id ="requests ">
143
- < div class ="container ">
143
+ < div class ="container ">
144
144
< div class ="row ">
145
145
< div class ="col-md-12 ">
146
146
< h3 class ="center margin-bottom-20 "> < b > REQUESTS RECEIVED </ b > </ h3 >
147
147
< div class ="row ">
148
- < div class ="col-md-12 margin-top-10 ">
149
- < center >
148
+ < div ng-show =" profileData['connectionRequests'].length==0 " class ="col-md-12 margin-top-10 ">
149
+ < center >
150
150
< p > There are no pending requests for you. </ p >
151
151
</ center >
152
- </ div >
153
- < div class ="col-md-4 margin-top-20 ">
152
+ </ div >
153
+ < div ng-repeat =" i in profileData['connectionRequests'] " class ="col-md-4 margin-top-20 ">
154
154
< center >
155
155
< img src ="https://thesocietypages.org/socimages/files/2009/05/nopic_192.gif " width ="80 " class ="img-responsive img-circle margin-bottom-20 " />
156
- < p > </ p >
157
- < button class ="btn btn-sm btn-success "> Accept Request </ button >
156
+ < p > {{ i.email }} </ p >
157
+ < button ng-click =" acceptRequest(i.id) " class ="btn btn-sm btn-success "> Accept Request </ button >
158
158
</ center >
159
- </ div >
159
+ </ div >
160
160
</ div > <!-- /. row -->
161
161
</ div > <!-- /. row -->
162
162
< br />
163
163
</ div > <!-- /. container -->
164
- </ div > <!-- /. requests -->
164
+ </ div > <!-- /. requests -->
165
165
166
166
</ div > <!-- /. mainTab -->
167
167
</ div > <!-- /. container-fluid -->
@@ -170,12 +170,12 @@ <h3 class="center margin-bottom-20"><b> REQUESTS RECEIVED </b></h3>
170
170
< div class ="modal fade modal fade " id ="dashboardMsgModal ">
171
171
< div class ="modal-dialog modal-sm ">
172
172
< div class ="modal-content center modal-placement ">
173
- < div class ="modal-header ">
174
- < p class ="f16 "> </ p >
173
+ < div class ="modal-header ">
174
+ < p class ="f16 "> {{ responseMessage }} </ p >
175
175
</ div >
176
176
< div class ="modal-body " align ="middle ">
177
177
< button class ="btn btn-sm btn-success " data-dismiss ="modal "> OK </ button >
178
178
</ div >
179
179
</ div >
180
180
</ div >
181
- </ div >
181
+ </ div >
0 commit comments