+ </div> <!-- #/memberentry_guarantor_anchor -->
+
+ [% UNLESS nocontactname && nocontactfirstname && norelationship %]
+ <fieldset class="rows" id="non_patron_guarantor">
+ <legend>Non-patron guarantor</legend>
+ <ol>
+ [% UNLESS nocontactname %]
+ <li>
+ [% IF ( mandatorycontactname ) %]
+ <label for="contactname" class="required">
+ [% ELSE %]
+ <label for="contactname">
+ [% END %]
+ Guarantor surname:
+ </label>
+ <input type="text" id="contactname" name="contactname" value="[% patron.contactname | html %]" />
+ [% IF ( mandatorycontactname ) %]
+ <span class="required">Required</span>
+ [% END %]
+ <div class="hint">Non-patron guarantor surname</div>
+ </li>
+ [% END # /UNLESS nocontactname %]
+
+ [% UNLESS nocontactfirstname %]
+ <li>
+ [% IF ( mandatorycontactfirstname ) %]
+ <label for="contactfirstname" class="required">
+ [% ELSE %]
+ <label for="contactfirstname">
+ [% END %]
+ Guarantor first name:
+ </label>
+ <input type="text" id="contactfirstname" name="contactfirstname" value="[% patron.contactfirstname | html %]" />
+ [% IF ( mandatorycontactfirstname ) %]
+ <span class="required">Required</span>
+ [% END %]
+ <div class="hint">Non-patron guarantor first name</div>
+ </li>
+ [% END # /UNLESS noaltcontactfirstname %]
+
+ [% UNLESS norelationship %]
+ [% IF possible_relationships %]
+ <li>
+ <label for="relationship">Relationship: </label>
+ <select class="relationship" name="relationship">
+ <option value=""></option>
+ [% FOREACH pr IN possible_relationships.split('\|') %]
+ [% IF pr == relationship %]
+ <option value="[% pr | html %]" selected="selected">[% pr | html %]</option>
+ [% ELSE %]
+ <option value="[% pr | html %]">[% pr | html %]</option>
+ [% END %]
+ [% END %]
+ </select>
+ </li>
+ [% END #/IF possible_relationships %]
+ [% END # /UNLESS norelationship %]
+ </ol>
+ </fieldset> <!-- /#non_patron_guarantor -->
+ [% END # /UNLESS nocontactname && nocontactfirstname && norelationship %]