<div class="row reg-field-row" ng-show="show_field('au.email')">
[% draw_field_label('au', 'email') %]
[% draw_form_input('au', 'email', '', 'email') %]
- <div class="col-md-3" ng-if="patron.email && !patron.isnew">
+ <div class="col-md-3" ng-if="base_email && !patron.isnew">
<button class="btn btn-default" ng-click="send_test_message({test_type:'email'})">[% l('Send Test Email') %]</button>
</div>
<div class="col-md-3 patron-reg-example">
ng-blur="handle_field_changed(user_settings, 'opac.default_sms_notify')"
type='text'/>
</div>
- <div class="col-md-3" ng-if="user_settings['opac.default_sms_notify'] && !patron.isnew">
+ <div class="col-md-3" ng-if="base_default_sms && !patron.isnew">
<button class="btn btn-default" ng-click="send_test_message({test_type:'sms_text'})">[% l('Send Test Text') %]</button>
</div>
</div>
// in standalone mode, we have no patronSvc
var prs = patronRegSvc;
$scope.patron = patron;
+ $scope.base_email = patron.email;
+ $scope.base_default_sms = prs.user_settings['opac.default_sms_notify']
$scope.field_doc = prs.field_doc;
$scope.edit_profiles = prs.edit_profiles;
$scope.edit_profile_entries = prs.edit_profile_entries;