]>
Commit | Line | Data |
---|---|---|
6527f429 DM |
1 | Ext.define('SimpleTasks.view.tasks.Form', {\r |
2 | extend: 'Ext.form.Panel',\r | |
3 | xtype: 'taskForm',\r | |
4 | requires: [\r | |
5 | 'Ext.layout.container.HBox',\r | |
6 | 'Ext.form.field.Date',\r | |
7 | 'Ext.ux.TreePicker'\r | |
8 | ],\r | |
9 | layout: 'hbox',\r | |
10 | cls: 'tasks-new-form',\r | |
11 | \r | |
12 | initComponent: function() {\r | |
13 | this.items = [\r | |
14 | {\r | |
15 | xtype: 'component',\r | |
16 | cls: 'tasks-new',\r | |
17 | width: 24,\r | |
18 | height: 24\r | |
19 | },\r | |
20 | {\r | |
21 | xtype: 'textfield',\r | |
22 | name: 'title',\r | |
23 | emptyText: 'Add a new task'\r | |
24 | },\r | |
25 | {\r | |
26 | xtype: 'treepicker',\r | |
27 | name: 'list_id',\r | |
28 | displayField: 'name',\r | |
29 | store: Ext.create('SimpleTasks.store.Lists', {storeId: 'Lists-TaskForm'}),\r | |
30 | width: 195\r | |
31 | },\r | |
32 | {\r | |
33 | xtype: 'datefield',\r | |
34 | name: 'due',\r | |
35 | value: new Date(),\r | |
36 | width: 95\r | |
37 | }\r | |
38 | ];\r | |
39 | \r | |
40 | this.callParent(arguments);\r | |
41 | }\r | |
42 | \r | |
43 | }); |