Bugzilla – Attachment 105749 Details for
Bug 25070
Include files to display address and contact must be refactored
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25070: Centralize member-main-address-style
Bug-25070-Centralize-member-main-address-style.patch (text/plain), 26.49 KB, created by
Katrin Fischer
on 2020-06-11 12:42:58 UTC
(
hide
)
Description:
Bug 25070: Centralize member-main-address-style
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2020-06-11 12:42:58 UTC
Size:
26.49 KB
patch
obsolete
>From 88c35717ae5ae4cc254d064b63b3f493c66a0f2e Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 6 Apr 2020 14:42:40 +0200 >Subject: [PATCH] Bug 25070: Centralize member-main-address-style > >Signed-off-by: David Nind <david@davidnind.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > .../prog/en/includes/member-alt-address-style.inc | 2 +- > .../en/includes/member-main-address-style-de.inc | 125 -------------- > .../en/includes/member-main-address-style-fr.inc | 126 -------------- > .../en/includes/member-main-address-style-us.inc | 125 -------------- > .../prog/en/includes/member-main-address-style.inc | 190 +++++++++++++++++++++ > .../prog/en/modules/members/memberentrygen.tt | 7 +- > 6 files changed, 193 insertions(+), 382 deletions(-) > delete mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style-de.inc > delete mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style-fr.inc > delete mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style-us.inc > create mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style.inc > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style.inc >index d50c8a8de3..62630bee6e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style.inc >@@ -102,7 +102,7 @@ > <label for="B_streetnumber"> > [% END %] > Street Number: </label> >- <input type="text" id="B_streetnumber" name="B_streetnumber" size="5" value="[% patron.B_streetnumber | html %]" /> >+ <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> > [% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style-de.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style-de.inc >deleted file mode 100644 >index 0d0f25cf0b..0000000000 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style-de.inc >+++ /dev/null >@@ -1,125 +0,0 @@ >-<fieldset class="rows" id="memberentry_mainaddress"> >- <legend id="main_address_lgd">Main address</legend><ol> >-[% UNLESS nostreettype %] >- [% IF roadtypes %] >- <li> >- [% IF ( mandatorystreettype ) %] >- <label for="streettype" class="required"> >- [% ELSE %] >- <label for="streettype"> >- [% END %] >- Street type: </label> >- <select name="streettype"> >- <option value=""></option> >- [% FOR roadtype IN roadtypes %] >- [% IF roadtype.authorised_value == patron.streettype %] >- <option value="[% roadtype.authorised_value | html %]" selected="selected">[% roadtype.lib | html %]</option> >- [% ELSE %] >- <option value="[% roadtype.authorised_value | html %]">[% roadtype.lib | html %]</option> >- [% END %] >- [% END %] >- </select> >- [% IF ( mandatorystreettype ) %]<span class="required">Required</span>[% END %] >- </li> >- [% END %] >- [% END %] >- [% UNLESS noaddress %] >- <li> >- [% IF ( mandatoryaddress ) %] >- <label for="address" class="required"> >- [% ELSE %] >- <label for="address"> >- [% END %] >- Address: </label> >- <input type="text" id="address" name="address" size="35" value="[% patron.address | html %]" /> >- [% IF ( mandatoryaddress ) %]<span class="required">Required</span>[% END %] >- </li> >- [% END %] >- [% UNLESS nostreetnumber %] >- <li> >- [% IF ( mandatorystreetnumber ) %] >- <label for="streetnumber" class="required"> >- [% ELSE %] >- <label for="streetnumber"> >- [% END %] >- Street number: </label> >- <input type="text" id="streetnumber" name="streetnumber" size="5" maxlength="10" value="[% patron.streetnumber | html %]" /> >-[% IF ( mandatorystreetnumber ) %]<span class="required">Required</span>[% END %] >- </li> >- [% END %] >- [% UNLESS noaddress2 %] >- <li> >- [% IF ( mandatoryaddress2 ) %] >- <label for="address2" class="required"> >- [% ELSE %] >- <label for="address2"> >- [% END %] >- Address 2: </label> >- <input type="text" id="address2" name="address2" size="35" value="[% patron.address2 | html %]" /> >- [% IF ( mandatoryaddress2 ) %]<span class="required">Required</span>[% END %] >- </li> >- [% END %] >- [% UNLESS nozipcode %] >- <li> >- [% IF ( mandatoryzipcode ) %] >- <label for="zipcode" class="required"> >- [% ELSE %] >- <label for="zipcode"> >- [% END %] >- ZIP/Postal code: </label> >- <input type="text" name="zipcode" id="zipcode" size="10" value="[% patron.zipcode | html %]" /> >- [% IF ( mandatoryzipcode ) %]<span class="required">Required</span>[% END %] >- </li> >- [% END %] >- [% UNLESS nocity %] >- <li> >- [% IF ( mandatorycity ) %] >- <label for="city" class="required"> >- [% ELSE %] >- <label for="city"> >- [% END %] >- City: </label> >- <input type="text" id="city" name="city" size="20" value="[% patron.city | html %]" /> >- [% IF cities.count %]or choose >- <select class="select_city" data-addressfield="" name="select_city"> >- <option value="|||"></option> >- [% FOREACH c IN cities %] >- [% IF c.city_name == patron.city && c.city_state == patron.state && c.city_zipcode == patron.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 %]"> >- [% END %] >- [% c.city_name | html %] [% c.city_state | html %] [% c.city_zipcode | html %] >- </option> >- [% END %] >- </select> >- [% END %] >- [% IF ( mandatorycity ) %]<span class="required">Required</span>[% END %] >- </li> >- [% END %] >- [% UNLESS nostate %] >- <li> >- [% IF ( mandatorystate ) %] >- <label for="state" class="required"> >- [% ELSE %] >- <label for="state"> >- [% END %] >- State: </label> >- <input type="text" name="state" id="state" size="20" value="[% patron.state | html %]" /> >- [% IF ( mandatorystate ) %]<span class="required">Required</span>[% END %] >- </li> >- [% END %] >- [% UNLESS nocountry %] >- <li> >- [% IF ( mandatorycountry ) %] >- <label for="country" class="required"> >- [% ELSE %] >- <label for="country"> >- [% END %] >- Country: </label> >- <input type="text" name="country" id="country" size="20" value="[% patron.country | html %]" /> >- [% IF ( mandatorycountry ) %]<span class="required">Required</span>[% END %] >- </li> >- [% END %] >- </ol> >-</fieldset> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style-fr.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style-fr.inc >deleted file mode 100644 >index 0bf679ea12..0000000000 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style-fr.inc >+++ /dev/null >@@ -1,126 +0,0 @@ >-<fieldset class="rows" id="memberentry_mainaddress"> >- <legend id="main_address_lgd">Main address</legend><ol> >-[% UNLESS nostreettype %] >- [% UNLESS nostreetnumber %] >- <li> >- [% IF ( mandatorystreetnumber ) %] >- <label for="streetnumber" class="required"> >- [% ELSE %] >- <label for="streetnumber"> >- [% END %] >- Street number: </label> >- <input type="text" id="streetnumber" name="streetnumber" size="5" maxlength="10" value="[% patron.streetnumber | html %]" /> >- [% IF ( mandatorystreetnumber ) %]<span class="required">Required</span>[% END %] >- </li> >- [% END %] >- >- [% IF roadtypes %] >- <li> >- [% IF ( mandatorystreettype ) %] >- <label for="streettype" class="required"> >- [% ELSE %] >- <label for="streettype"> >- [% END %] >- Street type: </label> >- <select name="streettype"> >- <option value=""></option> >- [% FOR roadtype IN roadtypes %] >- [% IF roadtype.authorised_value == patron.streettype %] >- <option value="[% roadtype.authorised_value | html %]" selected="selected">[% roadtype.lib | html %]</option> >- [% ELSE %] >- <option value="[% roadtype.authorised_value | html %]">[% roadtype.lib | html %]</option> >- [% END %] >- [% END %] >- </select> >- [% IF ( mandatorystreettype ) %]<span class="required">Required</span>[% END %] >- </li> >- [% END %] >-[% END %] >-[% UNLESS noaddress %] >- <li> >- [% IF ( mandatoryaddress ) %] >- <label for="address" class="required"> >- [% ELSE %] >- <label for="address"> >- [% END %] >- Address: </label> >- <input type="text" id="address" name="address" size="35" value="[% patron.address | html %]" /> >- [% IF ( mandatoryaddress ) %]<span class="required">Required</span>[% END %] >- </li> >-[% END %] >-[% UNLESS noaddress2 %] >- <li> >- [% IF ( mandatoryaddress2 ) %] >- <label for="address2" class="required"> >- [% ELSE %] >- <label for="address2"> >- [% END %] >- Address 2: </label> >- <input type="text" id="address2" name="address2" size="35" value="[% patron.address2 | html %]" /> >- [% IF ( mandatoryaddress2 ) %]<span class="required">Required</span>[% END %] >- </li> >-[% END %] >-[% UNLESS nozipcode %] >- <li> >- [% IF ( mandatoryzipcode ) %] >- <label for="zipcode" class="required"> >- [% ELSE %] >- <label for="zipcode"> >- [% END %] >- ZIP/Postal code: </label> >- <input type="text" name="zipcode" id="zipcode" size="10" value="[% patron.zipcode | html %]" /> >- [% IF ( mandatoryzipcode ) %]<span class="required">Required</span>[% END %] >- </li> >-[% END %] >-[% UNLESS nocity %] >- <li> >- [% IF ( mandatorycity ) %] >- <label for="city" class="required"> >- [% ELSE %] >- <label for="city"> >- [% END %] >- City: </label> >- <input type="text" id="city" name="city" size="20" value="[% patron.city | html %]" /> >- [% IF cities.count %]or choose >- <select class="select_city" data-addressfield="" name="select_city"> >- <option value="|||"></option> >- [% FOREACH c IN cities %] >- [% IF c.city_name == patron.city && c.city_state == patron.state && c.city_zipcode == patron.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 %]"> >- [% END %] >- [% c.city_name | html %] [% c.city_state | html %] [% c.city_zipcode | html %] >- </option> >- [% END %] >- </select> >- [% END %] >- [% IF ( mandatorycity ) %]<span class="required">Required</span>[% END %] >- </li> >-[% END %] >-[% UNLESS nostate %] >- <li> >- [% IF ( mandatorystate ) %] >- <label for="state" class="required"> >- [% ELSE %] >- <label for="state"> >- [% END %] >- State: </label> >- <input type="text" name="state" id="state" size="20" value="[% patron.state | html %]" /> >- [% IF ( mandatorystate ) %]<span class="required">Required</span>[% END %] >- </li> >-[% END %] >-[% UNLESS nocountry %] >- <li> >- [% IF ( mandatorycountry ) %] >- <label for="country" class="required"> >- [% ELSE %] >- <label for="country"> >- [% END %] >- Country: </label> >- <input type="text" name="country" id="country" size="20" value="[% patron.country | html %]" /> >- [% IF ( mandatorycountry ) %]<span class="required">Required</span>[% END %] >- </li> >-[% END %] >-</ol> >-</fieldset> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style-us.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style-us.inc >deleted file mode 100644 >index bb6002cf1b..0000000000 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style-us.inc >+++ /dev/null >@@ -1,125 +0,0 @@ >-<fieldset class="rows" id="memberentry_mainaddress"> >- <legend id="main_address_lgd">Main address</legend><ol> >- [% UNLESS nostreetnumber %] >- <li> >- [% IF ( mandatorystreetnumber ) %] >- <label for="streetnumber" class="required"> >- [% ELSE %] >- <label for="streetnumber"> >- [% END %] >- Street number: </label> >- <input type="text" id="streetnumber" name="streetnumber" size="5" maxlength="10" value="[% patron.streetnumber | html %]" /> >-[% IF ( mandatorystreetnumber ) %]<span class="required">Required</span>[% END %] >- </li> >- [% END %] >- [% UNLESS nostreettype %] >- [% IF roadtypes %] >- <li> >- [% IF ( mandatorystreettype ) %] >- <label for="streettype" class="required"> >- [% ELSE %] >- <label for="streettype"> >- [% END %] >- Street type: </label> >- <select name="streettype"> >- <option value=""></option> >- [% FOR roadtype IN roadtypes %] >- [% IF roadtype.authorised_value == patron.streettype %] >- <option value="[% roadtype.authorised_value | html %]" selected="selected">[% roadtype.lib | html %]</option> >- [% ELSE %] >- <option value="[% roadtype.authorised_value | html %]">[% roadtype.lib | html %]</option> >- [% END %] >- [% END %] >- </select> >- [% IF ( mandatorystreettype ) %]<span class="required">Required</span>[% END %] >- </li> >- [% END %] >- [% END %] >- [% UNLESS noaddress %] >- <li> >- [% IF ( mandatoryaddress ) %] >- <label for="address" class="required"> >- [% ELSE %] >- <label for="address"> >- [% END %] >- Address: </label> >- <input type="text" id="address" name="address" size="35" value="[% patron.address | html %]" /> >- [% IF ( mandatoryaddress ) %]<span class="required">Required</span>[% END %] >- </li> >- [% END %] >- [% UNLESS noaddress2 %] >- <li> >- [% IF ( mandatoryaddress2 ) %] >- <label for="address2" class="required"> >- [% ELSE %] >- <label for="address2"> >- [% END %] >- Address 2: </label> >- <input type="text" id="address2" name="address2" size="35" value="[% patron.address2 | html %]" /> >- [% IF ( mandatoryaddress2 ) %]<span class="required">Required</span>[% END %] >- </li> >- [% END %] >- [% UNLESS nocity %] >- <li> >- [% IF ( mandatorycity ) %] >- <label for="city" class="required"> >- [% ELSE %] >- <label for="city"> >- [% END %] >- City: </label> >- <input type="text" id="city" name="city" size="20" value="[% patron.city | html %]" /> >- [% IF cities.count %]or choose >- <select class="select_city" data-addressfield="" name="select_city"> >- <option value="|||"></option> >- [% FOREACH c IN cities %] >- [% IF c.city_name == patron.city && c.city_state == patron.state && c.city_zipcode == patron.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 %]"> >- [% END %] >- [% c.city_name | html %] [% c.city_state | html %] [% c.city_zipcode | html %] >- </option> >- [% END %] >- </select> >- [% END %] >- [% IF ( mandatorycity ) %]<span class="required">Required</span>[% END %] >- </li> >- [% END %] >- [% UNLESS nostate %] >- <li> >- [% IF ( mandatorystate ) %] >- <label for="state" class="required"> >- [% ELSE %] >- <label for="state"> >- [% END %] >- State: </label> >- <input type="text" name="state" id="state" size="20" value="[% patron.state | html %]" /> >- [% IF ( mandatorystate ) %]<span class="required">Required</span>[% END %] >- </li> >- [% END %] >- [% UNLESS nozipcode %] >- <li> >- [% IF ( mandatoryzipcode ) %] >- <label for="zipcode" class="required"> >- [% ELSE %] >- <label for="zipcode"> >- [% END %] >- ZIP/Postal code: </label> >- <input type="text" name="zipcode" id="zipcode" size="10" value="[% patron.zipcode | html %]" /> >- [% IF ( mandatoryzipcode ) %]<span class="required">Required</span>[% END %] >- </li> >- [% END %] >- [% UNLESS nocountry %] >- <li> >- [% IF ( mandatorycountry ) %] >- <label for="country" class="required"> >- [% ELSE %] >- <label for="country"> >- [% END %] >- Country: </label> >- <input type="text" name="country" id="country" size="20" value="[% patron.country | html %]" /> >- [% IF ( mandatorycountry ) %]<span class="required">Required</span>[% END %] >- </li> >- [% END %] >- </ol> >-</fieldset> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style.inc >new file mode 100644 >index 0000000000..9ce3354353 >--- /dev/null >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style.inc >@@ -0,0 +1,190 @@ >+[% USE Koha %] >+[% BLOCK 'main-address-style' %] >+ <fieldset class="rows" id="memberentry_mainaddress"> >+ <legend id="main_address_lgd">Main address</legend> >+ <ol> >+ [% IF Koha.Preference( 'AddressFormat' ) %] >+ [% PROCESS "member-main-address-style-${ Koha.Preference( 'AddressFormat' ) }" %] >+ [% ELSE %] >+ [% PROCESS 'member-main-address-style-us' %] >+ [% END %] >+ </ol> >+ </fieldset> >+[% END %] >+ >+[% BLOCK 'member-main-address-style-us' %] >+ [% PROCESS 'address-style_streetnumber' %] >+ [% PROCESS 'address-style_roadtypes' %] >+ [% PROCESS 'address-style_address' %] >+ [% PROCESS 'address-style_address2' %] >+ [% PROCESS 'address-style_city' %] >+ [% PROCESS 'address-style_state' %] >+ [% PROCESS 'address-style_zipcode' %] >+ [% PROCESS 'address-style_country' %] >+[% END %] >+ >+[% BLOCK 'member-main-address-style-de' %] >+ [% PROCESS 'address-style_roadtypes' %] >+ [% PROCESS 'address-style_address' %] >+ [% PROCESS 'address-style_streetnumber' %] >+ [% PROCESS 'address-style_address2' %] >+ [% PROCESS 'address-style_zipcode' %] >+ [% PROCESS 'address-style_city' %] >+ [% PROCESS 'address-style_state' %] >+ [% PROCESS 'address-style_country' %] >+[% END %] >+ >+[% BLOCK 'member-main-address-style-fr' %] >+ [% PROCESS 'address-style_streetnumber' %] >+ [% PROCESS 'address-style_roadtypes' %] >+ [% PROCESS 'address-style_address' %] >+ [% PROCESS 'address-style_address2' %] >+ [% PROCESS 'address-style_zipcode' %] >+ [% PROCESS 'address-style_city' %] >+ [% PROCESS 'address-style_state' %] >+ [% PROCESS 'address-style_country' %] >+[% END %] >+ >+[% BLOCK 'address-style_roadtypes' %] >+ [% IF roadtypes %] >+ <li> >+ [% IF ( mandatorystreetype ) %] >+ <label for="streetype" class="required"> >+ [% ELSE %] >+ <label for="streetype"> >+ [% END %] >+ Street type: </label> >+ <select name="streetype"> >+ <option value=""></option> >+ [% FOR roadtype IN roadtypes %] >+ [% IF roadtype.authorised_value == patron.streetype %] >+ <option value="[% roadtype.authorised_value | html %]" selected="selected">[% roadtype.lib | html %]</option> >+ [% ELSE %] >+ <option value="[% roadtype.authorised_value | html %]">[% roadtype.lib | html %]</option> >+ [% END %] >+ [% END %] >+ </select> >+ [% IF ( mandatorystreetype ) %]<span class="required">Required</span>[% END %] >+ </li> >+ [% END %] >+[% END %] >+ >+[% BLOCK 'address-style_address' %] >+ [% UNLESS noaddress %] >+ <li> >+ [% IF ( mandatoryaddress ) %] >+ <label for="address" class="required"> >+ [% ELSE %] >+ <label for="address"> >+ [% END %] >+ Address: </label> >+ <input type="text" id="address" name="address" size="40" value="[% patron.address | html %]" /> >+ [% IF ( mandatoryaddress ) %]<span class="required">Required</span>[% END %] >+ </li> >+ [% END %] >+[% END %] >+ >+[% BLOCK 'address-style_streetnumber' %] >+ [% UNLESS nostreetnumber %] >+ <li> >+ [% IF ( mandatorystreetnumber ) %] >+ <label for="streetnumber" class="required"> >+ [% ELSE %] >+ <label for="streetnumber"> >+ [% END %] >+ Street Number: </label> >+ <input type="text" id="streetnumber" name="streetnumber" size="5" maxlength="10" value="[% patron.streetnumber | html %]" /> >+ [% IF ( mandatorystreetnumber ) %]<span class="required">Required</span>[% END %] >+ </li> >+ [% END %] >+[% END %] >+ >+[% BLOCK 'address-style_address2' %] >+ [% UNLESS noaddress2 %] >+ <li> >+ [% IF ( mandatoryaddress2 ) %] >+ <label for="address2" class="required"> >+ [% ELSE %] >+ <label for="address2"> >+ [% END %] >+ Address 2: </label> >+ <input type="text" id="address2" name="address2" size="40" value="[% patron.address2 | html %]" /> >+ [% IF ( mandatoryaddress2 ) %]<span class="required">Required</span>[% END %] >+ </li> >+ [% END %] >+[% END %] >+ >+[% BLOCK 'address-style_zipcode' %] >+ [% UNLESS nozipcode %] >+ <li> >+ [% IF ( mandatoryzipcode ) %] >+ <label for="zipcode" class="required"> >+ [% ELSE %] >+ <label for="zipcode"> >+ [% END %] >+ ZIP/Postal code: </label> >+ <input type="text" id="zipcode" name="zipcode" maxlength="10" size="10" value="[% patron.zipcode | html %]" /> >+ [% IF ( mandatoryzipcode ) %]<span class="required">Required</span>[% END %] >+ </li> >+ [% END %] >+[% END %] >+ >+[% BLOCK 'address-style_city' %] >+ [% UNLESS nocity %] >+ <li> >+ [% IF ( mandatorycity ) %] >+ <label for="city" class="required" > >+ [% ELSE %] >+ <label for="city"> >+ [% END %] >+ City: </label> >+ <input type="text" id="city" name="city" size="20" value="[% patron.city | html %]" /> >+ [% IF cities.count %] >+ or choose >+ <select class="select_city" data_addressfield="" name="select_city"> >+ <option value="|||"></option> >+ [% FOREACH c IN cities %] >+ [% IF c.city_name == patron.city && c.city_state == patron.state && c.city_zipcode == patron.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 %]"> >+ [% END %] >+ [% c.city_name | html %] [% c.city_state | html %] [% c.city_zipcode | html %] >+ </option> >+ [% END %] >+ </select> >+ [% END %] >+ [% IF ( mandatorycity ) %]<span class="required">Required</span>[% END %] >+ </li> >+ [% END %] >+[% END %] >+ >+[% BLOCK 'address-style_state' %] >+ [% UNLESS nostate %] >+ <li> >+ [% IF ( mandatorystate ) %] >+ <label for="state" class="required" > >+ [% ELSE %] >+ <label for="state"> >+ [% END %] >+ State: </label> >+ <input type="text" id="state" name="state" size="20" value="[% patron.state | html %]" /> >+ [% IF ( mandatorystate ) %]<span class="required">Required</span>[% END %] >+ </li> >+ [% END %] >+[% END %] >+ >+[% BLOCK 'address-style_country' %] >+ [% UNLESS nocountry %] >+ <li> >+ [% IF ( mandatorycountry ) %] >+ <label for="country" class="required"> >+ [% ELSE %] >+ <label for="country"> >+ [% END %] >+ Country: </label> >+ <input type="text" id="country" name="country" size="20" value="[% patron.country | html %]" /> >+ [% IF ( mandatorycountry ) %]<span class="required">Required</span>[% END %] >+ </li> >+ [% END %] >+[% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >index 5fd8cfc6e8..25c32db057 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >@@ -5,6 +5,7 @@ > [% USE Koha %] > [% USE KohaDates %] > [% USE Branches %] >+[% PROCESS 'member-main-address-style.inc' %] > [% PROCESS 'member-alt-address-style.inc' %] > [% PROCESS 'member-alt-contact-style.inc' %] > [% SET footerjs = 1 %] >@@ -572,11 +573,7 @@ legend:hover { > [% END # /IF show_guarantor || guarantor %] > > [% UNLESS noaddress && noaddress2 && nocity && nostate && nozipcode && nocountry %] >- [% IF Koha.Preference( 'AddressFormat' ) %] >- [% INCLUDE "member-main-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %] >- [% ELSE %] >- [% INCLUDE 'member-main-address-style-us.inc' %] >- [% END %] >+ [% PROCESS 'main-address-style' %] > [% END # /UNLESS nostreet && nocity etc group%] > > [% UNLESS nophone && nophonepro && nomobile && noemail && noemailpro && nofax %] >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 25070
:
102439
|
102440
|
102441
|
102442
|
102443
|
102477
|
102478
|
102479
|
102480
|
102481
|
102487
|
102488
|
102489
|
102490
|
102491
|
104562
|
104563
|
104564
|
104565
|
104566
|
104581
|
104582
|
104583
|
104584
|
104585
|
104659
|
104660
|
104661
|
104662
|
104663
|
105745
|
105746
|
105747
|
105748
| 105749 |
105750