Created
July 31, 2019 22:39
-
-
Save planetoftheweb/b82770c7a1c315ffed9ef004c5e9dedd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div> | |
<form | |
class="mt-3" | |
@submit.prevent="register" | |
> | |
<div class="container"> | |
<div class="row justify-content-center"> | |
<div class="col-lg-8"> | |
<div class="card bg-light"> | |
<div class="card-body"> | |
<h3 class="font-weight-light mb-3">Register</h3> | |
<div class="form-row"> | |
<div | |
v-if="error" | |
class="col-12 alert alert-danger px-3" | |
> | |
{{ error }} | |
</div> | |
<section class="col-sm-12 form-group"> | |
<label | |
class="form-control-label sr-only" | |
for="displayName" | |
>Display Name</label> | |
<input | |
class="form-control" | |
type="text" | |
id="displayName" | |
placeholder="Display Name" | |
name="displayName" | |
required | |
v-model="displayName" | |
/> | |
</section> | |
</div> | |
<section class="form-group"> | |
<label | |
class="form-control-label sr-only" | |
for="email" | |
>Email</label> | |
<input | |
class="form-control" | |
type="email" | |
id="email" | |
placeholder="Email Address" | |
required | |
name="email" | |
v-model="email" | |
/> | |
</section> | |
<div class="form-row"> | |
<section class="col-sm-6 form-group"> | |
<input | |
class="form-control" | |
type="password" | |
placeholder="Password" | |
v-model="passOne" | |
/> | |
</section> | |
<section class="col-sm-6 form-group"> | |
<input | |
class="form-control" | |
type="password" | |
required | |
placeholder="Repeat Password" | |
v-model="passTwo" | |
/> | |
</section> | |
</div> | |
<div class="form-group text-right mb-0"> | |
<button | |
class="btn btn-primary" | |
type="submit" | |
> | |
Register | |
</button> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</form> | |
<p class="text-center mt-2"> | |
or | |
<router-link to="/login">login</router-link> | |
</p> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment