<!-- ADDRESS_TYPE -->
<div class="row reg-field-row" ng-show="show_field('aua.address_type')">
[% draw_field_label('aua', 'address_type') %]
- [% draw_form_input('aua', 'address_type', 'addresses[$index]') %]
+ [% draw_form_input('aua',
+ 'address_type', 'addresses[$index]', '', 'addr._linked_owner') %]
<div class="col-md-6 patron-reg-example">
[% draw_example_text('aua', 'address_type') %]
</div>
<div class="row reg-field-row" ng-show="show_field('aua.post_code')">
[% draw_field_label('aua', 'post_code') %]
- [% draw_form_input('aua', 'post_code', 'addresses[$index]') %]
+ [% draw_form_input('aua',
+ 'post_code', 'addresses[$index]', '', 'addr._linked_owner') %]
<div class="col-md-6 patron-reg-example">
[% draw_example_text('aua', 'post_code') %]
</div>
<div class="row reg-field-row" ng-show="show_field('aua.street1')">
[% draw_field_label('aua', 'street1') %]
- [% draw_form_input('aua', 'street1', 'addresses[$index]') %]
+ [% draw_form_input('aua',
+ 'street1', 'addresses[$index]', '', 'addr._linked_owner') %]
<div class="col-md-6 patron-reg-example">
[% draw_example_text('aua', 'street1') %]
</div>
<div class="row reg-field-row" ng-show="show_field('aua.street2')">
[% draw_field_label('aua', 'street2') %]
- [% draw_form_input('aua', 'street2', 'addresses[$index]') %]
+ [% draw_form_input('aua',
+ 'street2', 'addresses[$index]', '', 'addr._linked_owner') %]
<div class="col-md-6 patron-reg-example">
[% draw_example_text('aua', 'street2') %]
</div>
<div class="row reg-field-row" ng-show="show_field('aua.city')">
[% draw_field_label('aua', 'city') %]
- [% draw_form_input('aua', 'city', 'addresses[$index]') %]
+ [% draw_form_input('aua',
+ 'city', 'addresses[$index]', '', 'addr._linked_owner') %]
<div class="col-md-6 patron-reg-example">
[% draw_example_text('aua', 'city') %]
</div>
<div class="row reg-field-row" ng-show="show_field('aua.county')">
[% draw_field_label('aua', 'county') %]
- [% draw_form_input('aua', 'county', 'addresses[$index]') %]
+ [% draw_form_input('aua',
+ 'county', 'addresses[$index]', '', 'addr._linked_owner') %]
<div class="col-md-6 patron-reg-example">
[% draw_example_text('aua', 'county') %]
</div>
<div class="row reg-field-row" ng-show="show_field('aua.state')">
[% draw_field_label('aua', 'state') %]
- [% draw_form_input('aua', 'state', 'addresses[$index]') %]
+ [% draw_form_input('aua',
+ 'state', 'addresses[$index]', '', 'addr._linked_owner') %]
<div class="col-md-6 patron-reg-example">
[% draw_example_text('aua', 'state') %]
</div>
<div class="row reg-field-row" ng-show="show_field('aua.country')">
[% draw_field_label('aua', 'country') %]
- [% draw_form_input('aua', 'country', 'addresses[$index]') %]
+ [% draw_form_input('aua',
+ 'country', 'addresses[$index]', '', 'addr._linked_owner') %]
<div class="col-md-6 patron-reg-example">
[% draw_example_text('aua', 'country') %]
</div>
<input
type='checkbox'
ng-change="field_modified()"
+ ng-disabled='addr._linked_owner'
ng-blur="handle_field_changed(patron.addresses[$index], 'valid')"
ng-model="patron.addresses[$index].valid"/>
</div>
<input
type='checkbox'
ng-change="field_modified()"
+ ng-disabled='addr._linked_owner'
ng-blur="handle_field_changed(patron.addresses[$index], 'within_city_limits')"
ng-model="patron.addresses[$index].within_city_limits"/>
</div>