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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-10 / +16 lines)
Lines 376-399 legend:hover { Link Here
376
                                                    <li class="radio">
376
                                                    <li class="radio">
377
                                                        [% UNLESS ( opduplicate ) %]
377
                                                        [% UNLESS ( opduplicate ) %]
378
                                                            [% IF ( female ) %]
378
                                                            [% IF ( female ) %]
379
                                                                <label for="sex-female"><input type="radio" name="sex" id="sex-female" value="F" checked="checked" /> Female</label>
379
                                                                <label for="sex-female"><input type="radio" name="sex" id="sex-female" value="F" checked="checked" /><span class="patronsex-female"> Female</span></label>
380
                                                            [% ELSE %]
380
                                                            [% ELSE %]
381
                                                                <label for="sex-female"><input type="radio" name="sex" id="sex-female" value="F" /> Female</label>
381
                                                                <label for="sex-female"><input type="radio" name="sex" id="sex-female" value="F" /><span class="patronsex-female"> Female</span></label>
382
                                                            [% END %]
382
                                                            [% END %]
383
                                                            [% IF ( male ) %]
383
                                                            [% IF ( male ) %]
384
                                                                <label for="sex-male"><input type="radio" name="sex" id="sex-male" value="M" checked="checked" /> Male</label>
384
                                                                <label for="sex-male"><input type="radio" name="sex" id="sex-male" value="M" checked="checked" /><span class="patronsex-male"> Male</span></label>
385
                                                            [% ELSE %]
385
                                                            [% ELSE %]
386
                                                                <label for="sex-male"><input type="radio" name="sex" id="sex-male" value="M" /> Male</label>
386
                                                                <label for="sex-male"><input type="radio" name="sex" id="sex-male" value="M" /><span class="patronsex-male"> Male</span></label>
387
                                                            [% END %]
388
                                                            [% IF ( other ) %]
389
                                                                <label for="sex-other"><input type="radio" name="sex" id="sex-other" value="O" checked="checked" /><span class="patronsex-other"> Other</span></label>
390
                                                            [% ELSE %]
391
                                                                <label for="sex-other"><input type="radio" name="sex" id="sex-other" value="O" /><span class="patronsex-other"> Other</span></label>
387
                                                            [% END %]
392
                                                            [% END %]
388
                                                            [% IF ( none ) %]
393
                                                            [% IF ( none ) %]
389
                                                                <label for="sex-none"><input type="radio" name="sex" id="sex-none" value=""  checked="checked" /> None specified</label>
394
                                                                <label for="sex-none"><input type="radio" name="sex" id="sex-none" value=""  checked="checked" /><span class="patronsex-none"> None specified / Prefer not to say</span></label>
390
                                                            [% ELSE %]
395
                                                            [% ELSE %]
391
                                                                <label for="sex-none"><input type="radio" name="sex" id="sex-none" value="" /> None specified</label>
396
                                                                <label for="sex-none"><input type="radio" name="sex" id="sex-none" value="" /><span class="patronsex-none"> None specified / Prefer not to say</span></label>
392
                                                            [% END %]
397
                                                            [% END %]
393
                                                        [% ELSE %]
398
                                                        [% ELSE %]
394
                                                            <label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" />
399
                                                            <label for="sex-female"><span class="patronsex-female">Female </span></label><input type="radio" name="sex" id="sex-female" value="F" />
395
                                                            <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" />
400
                                                            <label for="sex-male"><span class="patronsex-male">Male </span></label><input type="radio" name="sex" id="sex-male" value="M" />
396
                                                            <label for="sex-none">None specified </label><input type="radio" name="sex" id="sex-none" value="" checked="checked" />
401
                                                            <label for="sex-other"><span class="patronsex-other">Other </span></label><input type="radio" name="sex" id="sex-other" value="O" />
402
                                                            <label for="sex-none"><span class="patronsex-none">None specified / Prefer not to say </span></label><input type="radio" name="sex" id="sex-none" value="" checked="checked" />
397
                                                        [% END # /UNLESS ( opduplicate )%]
403
                                                        [% END # /UNLESS ( opduplicate )%]
398
                                                    </li>
404
                                                    </li>
399
                                                [% END # /UNLESS nosex %]
405
                                                [% END # /UNLESS nosex %]
Lines 1604-1610 legend:hover { Link Here
1604
                }
1610
                }
1605
                $(toggle_from).each(function() {
1611
                $(toggle_from).each(function() {
1606
                    var input_label = $(this).attr('for');
1612
                    var input_label = $(this).attr('for');
1607
                    if ( input_label == 'sex-male' || input_label == 'sex-none' || input_label == 'sex-female' ) {
1613
                    if ( input_label == 'sex-male' || input_label == 'sex-none' || input_label == 'sex-female' || input_label == 'sex-other' ) {
1608
                        $(toggle_to+"[for='"+input_label+"']").next().prop('checked', $(this).next().prop('checked') );
1614
                        $(toggle_to+"[for='"+input_label+"']").next().prop('checked', $(this).next().prop('checked') );
1609
                        return;
1615
                        return;
1610
                    }
1616
                    }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-brief.tt (-1 / +1 lines)
Lines 39-45 Link Here
39
            [% UNLESS ( I ) %]
39
            [% UNLESS ( I ) %]
40
                [% IF ( patron.initials ) %]<li><span class="label">Initials: </span>[% patron.initials | html %]</li>[% END %]
40
                [% IF ( patron.initials ) %]<li><span class="label">Initials: </span>[% patron.initials | html %]</li>[% END %]
41
                [% IF ( patron.dateofbirth ) %]<li><span class="label">Date of birth:</span>[% patron.dateofbirth | $KohaDates %]</li>[% END %]
41
                [% IF ( patron.dateofbirth ) %]<li><span class="label">Date of birth:</span>[% patron.dateofbirth | $KohaDates %]</li>[% END %]
42
                [% IF ( patron.sex ) %]<li><span class="label">Gender:</span>[% IF ( patron.sex == 'F' ) %]Female[% ELSIF ( patron.sex == 'M' ) %]Male[% ELSE %][% patron.sex | html %][% END %]</li>[% END %]
42
                [% IF ( patron.sex ) %]<li><span class="label">Gender:</span>[% IF ( patron.sex == 'F' ) %]<span class="patronsex-female">Female</span>[% ELSIF ( patron.sex == 'M' ) %]<span class="patronsex-male">Male</span>[% ELSIF ( patron.sex == 'O' ) %]<span class="patronsex-other">Other</span>[% ELSE %][% patron.sex | html %][% END %]</li>[% END %]
43
            [% END %]
43
            [% END %]
44
44
45
            [% IF guarantees %]
45
            [% IF guarantees %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (-1 / +1 lines)
Lines 257-263 Link Here
257
                                            [% IF ( patron.sex ) %]
257
                                            [% IF ( patron.sex ) %]
258
                                                <li>
258
                                                <li>
259
                                                    <span class="label">Gender:</span>
259
                                                    <span class="label">Gender:</span>
260
                                                    [% IF ( patron.sex == 'F' ) %]Female[% ELSIF ( patron.sex == 'M' ) %]Male[% ELSE %][% patron.sex | html %][% END %]
260
                                                    [% IF ( patron.sex == 'F' ) %]<span class="patronsex-female">Female</span>[% ELSIF ( patron.sex == 'M' ) %]<span class="patronsex-male">Male</span>[% ELSIF (patron.sex == 'O' ) %]<span class="patronsex-other">Other</span>[% ELSE %][% patron.sex | html %][% END %]
261
                                                </li>
261
                                                </li>
262
                                            [% END %]
262
                                            [% END %]
263
                                        [% END %]
263
                                        [% END %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt (-3 / +11 lines)
Lines 372-392 Link Here
372
372
373
                                    [% UNLESS hidden.defined('sex') %]
373
                                    [% UNLESS hidden.defined('sex') %]
374
                                        <li class="lradio">
374
                                        <li class="lradio">
375
                                            <label for="sex-female" class="radio inline">Female:</label>
375
                                            <label for="sex-female" class="radio inline"><span class="patronsex-female">Female:</span></label>
376
                                            [% IF borrower.sex == 'F' %]
376
                                            [% IF borrower.sex == 'F' %]
377
                                                <input type="radio" name="borrower_sex" id="sex-female" value="F" checked="checked" />
377
                                                <input type="radio" name="borrower_sex" id="sex-female" value="F" checked="checked" />
378
                                            [% ELSE %]
378
                                            [% ELSE %]
379
                                                <input type="radio" name="borrower_sex" id="sex-female" value="F" />
379
                                                <input type="radio" name="borrower_sex" id="sex-female" value="F" />
380
                                            [% END %]
380
                                            [% END %]
381
381
382
                                            <label for="sex-male" class="radio inline">Male:</label>
382
                                            <label for="sex-male" class="radio inline"><span class="patronsex-male">Male:</span></label>
383
                                            [% IF borrower.sex == 'M' %]
383
                                            [% IF borrower.sex == 'M' %]
384
                                                <input type="radio" name="borrower_sex" id="sex-male" value="M" checked="checked" />
384
                                                <input type="radio" name="borrower_sex" id="sex-male" value="M" checked="checked" />
385
                                            [% ELSE %]
385
                                            [% ELSE %]
386
                                                <input type="radio" name="borrower_sex" id="sex-male" value="M" />
386
                                                <input type="radio" name="borrower_sex" id="sex-male" value="M" />
387
                                            [% END %]
387
                                            [% END %]
388
388
389
                                            <label for="sex-none" class="radio inline">None specified: </label>
389
                                            <label for="sex-other" class="radio inline"><span class="patronsex-other">Other:</span></label>
390
                                            [% IF borrower.sex == 'O' %]
391
                                                <input type="radio" name="borrower_sex" id="sex-other" value="O" checked="checked" />
392
                                            [% ELSE %]
393
                                                <input type="radio" name="borrower_sex" id="sex-other" value="O" />
394
                                            [% END %]
395
396
397
                                            <label for="sex-none" class="radio inline"><span class="patronsex-none">None specified / Prefer not to say:</span></label>
390
                                            [% IF borrower.sex == '' %]
398
                                            [% IF borrower.sex == '' %]
391
                                                <input type="radio" name="borrower_sex" id="sex-none" value="" checked="checked" />
399
                                                <input type="radio" name="borrower_sex" id="sex-none" value="" checked="checked" />
392
                                            [% ELSE %]
400
                                            [% ELSE %]
(-)a/members/memberentry.pl (-1 / +2 lines)
Lines 646-651 if(!defined($data{'sex'})){ Link Here
646
    $template->param( female => 1);
646
    $template->param( female => 1);
647
} elsif ($data{'sex'} eq 'M'){
647
} elsif ($data{'sex'} eq 'M'){
648
    $template->param(  male => 1);
648
    $template->param(  male => 1);
649
} elsif ($data{'sex'} eq 'O') {
650
    $template->param( other => 1);
649
} else {
651
} else {
650
    $template->param(  none => 1);
652
    $template->param(  none => 1);
651
}
653
}
652
- 

Return to bug 25364