Difference between revisions of "Contact.rythm"
Jump to navigation
Jump to search
(76 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
= Links = | = Links = | ||
+ | * https://codepen.io/jaycbrf/pen/iBszr | ||
+ | * {{Link|target=MediaWiki:Bootstrap.rythm}} | ||
+ | * {{Link|target=MediaWiki:BITPlan.rythm}} | ||
+ | * {{Link|target=MediaWiki:Form.rythm}} | ||
− | = | + | = Rythm template = |
− | <source lang=' | + | <source lang='html'> |
@// Rythm template for the WikiCMS approach | @// 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) | |
− | |||
− | |||
</source> | </source> | ||
+ | [[Category:RythmTemplate]] |
Latest revision as of 15: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)