Feature #3661

<f:form.checkbox and <f:form.radio missing?!

Added by Marcel Rosenberger over 12 years ago. Updated about 11 years ago.

Status:
Resolved
Priority:
Should have
Category:
ViewHelpers
Target version:
-
Start date:
2009-06-14
Due date:
% Done:

100%

Estimated time:
Has patch:

Description

It would be nice to have <f:form.checkbox and <f:form.radio available in a Fluid-Template.
<input type="radio" name=...> is possible but one can't take advantage of arguments like options="{myarray}" and property="..." as possible with the <f:form.select ViewHelper.


Files

3661.patch (28 KB) 3661.patch Bastian Waidelich, 2009-07-31 12:18
3661_tx_fluid_checkbox_and_radio_viewhelpers.patch (27.9 KB) 3661_tx_fluid_checkbox_and_radio_viewhelpers.patch Patch for tx_fluid extension Bastian Waidelich, 2009-08-09 21:50
3661_Fluid_checkbox_and_radio_viewhelpers.patch (28 KB) 3661_Fluid_checkbox_and_radio_viewhelpers.patch Patch for Fluid package Bastian Waidelich, 2009-08-09 21:50
#1

Updated by Steffen Ritter over 12 years ago

Marcel R. wrote:

It would be nice to have <f:form.checkbox and <f:form.radio available in a Fluid-Template.
<input type="radio" name=...> is possible but one can't take advantage of arguments like options="{myarray}" and property="..." as possible with the <f:form.select ViewHelper.

It's not intuitive, but technically I would say it's <f:form.select and there should be an option renderType=select|combobox|radio|checkbox

#2

Updated by Jochen Rau over 12 years ago

  • Status changed from New to Accepted
  • Priority changed from Could have to Should have
#3

Updated by Bastian Waidelich over 12 years ago

  • Assignee set to Bastian Waidelich
#4

Updated by Bastian Waidelich over 12 years ago

  • Project changed from 534 to TYPO3.Fluid
  • Category deleted (432)
#5

Updated by Bastian Waidelich over 12 years ago

Attached is a patch that implements a simple checkbox & radio viewhelper.

Note:
Something like

<f:form.select renderType="checkbox" />
does not make sense until we have support for "template based" view helpers in my eyes because client A wants it to be:
<dl>
  <dt><label for="foo">Foo</label></dt>
  <dd><input type="checkbox" value="foo" name="foos[]" id="foo" /></dd>
  <dt><label for="bar">Bar</label></dt>
  <dd><input type="checkbox" value="bar" name="foos[]" id="bar" /></dd>
</dl>

and client B:

<ul>
  <li><label><input type="checkbox" value="foo" name="foos[]" id="foo" /> Foo</label></li>
  <li><label><input type="checkbox" value="bar" name="foos[]" id="bar" /> Bar</label></li>
</ul>

but we're working on a solution for that!

#6

Updated by Bastian Waidelich over 12 years ago

Attached is a patch that implements a simple checkbox/radio viewhelper. Once for Fluid (package) and once for tx_fluid (extension).
This will be committed to trunk after release of FLOW3 1.0.0 alpha3.

#7

Updated by Bastian Waidelich about 12 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Applied in changeset r3109.

Also available in: Atom PDF