Difference between revisions of "ContactTest.rythm"
Jump to navigation
Jump to search
Line 19: | Line 19: | ||
new Field("city","City","Ort","New York","Berlin","home",2) | new Field("city","City","Ort","New York","Berlin","home",2) | ||
}; | }; | ||
+ | Form form=new Form(fields,"Your contact with us","Ihre Nachricht an uns"); | ||
} | } | ||
@{ boolean de=true;} | @{ boolean de=true;} | ||
@header("en","ContactTest") | @header("en","ContactTest") | ||
@bootstrap() | @bootstrap() | ||
− | @formvalidate(de, | + | @formvalidate(de,form) |
</head> | </head> | ||
<body> | <body> | ||
<div class="container"> | <div class="container"> | ||
− | @showform(de, | + | @showform(de,form) |
</div><!-- /.container --> | </div><!-- /.container --> | ||
<body> | <body> | ||
</html> | </html> | ||
</source> | </source> |
Revision as of 12:10, 6 November 2017
Links
Rythm template
@// Rythm template for the WikiCMS approach
@include(wiki.MediaWiki.Bootstrap.rythm)
@include(wiki.MediaWiki.Form.rythm)
@{
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(fields,"Your contact with us","Ihre Nachricht an uns");
}
@{ boolean de=true;}
@header("en","ContactTest")
@bootstrap()
@formvalidate(de,form)
</head>
<body>
<div class="container">
@showform(de,form)
</div><!-- /.container -->
<body>
</html>