462d4c0b9a
To test: Apply patch Do a database update (e.g. by changing version number in kohaversion.pl) Find new system preference 'addressformat' in I18N/L10N Choose 'German style' Go to Patrons and edit a patron / create new patron Verify that Zip code appears above City Change system preference to 'US style' Verify that Zip code appears between State and Country. BTW: New formats can be added by editing i18n_l10n.pref (add a new code, e.g. fr for "French style") and copy / modify the includes using the same code as postfix. Signed-off-by: Mirko Tietgen <mirko@abunchofthings.net> Patch amended to move street number after address. /Marc Signed-off-by: Mirko Tietgen <mirko@abunchofthings.net> Amended do resolve conflict with updatedatabase.pl /Marc Rebased for current master /Marc Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
112 lines
4.6 KiB
HTML
112 lines
4.6 KiB
HTML
<fieldset class="rows" id="memberentry_altaddress">
|
|
<legend id="alt_contact_lgd">Alternate contact</legend><ol>
|
|
[% 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="[% altcontactsurname %]" />
|
|
[% IF ( mandatoryaltcontactsurname ) %]<span class="required">Required</span>[% END %]
|
|
</li>
|
|
[% END %]
|
|
[% 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="[% altcontactfirstname %]" />
|
|
[% IF ( mandatoryaltcontactfirstname ) %]<span class="required">Required</span>[% END %]
|
|
</li>
|
|
[% END %]
|
|
[% 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="[% altcontactaddress1 %]" size="40" />
|
|
[% IF ( mandatoryaltcontactaddress1 ) %]<span class="required">Required</span>[% END %]
|
|
</li>
|
|
[% END %]
|
|
[% 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="[% altcontactaddress2 %]" size="40" />
|
|
[% IF ( mandatoryaltcontactaddress2 ) %]<span class="required">Required</span>[% END %]
|
|
</li>
|
|
[% END %]
|
|
[% 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="[% altcontactzipcode %]" size="5" />
|
|
[% IF ( mandatoryaltcontactzipcode ) %]<span class="required">Required</span>[% END %]
|
|
</li>
|
|
[% END %]
|
|
[% UNLESS noaltcontactaddress3 %]
|
|
<li>
|
|
[% IF ( mandatoryaltcontactaddress3 ) %]
|
|
<label for="altcontactaddress3" class="required">
|
|
[% ELSE %]
|
|
<label for="altcontactaddress3">
|
|
[% END %]
|
|
City:</label>
|
|
<input type="text" name="altcontactaddress3" id="altcontactaddress3" value="[% altcontactaddress3 %]" size="20" />
|
|
[% IF ( mandatoryaltcontactaddress3 ) %]<span class="required">Required</span>[% END %]
|
|
</li>
|
|
[% END %]
|
|
[% 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="[% altcontactstate %]" size="20" />
|
|
[% IF ( mandatoryaltcontactstate ) %]<span class="required">Required</span>[% END %]
|
|
</li>
|
|
[% END %]
|
|
[% 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="[% altcontactcountry %]" size="20" />
|
|
[% IF ( mandatoryaltcontactcountry ) %]<span class="required">Required</span>[% END %]
|
|
</li>
|
|
[% END %]
|
|
[% 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="[% altcontactphone %]" />
|
|
[% IF ( mandatoryaltcontactphone ) %]<span class="required">Required</span>[% END %]
|
|
</li>
|
|
[% END %]
|
|
</ol>
|
|
</fieldset>
|