]> git.mxchange.org Git - shipsimu.git/commitdiff
Template extended for show!
authorRoland Häder <roland@mxchange.org>
Sun, 25 May 2008 17:17:53 +0000 (17:17 +0000)
committerRoland Häder <roland@mxchange.org>
Sun, 25 May 2008 17:17:53 +0000 (17:17 +0000)
application/ship-simu/templates/de/code/register.ctp

index 9c599c256f938fc809b2180336975eacee7e570a..e2dffa3e9d69fedc40857d13f1bdfeccd5cce8f1 100644 (file)
@@ -1,13 +1,35 @@
+<?php
+$helper = HtmlFormHelper::createHtmlFormHelper($this, "register_form");
+       $helper->addFormArea("login", "Bitte gebe hier gew&uuml;nschten Nickname und dein Zugangspasswort ein.");
+               $helper->addInputArea("username", "Nickname im Spiel:");
+               $helper->addInputTextField("username", 10, 255);
+               $helper->addInputArea("pass1", "Passwort:");
+               $helper->addInputPasswordField("pass1", 5, 255);
+               $helper->addInputArea("pass2", "Passwortwiederholung:");
+               $helper->addInputPasswordField("pass2", 5, 255);
+if ($helper->registrationRequiresEmailVerification()) {
+       $helper->addFormArea("email", "Bitte gebe deine Email zweimal (ein zweites Mal zur Best&auml;tigung) ein, damit wir dir deinen Freischaltlink zusenden k&ouml;nnen.");
+               $helper->addInputArea("email1", "Email-Adresse:");
+               $helper->addInputTextField("email1", 15, 255);
+               $helper->addInputArea("email2", "Wiederholung Email-Adresse:");
+               $helper->addInputTextField("email2", 15, 255);
+}
+       $helper->addFormArea("profile", "Hier kannst du zus&auml;tzlich deine Profildaten vorweg eingeben, du kannst sie aber auch nach dem Login vervollst&auml;ndigen!");
+if (!$helper->registrationRequiresEmailVerification()) {
+               $helper->addInputArea("email1", "Email-Adresse:");
+               $helper->addInputTextField("email1", 15, 255);
+}
+               $helper->addInputArea("surname", "Dein Vorname:");
+               $helper->addInputTextField("surname", 10, 255);
+               $helper->addInputArea("family", "Dein Nachname:");
+               $helper->addInputTextField("family", 10, 255);
+$helper->addFormTag();
+$helper->flushContent();
+?>
 <div id="content_header">
        Anmeldung bei <span class="app_name">{?app_full_name?}</span>
 </div>
 
 <div id="register_box">
-       <form id="register_form" action="{register_action}" method="post">
-               <!-- You really should have at least nickname, password and email //-->
-               <!-- required for registration. If you don't think so please //-->
-               <!-- contact me and we can talk about it. The rest is optional to //-->
-               <!-- your own taste. //-->
-               <?php $this->addTextInputForm("username", 10, 255, true); ?>
-       </form>
+       {?register_form?}
 </div>