Skip to content

Commit

Permalink
register form + router
Browse files Browse the repository at this point in the history
  • Loading branch information
beczkowb committed Feb 23, 2017
1 parent 9b3a13c commit d1704a0
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 4 deletions.
4 changes: 4 additions & 0 deletions openchat/app/components/register-form.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import Ember from 'ember';

export default Ember.Component.extend({
});
1 change: 1 addition & 0 deletions openchat/app/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const Router = Ember.Router.extend({
});

Router.map(function() {
this.route('register');
});

export default Router;
4 changes: 4 additions & 0 deletions openchat/app/routes/register.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import Ember from 'ember';

export default Ember.Route.extend({
});
4 changes: 0 additions & 4 deletions openchat/app/templates/application.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
{{!-- The following component displays Ember's default welcome message. --}}
{{welcome-page}}
{{!-- Feel free to remove this! --}}

{{outlet}}
7 changes: 7 additions & 0 deletions openchat/app/templates/components/register-form.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<form>
{{input type="text" value=username}}
{{input type="text" value=email}}
{{input type="password" value=password}}
{{input type="password" value=confirmPassword}}
<button type="submit">register</button>
</form>
1 change: 1 addition & 0 deletions openchat/app/templates/register.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{register-form}}

0 comments on commit d1704a0

Please sign in to comment.