Fix #6593 - time picker tester
[roojs1] / examples / bootstrap4 / timefield.js
1 //<script type="text/javascript">
2
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
4
5 Roo.namespace('Pman.Dialog');
6
7 Pman.Dialog.FilesAdminScanStart= function() {}
8 Roo.apply(Pman.Dialog.FilesAdminScanStart.prototype, {
9
10  _strings : {
11   '664b13315c97047b2ba2a1ac2375e0ce' :"Start time",
12   '3ec365dd533ddb7ef3d1c111186ce872' :"Details",
13   'ea4788705e6873b424c65e91c2846b19' :"Cancel",
14   '88602943970a852a901d21413eb56b77' :"Start Point",
15   '6115a2dde66284418135be075fefcf27' :"Edit Start Point of Scan",
16   '4d3d769b812b6faa6b76e1a8abaece2d' :"Active",
17   'c9cc8cce247e49bae79f15173ce97354' :"Save"
18  },
19
20  dialog : false,
21  callback:  false,
22
23  show : function(data, cb)
24  {
25   if (!this.dialog) {
26    this.create();
27   }
28
29   this.callback = cb;
30   this.data = data;
31   this.dialog.show(this.data._el);
32   if (this.form) {
33    this.form.reset();
34    this.form.setValues(data);
35    this.form.fireEvent('actioncomplete', this.form,  { type: 'setdata', data: data });
36   }
37
38  },
39
40  create : function()
41  {
42   var _this = this;
43   this.dialog = Roo.factory({
44     xtype : 'Modal',
45     fitwindow : false,
46     max_width : 1000,
47     size : 'lg',
48     title : _this._strings['6115a2dde66284418135be075fefcf27'] /* Edit Start Point of Scan */,
49     listeners : {
50      show : function (_self)
51       {
52           _this.dialog.items[0].getRegion('center').showPanel(0);
53       }
54     },
55     xns : Roo.bootstrap,
56     '|xns' : 'Roo.bootstrap',
57     items  : [
58      {
59       xtype : 'Border',
60       xns : Roo.bootstrap.layout,
61       '|xns' : 'Roo.bootstrap.layout',
62       center : {
63        xtype : 'Region',
64        xns : Roo.bootstrap.layout,
65        '|xns' : 'Roo.bootstrap.layout'
66       },
67       items  : [
68        {
69         xtype : 'Content',
70         autoScroll : true,
71         fitContainer : true,
72         fitToFrame : true,
73         region : 'center',
74         title : _this._strings['3ec365dd533ddb7ef3d1c111186ce872'] /* Details */,
75         xns : Roo.bootstrap.panel,
76         '|xns' : 'Roo.bootstrap.panel',
77         items  : [
78          {
79           xtype : 'Container',
80           cls : 'py-5',
81           xns : Roo.bootstrap,
82           '|xns' : 'Roo.bootstrap',
83           items  : [
84            {
85             xtype : 'Form',
86             cls : 'px-5',
87             xns : Roo.bootstrap,
88             '|xns' : 'Roo.bootstrap',
89             items  : [
90              {
91               xtype : 'Input',
92               fieldLabel : _this._strings['88602943970a852a901d21413eb56b77'] /* Start Point */,
93               labelsm : 2,
94               sm : 8,
95               xns : Roo.bootstrap,
96               '|xns' : 'Roo.bootstrap'
97              },
98              {
99               xtype : 'CheckBox',
100               boxLabel : _this._strings['4d3d769b812b6faa6b76e1a8abaece2d'] /* Active */,
101               labelAlign : 'left',
102               labelsm : 2,
103               xns : Roo.bootstrap,
104               '|xns' : 'Roo.bootstrap'
105              },
106              {
107               xtype : 'TimeField',
108               fieldLabel : _this._strings['664b13315c97047b2ba2a1ac2375e0ce'] /* Start time */,
109               xns : Roo.bootstrap,
110               '|xns' : 'Roo.bootstrap'
111              }
112             ]
113            }
114           ]
115          }
116         ]
117        }
118       ]
119      },
120      {
121       xtype : 'Button',
122       container_method : 'getButtonContainer',
123       html : _this._strings['ea4788705e6873b424c65e91c2846b19'] /* Cancel */,
124       listeners : {
125        click : function (btn, e)
126         {
127             _this.dialog.hide();
128         }
129       },
130       xns : Roo.bootstrap,
131       '|xns' : 'Roo.bootstrap'
132      },
133      {
134       xtype : 'Button',
135       container_method : 'getButtonContainer',
136       html : _this._strings['c9cc8cce247e49bae79f15173ce97354'] /* Save */,
137       weight : 'primary',
138       listeners : {
139        click : function (btn, e)
140         {
141             Pman.Dialog.FilesAdminDocument.show({});
142         }
143       },
144       xns : Roo.bootstrap,
145       '|xns' : 'Roo.bootstrap'
146      }
147     ]
148    }  );
149  }
150 });
151 Roo.apply(Pman.Dialog.FilesAdminScanStart, Pman.Dialog.FilesAdminScanStart.prototype);