#checkbox{}'s label is not attached to the checkbox field
Reported by Brian O | April 23rd, 2010 @ 01:17 AM
The checkbox field's ID is not set. Here's a patch that sets it.
diff --git a/apps/nitrogen/src/elements/forms/element_checkbox.erl b/apps/nitrog
index be5d03f..a4d9b74 100644
--- a/apps/nitrogen/src/elements/forms/element_checkbox.erl
+++ b/apps/nitrogen/src/elements/forms/element_checkbox.erl
@@ -24,6 +24,7 @@ render_element(Record) ->
[
% Checkbox...
wf_tags:emit_tag(input, [
+ {id, Anchor},
{name, Anchor},
{type, checkbox},
{class, [checkbox, Record#checkbox.class]},
Comments and changes to this ticket
-
Rusty Klophaus June 29th, 2010 @ 08:00 PM
- Milestone cleared.
- Milestone order changed from 0 to 0
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
Nitrogen Web Framework for Erlang