Task #63673
closed
Epic #69036: EXT:form - Optimize layout rendering
Define standard layout
Added by d.ros no-lastname-given almost 10 years ago.
Updated about 9 years ago.
Description
I just tried to define a Std. Layout for my labels.
For any not understandable reason I do not get it managed.
Put into Page TS
doesntmatter.form = FORM
doesntmatter.form {
layout{
containerWrap (
<div class="twoBroiler">
<elements />
</div>
)
label(
<label><labelvalue /><mandatory /><span class="fourPigs"/><error /></label>
)
}
}
Expected is some classy output.
If I put the Layout section into the form itself it renders. But I need to have a class on an error output.
Cheers
David
- Status changed from New to Needs Feedback
- Assignee set to Mathias Schreiber
Hi David,
I don't quite get what you mean here.
Can you try to be more precise?
Thanks
In the ent the whole form extension does not use fluid for templating.
So any kind of personalization gets quite dirty. I wanted to handle my labels different, especially if an error occours. In the end I went XClassing for that. Unfortunately.
Cheers
Could you provide your xclass here so that we can check if it makes sense to integrate your changes?
- Status changed from Needs Feedback to New
- Assignee deleted (
Mathias Schreiber)
- Category changed from Form Framework to 1602
- Category changed from 1602 to Form Framework
- Parent task set to #69036
- Tracker changed from Story to Task
- Translation missing: en.field_remaining_hours deleted (
0.0)
- Subject changed from Define Std. layout to Define standard layout
- Status changed from New to Closed
- % Done changed from 0 to 100
I've tested the desired output with the current master. The following snippet does what d.ros describes.
enctype = multipart/form-data
method = post
confirmation = 1
layout {
containerWrap = <div class="container-wrap"><elements /></div>
error = <em class="alert-box alert"><errorvalue /></em>
}
postProcessor {
1 = mail
1 {
senderEmail = sender@email.com
recipientEmail = recipient@email.com
}
}
10 = TEXTLINE
10 {
name = surname
label = Surname
}
20 = SUBMIT
20 {
name = submit
value = Submit
}
rules {
10 = required
10.element = surname
}
If you have any further questions or problems please let us know and (re-)open the ticket.
Also available in: Atom
PDF