CIForms sandbox: Difference between revisions
No edit summary Tag: 2017 source edit |
No edit summary Tag: 2017 source edit |
||
Line 94: | Line 94: | ||
| I ran out of money, I have to find whatever job quickly | | I ran out of money, I have to find whatever job quickly | ||
| I want to learn something new | | I want to learn something new | ||
| The job fits my background and I'm very skilled, I look forward to join your team | | The job fits my background and I'm very skilled, I look forward to join your team! | ||
| None of the above | |||
}} | }} | ||
Line 100: | Line 101: | ||
Form with nested sections | Form with nested sections | ||
<pre> | |||
{{#CI form: title = Job application | |||
| submission groups = sysop | |||
| | |||
{{#CI form section: type = inputs | |||
| name [] * | |||
| email [] * | |||
}} | |||
| | |||
{{#CI form section: type = inputs | |||
| title = What about your motivation ? | |||
| type = multiple choice | |||
| I send bulk application, even if I will be selected I'm not sure to confirm | |||
| I ran out of money, I have to find whatever job quickly | |||
| I want to learn something new | |||
| The job fits my background and I'm very skilled, I look forward to join your team! | |||
| None of the above | |||
}} | |||
{{#CI form section: type = multiple choice | |||
| title = If you will be selected (on the basis of the answer above), how will you undertake your work ? (up to 3 answers allowed) | |||
| type = multiple choice | |||
| max answers=3 | |||
| I will work scrupulously | |||
| I will work meticulously | |||
| I will pretend to work | |||
| I will delegate all my work to my sister | |||
| This is my personal approach (explain) [] | |||
}} | |||
}} | |||
</pre> | |||
Line 106: | Line 141: | ||
| | | | ||
{{#CI form section: type = inputs | {{#CI form section: type = inputs | ||
| name [] | | name [] * | ||
| email [] | | email [] * | ||
}} | }} | ||
| | | | ||
Line 116: | Line 151: | ||
| I ran out of money, I have to find whatever job quickly | | I ran out of money, I have to find whatever job quickly | ||
| I want to learn something new | | I want to learn something new | ||
| The job fits my background and I'm very skilled, I look forward to join your team | | The job fits my background and I'm very skilled, I look forward to join your team! | ||
| None of the above | |||
}} | }} | ||
{{#CI form section: type = multiple choice | {{#CI form section: type = multiple choice | ||
| title = If you will be selected (on the basis of the | | title = If you will be selected (on the basis of the answer above), how will you undertake your work ? (up to 3 answers allowed) | ||
| type = multiple choice | | type = multiple choice | ||
| max answers=3 | | max answers=3 | ||
Line 127: | Line 163: | ||
| I will pretend to work | | I will pretend to work | ||
| I will delegate all my work to my sister | | I will delegate all my work to my sister | ||
| | | This is my personal approach (explain) [] | ||
}} | }} | ||
}} | }} | ||
Revision as of 21:58, 8 January 2022
This is a sandbox for https://www.mediawiki.org/wiki/Extension:CIForms !
This is the simplest form (type "inputs" by default, one column)
The square brackets represent an input, the square brackets contain the input type
{{#CI form: title = Contact form | type = inputs | first and last name [] * | email [email] * | your message [textarea] * }}
which produces the following
{{#CI form: title = Contact form
| type = inputs
| submission groups = sysop
| first and last name [] *
| email [email] *
| your message [textarea] *
}}
Form with placeholders. The square brackets contain the placeholder and the input type after the equal symbol:
{{#CI form: title = Contact form | [first and last name] * | [email=email] * | [phone=tel] | [your message=textarea] * }}
which produces the following:
{{#CI form: title = Contact form
| [first and last name] *
| [email=email] *
| [phone=tel]
| [your message=textarea] *
}}
Inputs responsive (two columns), the square brackets contain the input type, the form rows can contain html (the label of the email input is bold)
{{#CI form: title = Contact form | type = inputs responsive | submit = abc@test.com | first name [] * | last name [] * | <b>email</b> [email] * | phone [tel] | your message [textarea] * }}
{{#CI form: title = Contact form
| type = inputs responsive
| first name [] *
| last name [] *
| email [email] *
| phone [tel]
| your message [textarea] *
}}
Multiple choice
{{#CI form: title = Why are you applying to this job ? | type = multiple choice | I send bulk application, even if I will be selected I'm not sure to confirm | I ran out of money, I have to find whatever job quickly | I want to learn something new | The job fits my background and I'm very skilled, I look forward to join your team }}
{{#CI form: title = Why are you applying to this job ?
| type = multiple choice
| I send bulk application, even if I will be selected I'm not sure to confirm
| I ran out of money, I have to find whatever job quickly
| I want to learn something new
| The job fits my background and I'm very skilled, I look forward to join your team!
| None of the above
}}
Form with nested sections
{{#CI form: title = Job application | submission groups = sysop | {{#CI form section: type = inputs | name [] * | email [] * }} | {{#CI form section: type = inputs | title = What about your motivation ? | type = multiple choice | I send bulk application, even if I will be selected I'm not sure to confirm | I ran out of money, I have to find whatever job quickly | I want to learn something new | The job fits my background and I'm very skilled, I look forward to join your team! | None of the above }} {{#CI form section: type = multiple choice | title = If you will be selected (on the basis of the answer above), how will you undertake your work ? (up to 3 answers allowed) | type = multiple choice | max answers=3 | I will work scrupulously | I will work meticulously | I will pretend to work | I will delegate all my work to my sister | This is my personal approach (explain) [] }} }}
{{#CI form: title = Job application
| submission groups = sysop
|
{{#CI form section: type = inputs
| name [] *
| email [] *
}}
|
{{#CI form section: type = inputs
| title = What about your motivation ?
| type = multiple choice
| I send bulk application, even if I will be selected I'm not sure to confirm
| I ran out of money, I have to find whatever job quickly
| I want to learn something new
| The job fits my background and I'm very skilled, I look forward to join your team!
| None of the above
}}
{{#CI form section: type = multiple choice | title = If you will be selected (on the basis of the answer above), how will you undertake your work ? (up to 3 answers allowed) | type = multiple choice | max answers=3 | I will work scrupulously | I will work meticulously | I will pretend to work | I will delegate all my work to my sister | This is my personal approach (explain) [] }}
}}
{{#CI form: title = Metti i verbi al futuro semplice | type = cloze test | * Vedo, vedo... che tra poco [incontrare=incontrerai] l'uomo della tua vita | Vedo, vedo... che [avere] una grande vincita al gioco | Questa carta mi dice che [vincere] il concorso che hai appena fatto | Quest'altra carta mi dice che [sposarsi] al massimo entro tre anni | Ah, qui vedo che [fare] un viaggio molto interessante | Qui vedo che [andare] ad abitare in un'altra citta' }}
{{#CI form: title = Metti i verbi al futuro semplice
| type = cloze test
| * Vedo, vedo... che tra poco [incontrare=incontrerai] l'uomo della tua vita
| Vedo, vedo... che [avere] una grande vincita al gioco
| Questa carta mi dice che [vincere] il concorso che hai appena fatto
| Quest'altra carta mi dice che [sposarsi] al massimo entro tre anni
| Ah, qui vedo che [fare] un viaggio molto interessante
| Qui vedo che [andare] ad abitare in un'altra citta'
}}