Add Tag handler. Also convert all tabs to spaces.
[blerg.git] / www / jssrc / blerg / SignupDialog.js
1 enyo.kind({
2     name: "blerg.SignupDialog",
3     kind: "onyx.Popup",
4     classes: "blerg-dialog",
5     autoDismiss: true,
6     centered: true,
7     floating: true,
8     modal: true,
9     components: [
10         {tag: "h2", content: "Sign Up"},
11         {kind: "onyx.Groupbox", components: [
12             {kind: "onyx.InputDecorator", components: [
13                 {name: "username", kind: "onyx.Input", placeholder: "Username"}
14             ]},
15             {kind: "onyx.InputDecorator", components: [
16                 {name: "password", kind: "onyx.Input", placeholder: "Password", type: "password"}
17             ]}
18         ]},
19         {kind: "onyx.Button", content: "Signup", onclick: "signupClick", classes: "onyx-affirmative"},
20         {kind: "onyx.Button", content: "Cancel", onclick: "cancelClick", classes: "onyx-negative"}
21     ],
22     signupClick: function() {
23         // Do stuff
24     },
25     cancelClick: function() {
26         this.hide();
27     }
28 });