Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

MUMPFL-86 : Add in housing RO addresses #33

Merged
merged 1 commit into from
Jul 30, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion my-profile-webapp/src/main/webapp/css/my-app.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@


.housing-notice {
font-style: italic;
font-size: smaller;
font-weight: bold;
}

.info-card {
padding: 15px;
Expand Down
4 changes: 4 additions & 0 deletions my-profile-webapp/src/main/webapp/my-app/lec/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ define(['angular'], function(angular) {
//clear out any editing that may have been saved
angular.forEach($scope.contactInfo.addresses, function(value, key, obj){
value.edit = false;
if(value.type === "HOUSING") {
value.readOnly=true;
value.housing = true;
}
})
}, function(result, status){//error
$scope.contactInfo = {};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@
</div>

<p>{{address.comment}}</p>
<span ng-hide='address.readOnly'>
<button class='btn btn-primary' ng-click='addEdit()'>Add another</button>
<button class='btn btn-default' ng-click='address.edit = true'>Edit</button>
<button class='btn btn-default' ng-click='deleteAddress($index)'>Delete</button>
<p ng-if='address.housing' class='housing-notice'>Provided by UW Housing</p>
<span>
<button class='btn btn-primary' ng-click='addEdit()' ng-hide='address.readOnly && !address.housing'>Add another</button>
<button class='btn btn-default' ng-click='address.edit = true' ng-hide='address.readOnly'>Edit</button>
<button class='btn btn-default' ng-click='deleteAddress($index)' ng-hide='address.readOnly'>Delete</button>
</span>
</div>
<div ng-if='address.edit'>
Expand Down