4eed325579f62feb9b720f86754dc14ee7872ab9
[blerg.git] / www / jssrc / blerg / PasswdDialog.js
1 enyo.kind({
2         name: "blerg.PasswdDialog",
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: "password1", kind: "onyx.Input", placeholder: "Username", type: "password"}
14                         ]},
15                         {kind: "onyx.InputDecorator", components: [
16                                 {name: "password2", kind: "onyx.Input", placeholder: "Password", type: "password"}
17                         ]}
18                 ]},
19                 {kind: "onyx.Button", content: "Change", onclick: "changeClick", classes: "onyx.affirmative"},
20                 {kind: "onyx.Button", content: "Cancel", onclick: "cancelClick", classes: "onyx-negative"}
21         ],
22         changeClick: function() {
23                 // Do stuff
24         },
25         cancelClick: function() {
26                 this.hide();
27         }
28 });