consumerportal
Version:
mydna Custimised for you
57 lines (50 loc) • 2.18 kB
HTML
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-69139205-6', 'auto');
ga('set', {
page: '/acctmgmt/emailpreferences.html',
title: 'Email Preferences'
});
ga('send', 'pageview');
</script>
<div class="container">
<div class="row">
<div class="col-md-12">
<div class='content_block content_blocks_padding'>
<h1>Email Preferences</h1>
<div class="alert alert-danger" ng-show="vm.showErrors" >
<p>No Email Preferences to update or Error occured.</p>
</div>
<div class="alert alert-info" ng-show="vm.noUserChanges" >
<p>You have not changed any preferences. Please select or unselect any preferences if you wish to update your email preferences.</p>
</div>
<div class="alert alert-success" ng-show="vm.updateSuccess" >
<p>Your Preferences have been successfully updated.</p>
</div>
<form name="myForm" autocomplete="off" ng-submit="" novalidate="">
<p>You can update your email preferences to notify us of the types of newsletters and health updates you would like to receive.</p>
<div class="maillist">
<div class="form-group" ng-repeat="item in vm.items track by $index" >
<div class="col-sm-12">
<div class="checkbox">
<label><input type="checkbox" name="checkPreference{{$index}}" id="checkPreference{{$index}}" ng-model="item.Subscribed" />{{item.Name}}</label>
</div>
</div>
</div>
</div>
<div class="form-group">
<div class="col-sm-12">
<p> </p>
<button class="btn btn-primary" ng-disabled="!vm.hasSubscription" ng-click="vm.updatePreferences()">Update Preferences</button>
</div>
</div>
</form>
<div style="clear:both;"></div>
</div>
</div>
</div>
</div>
<route-change-interrupt active="myForm.$dirty"></route-change-interrupt>