01367: allow label=x with input markup for checkbox and radio buttons

Summary: allow label=x with input markup for checkbox and radio buttons
Created: 2015-05-15 15:36
Status: Closed, added for 2.2.76
Category: Feature
Assigned:
Priority: 42
Version:
OS:

Description: Currently a cookbook such as FormExtensions must be installed in order to create the fairly basic HTML of including <label>...</label> around <input> elements.

Since having clickable text for checkboxes and radio buttons is highly desirable, it would be nice if a flexible markup for this could be created:

(:input checkbox fooname barvalue1 label="this is the text label":)\\
(:input checkbox fooname barvalue2 "positional label":)


would create HTML like this:

<label><input type="checkbox" name="fooname" value="barvalue" />this is the text label</label> Peter Bowers May 15, 2015, at 03:36 PM

Implemented for 2.2.76 with <input id=...> <label for=...>text</label>. Note that labels cannot have markup like bold text, links, wikistyles: if such feature is needed please use a recipe like Cookbook:FormExtensions or Cookbook:FormsPlus, or write one. --Petko May 16, 2015, at 02:38 AM