Commit e0f6ced022e436ebfde1b2a85aefc0a557a1e025

Authored by Macieski
1 parent 6539d831
Exists in master

opçoes administração

Showing 1 changed file with 56 additions and 10 deletions   Show diff stats
wscacicneo/static/admin.js
1   -var painelContent=
2   - "Data da coleta" + "<br>" +
3   - "<br>" +
4   - "Configurar bot" + "<br>" +
5   - "<br>"+
6   - "Consertar data da coleta" + "<br>" +
7   - "<br>"+
8   - "Agrupar dados dos orgãos";
9   -
  1 +var painelContent=
  2 + Ext.create('Ext.tree.Panel', {
  3 + renderTo: Ext.getBody(),
  4 + title: 'Simple Tree',
  5 + root: {
  6 + text: 'Administração',
  7 + expanded: true,
  8 + children: [
  9 + {
  10 + text: 'Administração de Órgãos',
  11 + expanded: true,
  12 + children: [
  13 + {
  14 + text: 'Cadastrar Órgão',
  15 + leaf: true
  16 + },
  17 + {
  18 + text: 'Lista de Órgãos',
  19 + leaf: true
  20 + },
  21 + ]
  22 + },
  23 + {
  24 + text: 'Administrção de Usuário',
  25 + expanded: true,
  26 + children: [
  27 + {
  28 + text: 'Cadastro de Usuário',
  29 + leaf: true
  30 + },
  31 + {
  32 + text: 'Gestão de Usuário',
  33 + leaf: true
  34 + },
  35 + ]
  36 + },
  37 + {
  38 + text: 'Configurções do sistema',
  39 + expanded: true,
  40 + children: [
  41 + {
  42 + text: 'Configurações das Bases de dados',
  43 + leaf: true
  44 + },
  45 + {
  46 + text: 'Confirgurações da aplicação',
  47 + leaf: true
  48 + },
  49 + ]
  50 + },
  51 +
  52 + ]
  53 + }
  54 + });
  55 +
10 56 admin = Ext.create('Ext.panel.Panel', {
11 57 title: 'Painel de Administração',
12 58 width: '75%',
... ... @@ -18,7 +64,7 @@ admin = Ext.create(&#39;Ext.panel.Panel&#39;, {
18 64 style: {
19 65 margin: '0px auto 15px auto'
20 66 },
21   - html: painelContent
  67 + items: painelContent
22 68 });
23 69  
24 70 Ext.onReady(function(){
... ...