MIFOSX-1020 Addition of fields and allignment changes in User Profile Page

This commit is contained in:
Chandrika 2014-07-21 16:53:02 +05:30
parent 8424767c75
commit 862da7fe00
3 changed files with 18 additions and 2 deletions

View File

@ -346,6 +346,8 @@
"label.heading.logout":"Logout",
"label.heading.search":"Search",
"label.heading.help":"Help",
"label.heading.language":"Language",
"label.heading.primaryemail":"Primary Email",
"#Menu Links": "..",

View File

@ -2,6 +2,9 @@
mifosX.controllers = _.extend(module, {
ProfileController: function (scope, localStorageService, resourceFactory, $modal) {
scope.userDetails = localStorageService.get('userData');
resourceFactory.userListResource.get({userId: scope.userDetails.userId}, function (data) {
scope.user = data;
});
scope.status = 'Not Authenticated';
if (scope.userDetails.authenticated == true) {
scope.status = 'Authenticated';

View File

@ -62,10 +62,21 @@
<th>{{ 'label.heading.status' | translate }}</th>
<td>{{status}}</td>
</tr>
<tr>
<th>{{ 'label.heading.language' | translate }}</th>
<td>{{optlang.name}}</td>
</tr>
<tr>
<th>{{ 'label.heading.primaryemail' | translate }}</th>
<td>{{user.email}}</td>
</tr>
</table>
</div>
<div class="col-sm-10 col-md-10">
</div>
<div class="row">
<div class="col-sm-6 col-md-6">
<table class="table view-table table-bordered">
<tr class="graybg">
<th>{{ 'label.heading.role' | translate }}</th>