Created
November 11, 2013 12:23
-
-
Save cedricziel/7412413 to your computer and use it in GitHub Desktop.
TYPO3 Form config. Paste this into the form ext's config field.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class = form-horizontal | |
enctype = multipart/form-data | |
method = post | |
prefix = tx_form | |
confirmation = 0 | |
postProcessor { | |
1 = mail | |
1 { | |
recipientEmail = [email protected] | |
senderEmail = [email protected] | |
senderEmailField = email | |
senderEmailName = name | |
subject = test | |
messages.success = <div class="alert alert-success"><strong>Well done!</strong> You successfully read <a href="#" class="alert-link">this important alert message</a></div> | |
messages.error = <div class="alert alert-error"><strong>Well done!</strong> You successfully read <a href="#" class="alert-link">this important alert message</a></div> | |
} | |
} | |
rules { | |
1 = required | |
1 { | |
element = message | |
} | |
2 = required | |
2 { | |
element = lastname | |
} | |
} | |
layout { | |
submit ( | |
<div class="form-group"> | |
<div class="col-sm-offset-2 col-sm-10"> | |
<input type="submit" class="button-red" /> | |
</div> | |
</div> | |
) | |
select ( | |
<div class="form-group"> | |
<div class="col-lg-2"> | |
<label /> | |
</div> | |
<div class="col-lg-10"> | |
<select class="form-control"> | |
<elements /> | |
</select> | |
</div> | |
</div> | |
) | |
textline ( | |
<div class="form-group"> | |
<div class="col-lg-2"> | |
<label /> | |
</div> | |
<div class="col-lg-10"> | |
<input class="form-control" /> | |
</div> | |
</div> | |
) | |
textarea ( | |
<div class="form-group"> | |
<div class="col-lg-2"> | |
<label /> | |
</div> | |
<div class="col-lg-10"> | |
<textarea class="form-control"> | |
</textarea> | |
</div> | |
</div> | |
) | |
radiogroup ( | |
<div class="form-group"> | |
<div class="col-lg-push-2 col-lg-10"> | |
<containerWrap /> | |
</div> | |
</div> | |
) | |
checkboxgroup ( | |
<div class="form-group"> | |
<div class="col-lg-push-2 col-lg-10"> | |
<elements /> | |
</div> | |
</div> | |
) | |
radio ( | |
<div class="radio"> | |
<label /> | |
<input /> | |
</div> | |
) | |
checkbox ( | |
<div class="checkbox"> | |
<label /> | |
<input /> | |
</div> | |
) | |
elementWrap ( | |
<div class="form-group"> | |
<element /> | |
</div> | |
) | |
containerWrap ( | |
<div> | |
<elements /> | |
</div> | |
) | |
mandatory ( | |
<span class="mandatory">*</span> | |
) | |
} | |
10 = TEXTLINE | |
10 { | |
name = firstname | |
label { | |
value = First name | |
} | |
} | |
20 = TEXTLINE | |
20 { | |
name = lastname | |
label { | |
value = Last name | |
} | |
} | |
30 = TEXTAREA | |
30 { | |
cols = 40 | |
rows = 5 | |
name = message | |
label { | |
value = Message | |
} | |
} | |
40 = SELECT | |
40 { | |
name = myselect | |
label { | |
value = My Label | |
} | |
10 = OPTION | |
10 { | |
label { | |
value = MyLabel | |
} | |
data = Mr. | |
} | |
} | |
80 = RADIOGROUP | |
80 { | |
name = ddd | |
label { | |
value = My Label | |
} | |
10 = RADIO | |
10 { | |
label { | |
value = Option 1 | |
} | |
} | |
20 = RADIO | |
20 { | |
label { | |
value = Option 2 | |
} | |
} | |
30 = RADIO | |
30 { | |
label { | |
value = Option 3 | |
} | |
} | |
} | |
90 = FIELDSET | |
90 { | |
legend = Payment details | |
90 = CHECKBOXGROUP | |
90 { | |
name = bla | |
10 = CHECKBOX | |
10 { | |
label { | |
value = Option 1 | |
} | |
} | |
20 = CHECKBOX | |
20 { | |
label { | |
value = Option 2 | |
} | |
} | |
30 = CHECKBOX | |
30 { | |
label { | |
value = Option 3 | |
} | |
} | |
} | |
} | |
100 = SUBMIT | |
100 { | |
class = button-red | |
name = 9 | |
value = Submit | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment