View | Details | Raw Unified | Return to bug 18112
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt (-1 / +21 lines)
Lines 190-196 Link Here
190
190
191
                <form method="post" action="/cgi-bin/koha/opac-memberentry.pl" id="memberentry-form" autocomplete="off">
191
                <form method="post" action="/cgi-bin/koha/opac-memberentry.pl" id="memberentry-form" autocomplete="off">
192
192
193
                [% FOREACH field = ['streetnumber' 'cardnumber' 'branchcode' 'categorycode' 'title' 'surname' 'firstname' 'dateofbirth' 'initials' 'othernames' 'address' 'address2' 'city' 'state' 'zipcode' 'country' 'phone' 'phonepro' 'mobile' 'email' 'emailpro' 'fax' 'B_address' 'B_address2' 'B_city' 'B_state' 'B_zipcode' 'B_country' 'B_phone' 'B_email' 'contactnote' 'altcontactsurname' 'altcontactfirstname' 'altcontactaddress1' 'altcontactaddress2' 'altcontactaddress3' 'altcontactstate' 'altcontactzipcode' 'altcontactcountry' 'altcontactphone' 'password' ] %]
193
                [% FOREACH field = ['streetnumber' 'streettype'  'cardnumber' 'branchcode' 'categorycode' 'title' 'surname' 'firstname' 'dateofbirth' 'initials' 'othernames' 'address' 'address2' 'city' 'state' 'zipcode' 'country' 'phone' 'phonepro' 'mobile' 'email' 'emailpro' 'fax' 'B_address' 'B_address2' 'B_city' 'B_state' 'B_zipcode' 'B_country' 'B_phone' 'B_email' 'contactnote' 'altcontactsurname' 'altcontactfirstname' 'altcontactaddress1' 'altcontactaddress2' 'altcontactaddress3' 'altcontactstate' 'altcontactzipcode' 'altcontactcountry' 'altcontactphone' 'password' ] %]
194
                    [% IF mandatory.defined( field ) %]
194
                    [% IF mandatory.defined( field ) %]
195
                        [% SET required.$field = 'required' %]
195
                        [% SET required.$field = 'required' %]
196
                    [% END %]
196
                    [% END %]
Lines 425-430 Link Here
425
                                    <ol>
425
                                    <ol>
426
                                        [% IF Koha.Preference('AddressFormat') != 'de' %][% INCLUDE streetnumber %][% END %]
426
                                        [% IF Koha.Preference('AddressFormat') != 'de' %][% INCLUDE streetnumber %][% END %]
427
427
428
                                        [% IF roadtypes %]
429
                                            [% UNLESS hidden.defined('streettype') %]
430
                                                <li>
431
                                                    <label for="borrower_streettype" class="[% required.streettype | html %]">Street type:</label>
432
433
                                                    <select name="borrower_streettype" name="borrower_streettype">
434
                                                        <option value=""></option>
435
                                                        [% FOR roadtype IN roadtypes %]
436
                                                            [% IF roadtype.authorised_value == patron.streettype %]
437
                                                                <option value="[% roadtype.authorised_value | html %]" selected="selected">[% roadtype.lib | html %]</option>
438
                                                            [% ELSE %]
439
                                                                <option value="[% roadtype.authorised_value | html %]">[% roadtype.lib | html %]</option>
440
                                                            [% END %]
441
                                                        [% END %]
442
                                                    </select>
443
                                                    <div class="required_label [% required.streettype | html %]">Required</div>
444
                                                </li>
445
                                            [% END %]
446
                                        [% END %]
447
428
                                        [% UNLESS hidden.defined('address') %]
448
                                        [% UNLESS hidden.defined('address') %]
429
                                            <li>
449
                                            <li>
430
                                                <label for="borrower_address" class="[% required.address | html %]">Address:</label>
450
                                                <label for="borrower_address" class="[% required.address | html %]">Address:</label>
(-)a/opac/opac-memberentry.pl (-2 / +6 lines)
Lines 44-50 use Koha::Patron::Modification; Link Here
44
use Koha::Patron::Modifications;
44
use Koha::Patron::Modifications;
45
use Koha::Patron::Categories;
45
use Koha::Patron::Categories;
46
use Koha::Token;
46
use Koha::Token;
47
47
use Koha::AuthorisedValues;
48
my $cgi = CGI->new;
48
my $cgi = CGI->new;
49
my $dbh = C4::Context->dbh;
49
my $dbh = C4::Context->dbh;
50
50
Lines 118-123 foreach my $attr (@$attributes) { Link Here
118
    }
118
    }
119
}
119
}
120
120
121
my $roadtypes = C4::Koha::GetAuthorisedValues( 'ROADTYPE' );
122
$template->param(
123
    roadtypes => $roadtypes,
124
);
125
121
if ( $action eq 'create' ) {
126
if ( $action eq 'create' ) {
122
127
123
    my %borrower = ParseCgiForBorrower($cgi);
128
    my %borrower = ParseCgiForBorrower($cgi);
124
- 

Return to bug 18112