Commit 3eab2f683564d1cf6a8acb6759ec9a1688b36065
1 parent
ec4acf5f
Exists in
master
pagina notificações
Showing
2 changed files
with
58 additions
and
59 deletions
Show diff stats
wscacicneo/static/dashboard.js
1 | +// **** FILTRO DE ITENS **** | |
2 | + | |
3 | +Ext.define('User1',{ | |
4 | + extend: 'Ext.data.Model', | |
5 | + fields: ['chbox', 'item' ] | |
6 | +}); | |
7 | + | |
8 | +var userStore1 = Ext.create('Ext.data.Store', { | |
9 | + model: 'User1', | |
10 | + data: [ | |
11 | + { item: 'Coletas 1120, 1131, 1149, estão desatualizadas'}, | |
12 | + { item: 'Coleta 1123, Incorreta Numero de computadores inconsistente'}, | |
13 | + { item: 'Coleta não efetuada: coleta 1151 está atualizada'}, | |
14 | + ] | |
15 | +}); | |
16 | + | |
17 | +table1 = Ext.create('Ext.grid.Panel', { | |
18 | + store: userStore1, | |
19 | + width: 400, | |
20 | + height: 200, | |
21 | + // title: 'Application Users', | |
22 | + columns: [ | |
23 | + { | |
24 | + text: 'Item', | |
25 | + width: 500, | |
26 | + sortable: true, | |
27 | + hideable: false, | |
28 | + dataIndex: 'item' | |
29 | + }, | |
30 | + ] | |
31 | +}); | |
32 | + | |
33 | +tabela1 = Ext.create('Ext.panel.Panel', { | |
34 | + layout: 'fit', | |
35 | + title: 'Notificações', | |
36 | + width: '75%', | |
37 | + frame: true, | |
38 | + draggable: true, | |
39 | + collapsible: true, | |
40 | + border : true, | |
41 | + style: { | |
42 | + "text-align": 'center', | |
43 | + margin: '0px auto 15px auto' | |
44 | + }, | |
45 | + items: table1, | |
46 | +}); | |
47 | + | |
1 | 48 | Ext.onReady(function(){ |
2 | 49 | |
3 | - Ext.create('Ext.Panel', { | |
4 | - layout: 'fit', | |
5 | - height: '150px', | |
6 | - style: {margin: '15px'}, | |
7 | - frame: true, | |
8 | - draggable: true, | |
9 | - title: 'menu1', | |
10 | - titleAlign: 'center', | |
11 | - renderTo: 'g1' | |
12 | - }); | |
13 | - | |
14 | - Ext.create('Ext.Panel', { | |
15 | - layout: 'fit', | |
16 | - style: {margin: '15px'}, | |
17 | - height: '150px', | |
18 | - frame: true, | |
19 | - draggable: true, | |
20 | - title: 'menu2', | |
21 | - titleAlign: 'center', | |
22 | - renderTo: 'g2' | |
23 | - }); | |
24 | - | |
25 | - Ext.create('Ext.Panel', { | |
26 | - layout: 'fit', | |
27 | - style: {margin: '15px'}, | |
28 | - height: '150px', | |
29 | - frame: true, | |
30 | - draggable: true, | |
31 | - title: 'menu3', | |
32 | - titleAlign: 'center', | |
33 | - renderTo: 'g1' | |
34 | - }); | |
35 | - | |
36 | - Ext.create('Ext.Panel', { | |
37 | - layout: 'fit', | |
38 | - style: {margin: '15px'}, | |
39 | - height: '150px', | |
40 | - frame: true, | |
41 | - draggable: true, | |
42 | - title: 'menu4', | |
43 | - titleAlign: 'center', | |
44 | - renderTo: 'g2' | |
45 | - }); | |
46 | - | |
47 | - Ext.create('Ext.Panel', { | |
48 | - layout: 'fit', | |
49 | - style: {margin: '15px'}, | |
50 | - height: '150px', | |
51 | - frame: true, | |
52 | - draggable: true, | |
53 | - title: 'menu5', | |
54 | - titleAlign: 'center', | |
55 | - renderTo: 'g3' | |
56 | - }); | |
50 | + | |
51 | + Ext.create('Ext.Container', { | |
52 | + padding:'15px', | |
53 | + items: [tabela1], | |
54 | + renderTo: 'widgets' | |
55 | + }); | |
57 | 56 | |
58 | 57 | }); |
58 | + | ... | ... |
wscacicneo/templates/dashboard.pt
... | ... | @@ -3,13 +3,12 @@ |
3 | 3 | <script metal:fill-slot="javascript" type="text/javascript" src="static/dashboard.js"></script> |
4 | 4 | <LINK metal:fill-slot="css" href="static/dashboard.css" type="text/css" rel="stylesheet"> |
5 | 5 | |
6 | - <div metal:fill-slot="conteudo" id="widgets"> | |
6 | + | |
7 | +<div metal:fill-slot="conteudo" id="widgets"> | |
7 | 8 | |
8 | 9 | <div id="panels"> |
9 | - <div id="g1"></div> | |
10 | - <div id="g2"></div> | |
11 | - <div id="g3"></div> | |
10 | +<div id="g1"></div> | |
12 | 11 | </div> |
13 | 12 | |
14 | - </div> | |
13 | +</div> | |
15 | 14 | </metal:main> | ... | ... |