ContactTest.rythm

From BITPlan Wiki
Revision as of 15:35, 6 November 2017 by Wf (talk | contribs) (→‎Rythm template)
Jump to navigation Jump to search

Links

Rythm template

@// Rythm template for the WikiCMS approach
@include(wiki.MediaWiki.Bootstrap.rythm)
@include(wiki.MediaWiki.Form.rythm)
@{
  boolean de=true;
  Field[] fields={
    new Field("firstname","First name","Vorname","John","Erika","user",2),
    new Field("lastname","Last name","Nachname","Doe","Mustermann","user",2),
    new Field("email","E-Mail Address","E-Mail Adresse","john@doe.com","erika@mustermann.de","envelope",5),
    new Field("phone","Phone number","Telefonnummer","+1 845 555-1212","+49 30 675797","earphone",8),
    new Field("address","Address","Adresse","12 Westend Ave","Mauerstr. 12","home",8),
    new Field("zip","ZIP Code","PLZ","10023","10117","home",3),
    new Field("city","City","Ort","New York","Berlin","home",2)
  };
  Form form=new Form(de,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");
}
@header("en","ContactTest")
@bootstrap()
@formvalidate(form)
  </head>
  <body>
  <div class="container">
@showform(form) 
   </div><!-- /.container -->
  <body>
</html>