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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-3 / +9 lines)
Lines 374-387 legend:hover { Link Here
374
                                                            [% ELSE %]
374
                                                            [% ELSE %]
375
                                                                <label for="sex-male"><input type="radio" name="sex" id="sex-male" value="M" /> Male</label>
375
                                                                <label for="sex-male"><input type="radio" name="sex" id="sex-male" value="M" /> Male</label>
376
                                                            [% END %]
376
                                                            [% END %]
377
                                                            [% IF ( other ) %]
378
                                                                <label for="sex-other"><input type="radio" name="sex" id="sex-other" value="O" checked="checked" /> Other</label>
379
                                                            [% ELSE %]
380
                                                                <label for="sex-other"><input type="radio" name="sex" id="sex-other" value="O" /> Other</label>
381
                                                            [% END %]
377
                                                            [% IF ( none ) %]
382
                                                            [% IF ( none ) %]
378
                                                                <label for="sex-none"><input type="radio" name="sex" id="sex-none" value=""  checked="checked" /> None specified</label>
383
                                                                <label for="sex-none"><input type="radio" name="sex" id="sex-none" value=""  checked="checked" /> None specified / Prefer not to say</label>
379
                                                            [% ELSE %]
384
                                                            [% ELSE %]
380
                                                                <label for="sex-none"><input type="radio" name="sex" id="sex-none" value="" /> None specified</label>
385
                                                                <label for="sex-none"><input type="radio" name="sex" id="sex-none" value="" /> None specified / Prefer not to say</label>
381
                                                            [% END %]
386
                                                            [% END %]
382
                                                        [% ELSE %]
387
                                                        [% ELSE %]
383
                                                            <label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" />
388
                                                            <label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" />
384
                                                            <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" />
389
                                                            <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" />
390
                                                            <label for="sex-other">Other </label><input type="radio" name="sex" id="sex-other" value="O" />
385
                                                            <label for="sex-none">None specified </label><input type="radio" name="sex" id="sex-none" value="" checked="checked" />
391
                                                            <label for="sex-none">None specified </label><input type="radio" name="sex" id="sex-none" value="" checked="checked" />
386
                                                        [% END # /UNLESS ( opduplicate )%]
392
                                                        [% END # /UNLESS ( opduplicate )%]
387
                                                    </li>
393
                                                    </li>
Lines 1593-1599 legend:hover { Link Here
1593
                }
1599
                }
1594
                $(toggle_from).each(function() {
1600
                $(toggle_from).each(function() {
1595
                    var input_label = $(this).attr('for');
1601
                    var input_label = $(this).attr('for');
1596
                    if ( input_label == 'sex-male' || input_label == 'sex-none' || input_label == 'sex-female' ) {
1602
                    if ( input_label == 'sex-male' || input_label == 'sex-none' || input_label == 'sex-female' || input_label == 'sex-other' ) {
1597
                        $(toggle_to+"[for='"+input_label+"']").next().prop('checked', $(this).next().prop('checked') );
1603
                        $(toggle_to+"[for='"+input_label+"']").next().prop('checked', $(this).next().prop('checked') );
1598
                        return;
1604
                        return;
1599
                    }
1605
                    }
(-)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' ) %]Female[% ELSIF ( patron.sex == 'M' ) %]Male[% ELSIF ( patron.sex == 'O' ) %]Other[% 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 246-252 Link Here
246
                                            [% IF ( patron.sex ) %]
246
                                            [% IF ( patron.sex ) %]
247
                                                <li>
247
                                                <li>
248
                                                    <span class="label">Gender:</span>
248
                                                    <span class="label">Gender:</span>
249
                                                    [% IF ( patron.sex == 'F' ) %]Female[% ELSIF ( patron.sex == 'M' ) %]Male[% ELSE %][% patron.sex | html %][% END %]
249
                                                    [% IF ( patron.sex == 'F' ) %]Female[% ELSIF ( patron.sex == 'M' ) %]Male[% ELSIF (patron.sex == 'O' ) %]Other[% ELSE %][% patron.sex | html %][% END %]
250
                                                </li>
250
                                                </li>
251
                                            [% END %]
251
                                            [% END %]
252
                                        [% END %]
252
                                        [% END %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt (-1 / +9 lines)
Lines 386-392 Link Here
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">Other:</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">None specified / Prefer not to say: </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 629-634 if(!defined($data{'sex'})){ Link Here
629
    $template->param( female => 1);
629
    $template->param( female => 1);
630
} elsif ($data{'sex'} eq 'M'){
630
} elsif ($data{'sex'} eq 'M'){
631
    $template->param(  male => 1);
631
    $template->param(  male => 1);
632
} elsif ($data{'sex'} eq 'O') {
633
    $template->param( other => 1);
632
} else {
634
} else {
633
    $template->param(  none => 1);
635
    $template->param(  none => 1);
634
}
636
}
635
- 

Return to bug 25364