2015-07-16 15:12:03 +01:00
<header>
<h1>Create your account</h1>
</header>
2015-03-29 20:10:53 +02:00
2015-07-16 15:12:03 +01:00
<form id="setup" class="gh-flow-create">
{{!-- Horrible hack to prevent Chrome from incorrectly auto-filling inputs --}}
<input style="display:none;" type="text" name="fakeusernameremembered"/>
<input style="display:none;" type="password" name="fakepasswordremembered"/>
2015-03-29 20:10:53 +02:00
2015-07-15 17:03:32 -04:00
{{ gh-profile-image fileStorage = config .fileStorage email = validEmail setImage = "setImage" }}
2015-06-06 22:19:19 -05:00
{{ # gh-form-group errors = errors property = "email" }}
2015-03-29 20:10:53 +02:00
<label for="email-address">Email address</label>
<span class="input-icon icon-mail">
2015-08-03 09:14:39 +01:00
{{ gh-input type = "email" name = "email" enter = ( action "setup" ) placeholder = "Eg. john@example.com" class = "gh-input" autofocus = "autofocus" autocorrect = "off" value = email focusOut = ( action "handleEmail" ) }}
2015-03-29 20:10:53 +02:00
</span>
2015-06-06 22:19:19 -05:00
{{ gh-error-message errors = errors property = "email" }}
{{ / gh-form-group }}
{{ # gh-form-group errors = errors property = "name" }}
2015-03-29 20:10:53 +02:00
<label for="full-name">Full name</label>
<span class="input-icon icon-user">
2015-08-03 09:14:39 +01:00
{{ gh-input type = "text" name = "name" enter = ( action "setup" ) placeholder = "Eg. John H. Watson" class = "gh-input" autofocus = "autofocus" autocorrect = "off" value = name focusOut = ( action "validate" "name" ) }}
2015-03-29 20:10:53 +02:00
</span>
2015-06-06 22:19:19 -05:00
{{ gh-error-message errors = errors property = "name" }}
{{ / gh-form-group }}
{{ # gh-form-group errors = errors property = "password" }}
2015-03-29 20:10:53 +02:00
<label for="password">Password</label>
<span class="input-icon icon-lock">
2015-08-03 09:14:39 +01:00
{{ gh-input type = "password" name = "password" enter = ( action "setup" ) placeholder = "At least 8 characters" class = "gh-input" autofocus = "autofocus" autocorrect = "off" value = password focusOut = ( action "validate" "password" ) }}
2015-03-29 20:10:53 +02:00
</span>
2015-06-06 22:19:19 -05:00
{{ gh-error-message errors = errors property = "password" }}
{{ / gh-form-group }}
{{ # gh-form-group errors = errors property = "blogTitle" }}
2015-03-29 20:10:53 +02:00
<label for="blog-title">Blog title</label>
<span class="input-icon icon-content">
2015-08-03 09:14:39 +01:00
{{ gh-input type = "text" name = "blog-title" enter = ( action "setup" ) placeholder = "Eg. The Daily Awesome" class = "gh-input" autofocus = "autofocus" autocorrect = "off" value = blogTitle focusOut = ( action "validate" "blogTitle" ) }}
2015-03-29 20:10:53 +02:00
</span>
2015-06-06 22:19:19 -05:00
{{ gh-error-message errors = errors property = "blogTitle" }}
{{ / gh-form-group }}
2015-03-29 20:10:53 +02:00
</form>
2015-08-10 09:43:49 -06:00
{{ # gh-spin-button type = "button" class = "btn btn-green btn-lg btn-block" action = "setup" submitting = submitting autoWidth = false }}
Last step: Invite your team <i class="icon-chevron"></i>
{{ / gh-spin-button }}
2015-07-16 15:12:03 +01:00
<p class="main-error"> {{ # if showError }} {{ in validMessage }} {{ / if }} </p>