-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sign-in and Sign-up with Polymer en form-event
- Loading branch information
Showing
9 changed files
with
114 additions
and
85 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,28 @@ | ||
<template name="SignIn"> | ||
<div style="width: 100%;" layout horizontal center center-justified > | ||
<form data-action="sign-in"> | ||
<paper-input-decorator label="Username" error="We need a valid username!" | ||
floatingLabel class="input-light"> | ||
<input is="core-input" id="username" type="text" required> | ||
</paper-input-decorator> | ||
<div class="content" layout horizontal center-justified> | ||
<paper-shadow z="1" class="single-form"> | ||
<div> | ||
<h2>Sign in Teamwork</h2> | ||
<event-form-container> | ||
<event-form> | ||
<paper-input-decorator label="Username" error="We need a valid username!" | ||
floatingLabel class="input-light"> | ||
<input is="core-input" name="username" id="username" type="text" required> | ||
</paper-input-decorator> | ||
|
||
<paper-input-decorator label="Password" error="Whats your password?" | ||
floatingLabel class="input-light"> | ||
<input is="core-input" id="password" type="password" required> | ||
</paper-input-decorator> | ||
<paper-input-decorator label="Password" error="Whats your password?" | ||
floatingLabel class="input-light"> | ||
<input is="core-input" name="password" id="password" type="password" required> | ||
</paper-input-decorator> | ||
</event-form> | ||
|
||
<div horizontal layout reverse> | ||
<paper-button id="sign-in-btn" type="submit"> | ||
<core-icon icon="check"></core-icon> | ||
Sign In | ||
</paper-button> | ||
<event-paper-button affirmative eventName="sign-in" id="sign-in-btn"> | ||
<core-icon icon="check"></core-icon> | ||
Sign In | ||
</event-paper-button> | ||
|
||
</event-form-container> | ||
</div> | ||
</form> | ||
</paper-shadow> | ||
</div> | ||
</template> |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,37 @@ | ||
<template name="SignUp"> | ||
<div style="width: 100%;" layout horizontal center center-justified > | ||
<form data-action="sign-up"> | ||
<paper-input-decorator label="Username" error="We need a username" | ||
floatingLabel class="input-light"> | ||
<input is="core-input" id="username" type="text" required> | ||
</paper-input-decorator> | ||
<div class="content" layout horizontal center-justified> | ||
<paper-shadow z="1" class="single-form"> | ||
<div> | ||
<h2>Sign up for Teamwork</h2> | ||
<event-form-container> | ||
<event-form> | ||
<paper-input-decorator label="Username" error="We need a username" | ||
floatingLabel class="input-light"> | ||
<input is="core-input" name="username" id="username" type="text" required> | ||
</paper-input-decorator> | ||
|
||
<paper-input-decorator label="Email Address" error="We need a valid email!" | ||
floatingLabel class="input-light"> | ||
<input is="core-input" id="email" type="email" required> | ||
</paper-input-decorator> | ||
<paper-input-decorator label="Email Address" error="We need a valid email!" | ||
floatingLabel class="input-light"> | ||
<input is="core-input" name="email" id="email" type="email" required> | ||
</paper-input-decorator> | ||
|
||
<paper-input-decorator label="Password" error="Whats your password?" | ||
floatingLabel class="input-light"> | ||
<input is="core-input" id="password" type="password" required> | ||
</paper-input-decorator> | ||
<paper-input-decorator label="Password" error="Whats your password?" | ||
floatingLabel class="input-light"> | ||
<input is="core-input" name="password" id="password" type="password" required> | ||
</paper-input-decorator> | ||
|
||
<paper-input-decorator label="Confirm password" error="Whats your password?" | ||
floatingLabel class="input-light"> | ||
<input is="core-input" id="password2" type="password" required> | ||
</paper-input-decorator> | ||
<paper-input-decorator label="Confirm password" error="Whats your password?" | ||
floatingLabel class="input-light"> | ||
<input is="core-input" name="password2" id="password2" type="password" required> | ||
</paper-input-decorator> | ||
</event-form> | ||
|
||
<div horizontal layout reverse> | ||
<paper-button id="sign-up-btn"> | ||
<core-icon icon="check"></core-icon> | ||
Sign Up | ||
</paper-button> | ||
<event-paper-button affirmative eventName="sign-up" id="sign-up-btn"> | ||
<core-icon icon="check"></core-icon> | ||
Sign Up | ||
</event-paper-button> | ||
</event-form-container> | ||
</div> | ||
</form> | ||
</paper-shadow> | ||
</div> | ||
</template> |
This file contains 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