registration form html
authorDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 12 Dec 2012 17:31:34 +0000 (18:31 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 12 Dec 2012 17:31:34 +0000 (18:31 +0100)
app/partials/registration.html [new file with mode: 0644]

diff --git a/app/partials/registration.html b/app/partials/registration.html
new file mode 100644 (file)
index 0000000..7a9030c
--- /dev/null
@@ -0,0 +1,37 @@
+
+<form ng-controller="RegistrationCtrl" name="RegistrationForm">
+
+<h2>Registration - contact details</h2>
+
+<input ng-model="user.firstname" placeholder="first name" required />
+<input ng-model="user.surname"   placeholder="surname" required />
+<br>
+<input ng-model="user.organization" placeholder="organizacija" >
+<br>
+<input ng-model="user.address" placeholder="address" >
+<input ng-model="user.town" placeholder="town" required >
+<input ng-model="user.zip_code" placeholder="zip code" >
+<input ng-model="user.country" placeholder="country" >
+<br>
+<input ng-model="user.email" type="email" placeholder="e-mail@example.com" required />
+<input ng-model="user.phone" placeholder="+385-1-555-1234" />
+
+<br>
+
+<button ng-click="update(user)" ng-show="RegistrationForm.$valid">Register for conference</button>
+
+<pre>
+user={{user}}
+
+$routeParams={{$routeParams}}
+
+{{RegistrationForm.$valid}}
+{{RegistrationForm.$error}}
+
+location={{$location.path()}}
+
+</pre>
+
+</form>
+
+