</ol>
</fieldset>
[% END # END relationships foreach %]
[% IF guarantor && (!relationships) %]
<fieldset class="rows">
<ol>
<li class="guarantor-details" data-borrowernumber="0">
<span class="label">Patron #:</span>
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantor.borrowernumber | uri %]" target="blank">[% guarantor.borrowernumber | html %]</a>
<input type="hidden" class="new_guarantor_id" name="new_guarantor_id" value="[% guarantor.borrowernumber | html %]"/>
</li>
<li>
<label for="guarantor_surname">Surname: </label>
<span class="new_guarantor_surname_text">[% guarantor.surname | html %]</span>
<label for="guarantor_firstname">First name: </label>
<span class="new_guarantor_firstname_text">[% guarantor.firstname | html %]</span>
<label for="guarantor_relationship">Relationship: </label>
<select class="new_guarantor_relationship" name="new_guarantor_relationship">
[% FOREACH pr IN possible_relationships.split('\|') %]
<option value="[% pr | html %]">[% pr | html %]</option>
[% END %]
</select>
<label for="guarantor_cancel"> </label>
<span><a href="#" class="guarantor_cancel">Remove</a></span>
</span> <!-- #/guarantor_relationships -->
<fieldset class="rows guarantor" id="guarantor_template">
}
if ($op eq 'add'){
if ( $guarantor_id ) {
my $guarantordata = $guarantor->unblessed;
foreach (qw(streetnumber address streettype address2
zipcode country city state phone phonepro mobile fax email emailpro branchcode
B_streetnumber B_streettype B_address B_address2
B_city B_state B_zipcode B_country B_email B_phone)) {
$newdata{$_} = $guarantordata->{$_};
$template->param( updtype => 'I', step_1=>1, step_2=>1, step_3=>1, step_4=>1, step_5 => 1, step_6 => 1, step_7 => 1);
if ($op eq "modify") {
-