Fridolin Somers
e4d078db3a
There is a typo in member-alt-contact-style.inc, tag ol is open twice for alternate contact. Test plan : 1) Create new patron 2) Look at HTML structure in "Alternate contact" section => Without patch you see <ol> twice and </ol> once => With patch you see once <ol> and </ol> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
199 lines
8.5 KiB
HTML
199 lines
8.5 KiB
HTML
[% USE Koha %]
|
|
[% BLOCK 'alt-contact-style' %]
|
|
<fieldset class="rows" id="memberentry_altaddress">
|
|
<legend id="alt_contact_lgd">Alternate contact</legend>
|
|
<ol>
|
|
[% IF Koha.Preference( 'AddressFormat' ) %]
|
|
[% PROCESS "member-alt-contact-style-${ Koha.Preference( 'AddressFormat' ) }" %]
|
|
[% ELSE %]
|
|
[% PROCESS 'member-alt-contact-style-us' %]
|
|
[% END %]
|
|
</ol>
|
|
</fieldset>
|
|
[% END %]
|
|
|
|
[% BLOCK 'member-alt-contact-style-us' %]
|
|
[% PROCESS 'alt-contact-style_altcontactsurname' %]
|
|
[% PROCESS 'alt-contact-style_altcontactfirstname' %]
|
|
[% PROCESS 'alt-contact-style_altcontactaddress1' %]
|
|
[% PROCESS 'alt-contact-style_altcontactaddress2' %]
|
|
[% PROCESS 'alt-contact-style_altcontactaddress3' %]
|
|
[% PROCESS 'alt-contact-style_altcontactstate' %]
|
|
[% PROCESS 'alt-contact-style_altcontactzipcode' %]
|
|
[% PROCESS 'alt-contact-style_altcontactcountry' %]
|
|
[% PROCESS 'alt-contact-style_altcontactphone' %]
|
|
[% END %]
|
|
|
|
[% BLOCK 'member-alt-contact-style-de' %]
|
|
[% PROCESS 'alt-contact-style_altcontactsurname' %]
|
|
[% PROCESS 'alt-contact-style_altcontactfirstname' %]
|
|
[% PROCESS 'alt-contact-style_altcontactaddress1' %]
|
|
[% PROCESS 'alt-contact-style_altcontactaddress2' %]
|
|
[% PROCESS 'alt-contact-style_altcontactzipcode' %]
|
|
[% PROCESS 'alt-contact-style_altcontactaddress3' %]
|
|
[% PROCESS 'alt-contact-style_altcontactstate' %]
|
|
[% PROCESS 'alt-contact-style_altcontactcountry' %]
|
|
[% PROCESS 'alt-contact-style_altcontactphone' %]
|
|
[% END %]
|
|
|
|
[% BLOCK 'member-alt-contact-style-fr' %]
|
|
[% PROCESS 'alt-contact-style_altcontactsurname' %]
|
|
[% PROCESS 'alt-contact-style_altcontactfirstname' %]
|
|
[% PROCESS 'alt-contact-style_altcontactaddress1' %]
|
|
[% PROCESS 'alt-contact-style_altcontactaddress2' %]
|
|
[% PROCESS 'alt-contact-style_altcontactzipcode' %]
|
|
[% PROCESS 'alt-contact-style_altcontactaddress3' %]
|
|
[% PROCESS 'alt-contact-style_altcontactstate' %]
|
|
[% PROCESS 'alt-contact-style_altcontactcountry' %]
|
|
[% PROCESS 'alt-contact-style_altcontactphone' %]
|
|
[% END %]
|
|
|
|
[% BLOCK 'alt-contact-style_altcontactsurname' %]
|
|
[% UNLESS noaltcontactsurname %]
|
|
<li>
|
|
[% IF ( mandatoryaltcontactsurname ) %]
|
|
<label for="altcontactsurname" class="required">
|
|
[% ELSE %]
|
|
<label for="altcontactsurname">
|
|
[% END %]
|
|
Surname: </label>
|
|
<input type="text" name="altcontactsurname" id="altcontactsurname" value="[% patron.altcontactsurname | html %]" />
|
|
[% IF ( mandatoryaltcontactsurname ) %]<span class="required">Required</span>[% END %]
|
|
</li>
|
|
[% END %]
|
|
[% END %]
|
|
|
|
[% BLOCK 'alt-contact-style_altcontactfirstname' %]
|
|
[% UNLESS noaltcontactfirstname %]
|
|
<li>
|
|
[% IF ( mandatoryaltcontactfirstname ) %]
|
|
<label for="altcontactfirstname" class="required">
|
|
[% ELSE %]
|
|
<label for="altcontactfirstname">
|
|
[% END %]
|
|
First name: </label>
|
|
<input type="text" name="altcontactfirstname" id="altcontactfirstname" value="[% patron.altcontactfirstname | html %]" />
|
|
[% IF ( mandatoryaltcontactfirstname ) %]<span class="required">Required</span>[% END %]
|
|
</li>
|
|
[% END %]
|
|
[% END %]
|
|
|
|
[% BLOCK 'alt-contact-style_altcontactaddress1' %]
|
|
[% UNLESS noaltcontactaddress1 %]
|
|
<li>
|
|
[% IF ( mandatoryaltcontactaddress1 ) %]
|
|
<label for="altcontactaddress1" class="required">
|
|
[% ELSE %]
|
|
<label for="altcontactaddress1">
|
|
[% END %]
|
|
Address: </label>
|
|
<input type="text" name="altcontactaddress1" id="altcontactaddress1" value="[% patron.altcontactaddress1 | html %]" size="40" />
|
|
[% IF ( mandatoryaltcontactaddress1 ) %]<span class="required">Required</span>[% END %]
|
|
</li>
|
|
[% END %]
|
|
[% END %]
|
|
|
|
[% BLOCK 'alt-contact-style_altcontactaddress2' %]
|
|
[% UNLESS noaltcontactaddress2 %]
|
|
<li>
|
|
[% IF ( mandatoryaltcontactaddress2 ) %]
|
|
<label for="altcontactaddress2" class="required">
|
|
[% ELSE %]
|
|
<label for="altcontactaddress2">
|
|
[% END %]
|
|
Address 2: </label>
|
|
<input type="text" name="altcontactaddress2" id="altcontactaddress2" value="[% patron.altcontactaddress2 | html %]" size="40" />
|
|
[% IF ( mandatoryaltcontactaddress2 ) %]<span class="required">Required</span>[% END %]
|
|
</li>
|
|
[% END %]
|
|
[% END %]
|
|
|
|
[% BLOCK 'alt-contact-style_altcontactzipcode' %]
|
|
[% UNLESS noaltcontactzipcode %]
|
|
<li>
|
|
[% IF ( mandatoryaltcontactzipcode ) %]
|
|
<label for="altcontactzipcode" class="required">
|
|
[% ELSE %]
|
|
<label for="altcontactzipcode">
|
|
[% END %]
|
|
ZIP/Postal code: </label>
|
|
<input type="text" name="altcontactzipcode" id="altcontactzipcode" value="[% patron.altcontactzipcode | html %]" size="5" />
|
|
[% IF ( mandatoryaltcontactzipcode ) %]<span class="required">Required</span>[% END %]
|
|
</li>
|
|
[% END %]
|
|
[% END %]
|
|
|
|
[% BLOCK 'alt-contact-style_altcontactaddress3' %]
|
|
[% UNLESS noaltcontactaddress3 %]
|
|
<li>
|
|
[% IF ( mandatoryaltcontactaddress3 ) %]
|
|
<label for="altcontactaddress3" class="required">
|
|
[% ELSE %]
|
|
<label for="altcontactaddress3">
|
|
[% END %]
|
|
City: </label>
|
|
[% IF cities.count %]
|
|
<select class="select_city" data-addressfield="altcontact" name="select_city">
|
|
<option value="|||"></option>
|
|
[% FOREACH c IN cities %]
|
|
[% IF c.city_name == patron.altcontactaddress3 && c.city_state == patron.altcontactstate && c.city_zipcode == patron.altcontactzipcode %]
|
|
<option value="[% c.city_zipcode | html %]|[% c.city_name | html %]|[% c.city_state | html %]|[% c.city_country | html %]" selected="selected">
|
|
[% ELSE %]
|
|
<option value="[% c.city_zipcode | html %]|[% c.city_name | html %]|[% c.city_state | html %]|[% c.city_country | html %]">
|
|
[% END %]
|
|
[% c.city_name | html %] [% c.city_state | html %] [% c.city_zipcode | html %]
|
|
</option>
|
|
[% END %]
|
|
</select>
|
|
<span class="hint">or enter</span>
|
|
[% END %]
|
|
<input type="text" name="altcontactaddress3" id="altcontactcity" value="[% patron.altcontactaddress3 | html %]" size="20" />
|
|
[% IF ( mandatoryaltcontactaddress3 ) %]<span class="required">Required</span>[% END %]
|
|
</li>
|
|
[% END %]
|
|
[% END %]
|
|
|
|
[% BLOCK 'alt-contact-style_altcontactstate' %]
|
|
[% UNLESS noaltcontactstate %]
|
|
<li>
|
|
[% IF ( mandatoryaltcontactstate ) %]
|
|
<label for="altcontactstate" class="required">
|
|
[% ELSE %]
|
|
<label for="altcontactstate">
|
|
[% END %]
|
|
State: </label>
|
|
<input type="text" name="altcontactstate" id="altcontactstate" value="[% patron.altcontactstate | html %]" size="20" />
|
|
[% IF ( mandatoryaltcontactstate ) %]<span class="required">Required</span>[% END %]
|
|
</li>
|
|
[% END %]
|
|
[% END %]
|
|
|
|
[% BLOCK 'alt-contact-style_altcontactcountry' %]
|
|
[% UNLESS noaltcontactcountry %]
|
|
<li>
|
|
[% IF ( mandatoryaltcontactcountry ) %]
|
|
<label for="altcontactcountry" class="required">
|
|
[% ELSE %]
|
|
<label for="altcontactcountry">
|
|
[% END %]
|
|
Country: </label>
|
|
<input type="text" name="altcontactcountry" id="altcontactcountry" value="[% patron.altcontactcountry | html %]" size="20" />
|
|
[% IF ( mandatoryaltcontactcountry ) %]<span class="required">Required</span>[% END %]
|
|
</li>
|
|
[% END %]
|
|
[% END %]
|
|
|
|
[% BLOCK 'alt-contact-style_altcontactphone' %]
|
|
[% UNLESS noaltcontactphone %]
|
|
<li>
|
|
[% IF ( mandatoryaltcontactphone ) %]
|
|
<label for="altcontactphone" class="required">
|
|
[% ELSE %]
|
|
<label for="altcontactphone">
|
|
[% END %]
|
|
Phone: </label>
|
|
<input type="text" name="altcontactphone" id="altcontactphone" value="[% patron.altcontactphone | html %]" />
|
|
[% IF ( mandatoryaltcontactphone ) %]<span class="required">Required</span>[% END %]
|
|
</li>
|
|
[% END %]
|
|
[% END %]
|