more missing files
[L-seed.git] / web / php / page / season.pg
1 {
2         id: 'ContentPanel_season'
3         ,closable: true
4         ,style: 'padding: 5px;'
5         ,title: 'Aktuelle Staffel'
6         ,layout: 'fit'
7         ,items: [{
8                 id: "seasonlistgrid"
9                 ,title: "Mein Pflanzen"
10                 ,xtype: 'grid'
11                 ,autoExpandColumn: 'User'
12                 ,view: new Ext.grid.GroupingView({
13                         markDirty: false  
14                 })
15                 ,tbar: [{
16                         id: 'seasonlistRefresh'
17                         ,text: 'Refresh'
18                         ,icon: 'img/icons/arrow_refresh.png'
19                         ,cls: 'x-btn-text-icon'
20                         ,handler: communication.GetSeasonList.createDelegate(communication)
21                 }]
22                 ,store: new Ext.data.GroupingStore({
23                         reader: new Ext.data.JsonReader({fields: Lseed.Season})
24                         ,sortInfo: {field: 'User', direction: 'ASC'}
25                         ,data: []
26                 })
27                 ,columns: [
28                         new Ext.grid.RowNumberer()
29                         ,{
30                                 id: 'ID'
31                                 ,header: 'ID'
32                                 ,width: 200
33                                 ,sortable: true
34                                 ,dataIndex: 'ID'
35                         },{
36                                 id: 'User'
37                                 ,header: 'User'
38                                 ,width: 200
39                                 ,sortable: true
40                                 ,dataIndex: 'User'
41                         },{
42                                 id: 'IsRunning'
43                                 ,header: 'IsRunning'
44                                 ,width: 200
45                                 ,sortable: true
46                                 ,dataIndex: 'IsRunning'
47                         },{
48                                 id: 'Score'
49                                 ,header: 'Score'
50                                 ,width: 200
51                                 ,sortable: true
52                                 ,dataIndex: 'Score'
53                         }
54                 ]
55                 ,sm: new Ext.grid.RowSelectionModel({
56                         singleSelect:true
57                         ,listeners: {
58                                 rowselect: function() {
59                                 }
60                                 ,rowdeselect: function() {
61                                 }
62                         }
63                 })
64         }]
65 }