diff options
Diffstat (limited to 'rt/share/html/Widgets/Form/Boolean')
-rw-r--r-- | rt/share/html/Widgets/Form/Boolean | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/rt/share/html/Widgets/Form/Boolean b/rt/share/html/Widgets/Form/Boolean index 0d5bd1aea..aade98e88 100644 --- a/rt/share/html/Widgets/Form/Boolean +++ b/rt/share/html/Widgets/Form/Boolean @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2015 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2016 Best Practical Solutions, LLC %# <sales@bestpractical.com> %# %# (Except where explicitly superseded by other copyright notices) @@ -73,12 +73,18 @@ $CurrentValue => undef, <input type="hidden" name="<% $Name %>" value="0" />\ <input type="checkbox" name="<% $Name %>" value="1" <% $CurrentValue? ' checked="checked"': '' |n %> />\ % } else { -<input type="radio" name="<% $Name %>" value="1" <% $CurrentValue? ' checked="checked"': '' |n %> />\ -<% loc('Yes') %> -<input type="radio" name="<% $Name %>" value="0" <% defined $CurrentValue && !$CurrentValue? ' checked="checked"': '' |n %> />\ -<% loc('No') %> -<input type="radio" name="<% $Name %>" value="__empty_value__" <% !defined $CurrentValue? ' checked="checked"': '' |n %> />\ -<% $DefaultLabel %> +<label> + <input type="radio" name="<% $Name %>" value="1" <% $CurrentValue? ' checked="checked"': '' |n %> />\ + <% loc('Yes') %> +</label> +<label> + <input type="radio" name="<% $Name %>" value="0" <% defined $CurrentValue && !$CurrentValue? ' checked="checked"': '' |n %> />\ + <% loc('No') %> +</label> +<label> + <input type="radio" name="<% $Name %>" value="__empty_value__" <% !defined $CurrentValue? ' checked="checked"': '' |n %> />\ + <% $DefaultLabel %> +</label> % } </%METHOD> |