Task #6560

Task #26664: Clean up Form ViewHelpers

Task #26658: Make Form ViewHelpers consistent

A reset button for formViewHelper [Made and attached]

Added by Soren Malling over 5 years ago. Updated almost 4 years ago.

Status:Closed Start date:2010-02-22
Priority:Must have Due date:
Assigned To:Sebastian Kurfuerst % Done:

90%

Category:ViewHelpers
Target version:-
Has patch:No

Description

Hi,

I was lacking the function of creating a reset button in my fluid template so I made a viewHelper for this purpose and attached it here. Please give me feedback whether it's useful or not :)

Regards,

Søren

ResetViewHelper.php Magnifier (3 kB) Soren Malling, 2010-02-22 14:42

History

#1 Updated by Soren Malling over 5 years ago

  • Assigned To set to Sebastian Kurfuerst
  • Target version deleted (1.0)

Hope you are enjoying the T3BOARD tour :-)

Any thoughts on this one? (sorry for assigning, but I'm not aware if a info mail is sent as long as no person is assigned)

#2 Updated by Sebastian Kurfuerst over 5 years ago

  • Status changed from New to Accepted
  • Priority changed from Should have to Must have

#3 Updated by Sebastian Kurfuerst over 5 years ago

That looks good, thanks very much :-) Have you already signed the Contributor License Agreement for TYPO3?

More info about the CLA can be found at http://typo3.org/about/licenses/

Thanks and greets :-)
Sebastian

#4 Updated by Soren Malling over 5 years ago

No, haven't signed anything.

The patch was made during working hours, so it's my working email that are written in the feature so I need to get the corporation license signed. Normally i use my private email so the personal will be signed at the same time.

Hope to get back soon with it all signed :-)

Søren

#5 Updated by Soren Malling about 5 years ago

CLA signed and send to the association this very day.

The owner of the source code is me as a individual, but "signed" with my e-mail at work. If you would like me to change this e-mail address to fit the signed CLA please tell me so and I will of course do that :-)

#6 Updated by Soren Malling about 5 years ago

CLA accepted :-)

#7 Updated by Sebastian Kurfuerst about 5 years ago

  • % Done changed from 100 to 90

Thanks a bunch! I'll take care of committing.

Greets,
Sebastian

#8 Updated by Bastian Waidelich about 5 years ago

Sorry for interfering.. But I'm asking myself: Why would you need a ViewHelper for this?
Instead of

<f:form.reset value="Reset Fields" />

you could just write
<input type="reset" />

in your Fluid template directly.. Or am I missing something?

BTW: There's a typo in the second example in the Class DocComment

#9 Updated by Soren Malling about 5 years ago

Bastian Waidelich wrote:

Sorry for interfering.. But I'm asking myself: Why would you need a ViewHelper for this?
Instead of
[...]
you could just write
[...]
in your Fluid template directly.. Or am I missing something?

BTW: There's a typo in the second example in the Class DocComment

My wish for a rest button came after a "experience" where i was using f:form.submit and expected f:form.reset to be a available button as well, as it's a commonly used button for forms.

#10 Updated by Sebastian Kurfuerst about 4 years ago

  • Parent task set to #26658

#11 Updated by Stefan Neufeind about 4 years ago

@Sebastian/Bastian: Please make up your mind about this one.

#12 Updated by Robert Lemke almost 4 years ago

  • Target version changed from 1.0 beta 2 to 1.0.0

#13 Updated by Robert Lemke almost 4 years ago

  • Status changed from Accepted to Closed
  • Target version deleted (1.0.0)
  • Has patch set to No

I'll close this issue for the following reasons:

  • as Bastian pointed out, not using a view helper is even more simple
  • resetting forms is ... very unnecessary in most cases, actually not good UX practice anyways

Also available in: Atom PDF