Bug 38714: member-alt-address-style.inc

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Jonathan Druart 2024-12-19 10:37:21 +01:00 committed by Katrin Fischer
parent a4dd651a8a
commit 164b0f8b09
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 15 additions and 69 deletions

View File

@ -63,12 +63,7 @@
[% IF roadtypes.count %]
[% UNLESS noB_streettype %]
<li>
[% IF ( mandatoryB_streettype ) %]
<label for="B_streettype" class="required">
[% ELSE %]
<label for="B_streettype">
[% END %]
Street type: </label>
<label for="B_streettype" [% IF mandatoryB_streettype %]class="required"[% END %]>Street type: </label>
<select name="B_streettype">
<option value=""></option>
[% FOR roadtype IN roadtypes %]
@ -88,12 +83,7 @@
[% BLOCK 'alt-address-style_B_address' %]
[% UNLESS noB_address %]
<li>
[% IF ( mandatoryB_address ) %]
<label for="B_address" class="required">
[% ELSE %]
<label for="B_address">
[% END %]
Address: </label>
<label for="B_address"[% IF mandatoryB_address %]class="required"[% END %]>Address: </label>
<input type="text" id="B_address" name="B_address" size="40" value="[% patron.B_address | html %]" />
[% IF ( mandatoryB_address ) %]<span class="required">Required</span>[% END %]
</li>
@ -103,12 +93,7 @@
[% BLOCK 'alt-address-style_B_streetnumber' %]
[% UNLESS noB_streetnumber %]
<li>
[% IF ( mandatoryB_streetnumber ) %]
<label for="B_streetnumber" class="required">
[% ELSE %]
<label for="B_streetnumber">
[% END %]
Street number: </label>
<label for="B_streetnumber" [% IF mandatoryB_streetnumber %]class="required"[% END %]>Street number: </label>
<input type="text" id="B_streetnumber" name="B_streetnumber" size="5" maxlength="10" value="[% patron.B_streetnumber | html %]" />
[% IF ( mandatoryB_streetnumber ) %]<span class="required">Required</span>[% END %]
</li>
@ -118,12 +103,7 @@
[% BLOCK 'alt-address-style_B_address2' %]
[% UNLESS noB_address2 %]
<li>
[% IF ( mandatoryB_address2 ) %]
<label for="B_address2" class="required">
[% ELSE %]
<label for="B_address2">
[% END %]
Address 2: </label>
<label for="B_address2" [% IF mandatoryB_address2 %]class="required"[% END %]>Address 2: </label>
<input type="text" id="B_address2" name="B_address2" size="40" value="[% patron.B_address2 | html %]" />
[% IF ( mandatoryB_address2 ) %]<span class="required">Required</span>[% END %]
</li>
@ -133,12 +113,7 @@
[% BLOCK 'alt-address-style_B_zipcode' %]
[% UNLESS noB_zipcode %]
<li>
[% IF ( mandatoryB_zipcode ) %]
<label for="B_zipcode" class="required">
[% ELSE %]
<label for="B_zipcode">
[% END %]
ZIP/Postal code: </label>
<label for="B_zipcode" [% IF mandatoryB_zipcode %]class="required"[% END %]>ZIP/Postal code: </label>
<input type="text" id="B_zipcode" name="B_zipcode" maxlength="10" size="10" value="[% patron.B_zipcode | html %]" />
[% IF ( mandatoryB_zipcode ) %]<span class="required">Required</span>[% END %]
</li>
@ -148,21 +123,17 @@
[% BLOCK 'alt-address-style_B_city' %]
[% UNLESS noB_city %]
<li>
[% IF ( mandatoryB_city ) %]
<label for="B_city" class="required" >
[% ELSE %]
<label for="B_city">
[% END %]
City: </label>
<label for="B_city" [% IF mandatoryB_city %]class="required"[% END %]>City: </label>
[% IF cities.count %]
<select class="select_city" data-addressfield="B_" name="select_city">
<option value="|||"></option>
[% FOREACH c IN cities %]
[% SET option_value = c.city_zipcode _ '|' _ c.city_name _ '|' _ c.city_state _ '|' _ c.city_country %]
[% SET option_selected = 0 %]
[% IF c.city_name == patron.B_city && c.city_state == patron.B_state && c.city_zipcode == patron.B_zipcode %]
<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 %]">
[% option_selected = 1 %]
[% END %]
<option value="[% option_value | html %]" [% IF option_selected %]selected="selected"[% END %]>
[% c.city_name | html %] [% c.city_state | html %] [% c.city_zipcode | html %]
</option>
[% END %]
@ -178,12 +149,7 @@
[% BLOCK 'alt-address-style_B_state' %]
[% UNLESS noB_state %]
<li>
[% IF ( mandatoryB_state ) %]
<label for="B_state" class="required" >
[% ELSE %]
<label for="B_state">
[% END %]
State: </label>
<label for="B_state" [% IF mandatoryB_state %]class="required"[% END %]>State: </label>
<input type="text" id="B_state" name="B_state" size="20" value="[% patron.B_state | html %]" />
[% IF ( mandatoryB_state ) %]<span class="required">Required</span>[% END %]
</li>
@ -193,12 +159,7 @@
[% BLOCK 'alt-address-style_B_country' %]
[% UNLESS noB_country %]
<li>
[% IF ( mandatoryB_country ) %]
<label for="B_country" class="required">
[% ELSE %]
<label for="B_country">
[% END %]
Country: </label>
<label for="B_country" [% IF mandatoryB_country %]class="required"[% END %]>Country: </label>
<input type="text" id="B_country" name="B_country" size="20" value="[% patron.B_country | html %]" />
[% IF ( mandatoryB_country ) %]<span class="required">Required</span>[% END %]
</li>
@ -208,12 +169,7 @@
[% BLOCK 'alt-address-style_B_phone' %]
[% UNLESS noB_phone %]
<li>
[% IF ( mandatoryB_phone ) %]
<label for="B_phone" class="required">
[% ELSE %]
<label for="B_phone">
[% END %]
Phone: </label>
<label for="B_phone" [% IF mandatoryB_phone %]class="required"[% END %]>Phone: </label>
<input type="text" id="B_phone" name="B_phone" value="[% patron.B_phone | html %]" />
[% IF ( mandatoryB_phone ) %]<span class="required">Required</span>[% END %]
</li>
@ -223,12 +179,7 @@
[% BLOCK 'alt-address-style_B_email' %]
[% UNLESS noB_email %]
<li>
[% IF ( mandatoryB_email ) %]
<label for="B_email" class="required">
[% ELSE %]
<label for="B_email">
[% END %]
Email: </label>
<label for="B_email" [% IF mandatoryB_email %]class="required"[% END %]>Email: </label>
[% IF ( NoUpdateEmail ) %]
<input type="text" id="B_email" name="B_email" size="45" value="[% patron.B_email | html %]" disabled="disabled"/>
[% ELSE %]
@ -242,12 +193,7 @@
[% BLOCK 'alt-address-style_B_contactnote' %]
[% UNLESS nocontactnote %]
<li>
[% IF ( mandatorycontactnote ) %]
<label for="contactnote" class="required">
[% ELSE %]
<label for="contactnote">
[% END %]
Contact note: </label>
<label for="contactnote" [% IF mandatorycontactnote %]class="required"[% END %]>Contact note: </label>
<textarea id="contactnote" name="contactnote" cols="40" rows="2">[% patron.contactnote | html %]</textarea>
[% IF ( mandatorycontactnote ) %]<span class="required">Required</span>[% END %]
</li>