Give basic form feedback for account creation

This commit is contained in:
Johannes Zellner
2016-04-04 13:00:23 +02:00
parent c73213b2f2
commit 8af01f2955
2 changed files with 22 additions and 16 deletions
+3 -1
View File
@@ -13,7 +13,7 @@ app.controller('Controller', [function () {}]);
</script>
<center>
<h1>Hello <%= user.username %>, welcome to your Cloudron.</h1>
<h1>Hello <%= (user && user.email) ? user.email : '' %>, welcome to your Cloudron.</h1>
<h4>Setup your account and password.</h4>
</center>
@@ -24,6 +24,8 @@ app.controller('Controller', [function () {}]);
<input type="hidden" name="_csrf" value="<%= csrf %>"/>
<input type="hidden" name="resetToken" value="<%= resetToken %>"/>
<p class="has-error">{{ error }}</p>
<div class="form-group" ng-class="{ 'has-error': (setupForm.username.$dirty && setupForm.username.$invalid) }">
<label class="control-label">Username</label>
<div class="control-label" ng-show="setupForm.username.$dirty && setupForm.username.$invalid">