Lines 365-388
legend:hover {
Link Here
|
365 |
<li class="radio"> |
365 |
<li class="radio"> |
366 |
[% UNLESS ( opduplicate ) %] |
366 |
[% UNLESS ( opduplicate ) %] |
367 |
[% IF ( female ) %] |
367 |
[% IF ( female ) %] |
368 |
<label for="sex-female"><input type="radio" name="sex" id="sex-female" value="F" checked="checked" /> Female</label> |
368 |
<label for="sex-female"><input type="radio" name="sex" id="sex-female" value="F" checked="checked" /><span class="patronsex-female"> Female</span></label> |
369 |
[% ELSE %] |
369 |
[% ELSE %] |
370 |
<label for="sex-female"><input type="radio" name="sex" id="sex-female" value="F" /> Female</label> |
370 |
<label for="sex-female"><input type="radio" name="sex" id="sex-female" value="F" /><span class="patronsex-female"> Female</span></label> |
371 |
[% END %] |
371 |
[% END %] |
372 |
[% IF ( male ) %] |
372 |
[% IF ( male ) %] |
373 |
<label for="sex-male"><input type="radio" name="sex" id="sex-male" value="M" checked="checked" /> Male</label> |
373 |
<label for="sex-male"><input type="radio" name="sex" id="sex-male" value="M" checked="checked" /><span class="patronsex-male"> Male</span></label> |
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" /><span class="patronsex-male"> Male</span></label> |
|
|
376 |
[% END %] |
377 |
[% IF ( other ) %] |
378 |
<label for="sex-other"><input type="radio" name="sex" id="sex-other" value="O" checked="checked" /><span class="patronsex-other"> Other</span></label> |
379 |
[% ELSE %] |
380 |
<label for="sex-other"><input type="radio" name="sex" id="sex-other" value="O" /><span class="patronsex-other"> Other</span></label> |
376 |
[% END %] |
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" /><span class="patronsex-none"> None specified / Prefer not to say</span></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="" /><span class="patronsex-none"> None specified / Prefer not to say</span></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"><span class="patronsex-female">Female </span></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"><span class="patronsex-male">Male </span></label><input type="radio" name="sex" id="sex-male" value="M" /> |
385 |
<label for="sex-none">None specified </label><input type="radio" name="sex" id="sex-none" value="" checked="checked" /> |
390 |
<label for="sex-other"><span class="patronsex-other">Other </span></label><input type="radio" name="sex" id="sex-other" value="O" /> |
|
|
391 |
<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" /> |
386 |
[% END # /UNLESS ( opduplicate )%] |
392 |
[% END # /UNLESS ( opduplicate )%] |
387 |
</li> |
393 |
</li> |
388 |
[% END # /UNLESS nosex %] |
394 |
[% END # /UNLESS nosex %] |
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 |
} |