Difference between revisions of "Contact.rythm"
Jump to navigation
Jump to search
(3 intermediate revisions by the same user not shown) | |||
Line 8: | Line 8: | ||
<source lang='html'> | <source lang='html'> | ||
@// Rythm template for the WikiCMS approach | @// Rythm template for the WikiCMS approach | ||
− | |||
@include(wiki.MediaWiki.BITPlan.rythm) | @include(wiki.MediaWiki.BITPlan.rythm) | ||
− | |||
@{ | @{ | ||
− | |||
− | |||
− | |||
Field[] fields={ | Field[] fields={ | ||
− | |||
new TextField("name","Name","Name","John Doe","Erika Mustermann","user",2), | new TextField("name","Name","Name","John Doe","Erika Mustermann","user",2), | ||
− | new TextField("organisation","Organization"," | + | new TextField("organisation","Organization","Organisation","Doe Inc.","Mustermann GmbH","user",2), |
new TextField("email","E-Mail Address","E-Mail Adresse","john@doe.com","erika@mustermann.de","envelope",5), | new TextField("email","E-Mail Address","E-Mail Adresse","john@doe.com","erika@mustermann.de","envelope",5), | ||
− | |||
new TextAreaField("message","Your Message to us","Ihre Nachricht an us","Your Message","Ihre Nachricht","pencil",10) | new TextAreaField("message","Your Message to us","Ihre Nachricht an us","Your Message","Ihre Nachricht","pencil",10) | ||
− | |||
− | |||
− | |||
}; | }; | ||
Form form=new Form(de,postService,postToken,fields); | Form form=new Form(de,postService,postToken,fields); | ||
form.setTitle("Your contact with us","Ihre Nachricht an uns"); | form.setTitle("Your contact with us","Ihre Nachricht an uns"); | ||
form.setSuccess("Thanks for contacting us, we will get back to you shortly","Vielen Dank für Ihre Kontaktaufnahme, wir melden uns unverzüglich"); | form.setSuccess("Thanks for contacting us, we will get back to you shortly","Vielen Dank für Ihre Kontaktaufnahme, wir melden uns unverzüglich"); | ||
− | |||
− | |||
− | |||
} | } | ||
− | @ | + | @BITPlanHeader(languageCode,title) |
− | @ | + | @BITPlanForm(de,form) |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</source> | </source> | ||
[[Category:RythmTemplate]] | [[Category:RythmTemplate]] |
Latest revision as of 16:56, 9 November 2017
Links
- https://codepen.io/jaycbrf/pen/iBszr
- MediaWiki:Bootstrap.rythm
- MediaWiki:BITPlan.rythm
- MediaWiki:Form.rythm
Rythm template
@// Rythm template for the WikiCMS approach
@include(wiki.MediaWiki.BITPlan.rythm)
@{
Field[] fields={
new TextField("name","Name","Name","John Doe","Erika Mustermann","user",2),
new TextField("organisation","Organization","Organisation","Doe Inc.","Mustermann GmbH","user",2),
new TextField("email","E-Mail Address","E-Mail Adresse","john@doe.com","erika@mustermann.de","envelope",5),
new TextAreaField("message","Your Message to us","Ihre Nachricht an us","Your Message","Ihre Nachricht","pencil",10)
};
Form form=new Form(de,postService,postToken,fields);
form.setTitle("Your contact with us","Ihre Nachricht an uns");
form.setSuccess("Thanks for contacting us, we will get back to you shortly","Vielen Dank für Ihre Kontaktaufnahme, wir melden uns unverzüglich");
}
@BITPlanHeader(languageCode,title)
@BITPlanForm(de,form)