From 60571493e2170ae9d93af9b10f396ddfca3c481d Mon Sep 17 00:00:00 2001 From: Guilherme Gondim Date: Tue, 15 Dec 2009 17:22:02 +0000 Subject: [PATCH] Adicionando fixtures para menu. --- sigi/fixtures/treemenus.json | 442 +++++++++++++++++++++++++++++++++++ 1 file changed, 442 insertions(+) create mode 100644 sigi/fixtures/treemenus.json diff --git a/sigi/fixtures/treemenus.json b/sigi/fixtures/treemenus.json new file mode 100644 index 0000000..8bd9e9c --- /dev/null +++ b/sigi/fixtures/treemenus.json @@ -0,0 +1,442 @@ +[ + { + "pk": 1, + "model": "treemenus.menuitem", + "fields": { + "parent": null, + "level": 0, + "url": "", + "menu": 1, + "rank": 0, + "caption": "Root", + "named_url": "" + } + }, + { + "pk": 2, + "model": "treemenus.menuitem", + "fields": { + "parent": 1, + "level": 1, + "url": "/", + "menu": 1, + "rank": 0, + "caption": "Dashboard", + "named_url": "" + } + }, + { + "pk": 3, + "model": "treemenus.menuitem", + "fields": { + "parent": 1, + "level": 1, + "url": "/casas/casalegislativa/", + "menu": 1, + "rank": 2, + "caption": "Casas Legislativas", + "named_url": "" + } + }, + { + "pk": 4, + "model": "treemenus.menuitem", + "fields": { + "parent": 1, + "level": 1, + "url": "/parlamentares/parlamentar/", + "menu": 1, + "rank": 3, + "caption": "Parlamentares", + "named_url": "" + } + }, + { + "pk": 5, + "model": "treemenus.menuitem", + "fields": { + "parent": 4, + "level": 2, + "url": "/parlamentares/parlamentar/", + "menu": 1, + "rank": 0, + "caption": "Parlamentares", + "named_url": "" + } + }, + { + "pk": 6, + "model": "treemenus.menuitem", + "fields": { + "parent": 4, + "level": 2, + "url": "/parlamentares/partido/", + "menu": 1, + "rank": 1, + "caption": "Partidos", + "named_url": "" + } + }, + { + "pk": 7, + "model": "treemenus.menuitem", + "fields": { + "parent": 1, + "level": 1, + "url": "/mesas/mesadiretora/", + "menu": 1, + "rank": 4, + "caption": "Mesas Diretoras", + "named_url": "" + } + }, + { + "pk": 8, + "model": "treemenus.menuitem", + "fields": { + "parent": 7, + "level": 2, + "url": "/mesas/mesadiretora/", + "menu": 1, + "rank": 0, + "caption": "Mesas Diretoras", + "named_url": "" + } + }, + { + "pk": 9, + "model": "treemenus.menuitem", + "fields": { + "parent": 7, + "level": 2, + "url": "/mesas/cargo/", + "menu": 1, + "rank": 1, + "caption": "Cargos", + "named_url": "" + } + }, + { + "pk": 10, + "model": "treemenus.menuitem", + "fields": { + "parent": 7, + "level": 2, + "url": "/mesas/coligacao/", + "menu": 1, + "rank": 2, + "caption": "Coliga\u00e7\u00f5es", + "named_url": "" + } + }, + { + "pk": 11, + "model": "treemenus.menuitem", + "fields": { + "parent": 7, + "level": 2, + "url": "/mesas/composicaocoligacao/", + "menu": 1, + "rank": 3, + "caption": "Composi\u00e7\u00f5es das coliga\u00e7\u00f5es", + "named_url": "" + } + }, + { + "pk": 12, + "model": "treemenus.menuitem", + "fields": { + "parent": 7, + "level": 2, + "url": "/mesas/legislatura/", + "menu": 1, + "rank": 4, + "caption": "Legislaturas", + "named_url": "" + } + }, + { + "pk": 13, + "model": "treemenus.menuitem", + "fields": { + "parent": 7, + "level": 2, + "url": "/mesas/sessaolegislativa/", + "menu": 1, + "rank": 5, + "caption": "Sess\u00f5es Legilastivas", + "named_url": "" + } + }, + { + "pk": 14, + "model": "treemenus.menuitem", + "fields": { + "parent": 1, + "level": 1, + "url": "/convenios/convenio/", + "menu": 1, + "rank": 5, + "caption": "Conv\u00eanios", + "named_url": "" + } + }, + { + "pk": 15, + "model": "treemenus.menuitem", + "fields": { + "parent": 1, + "level": 1, + "url": "/servicos/servico/", + "menu": 1, + "rank": 6, + "caption": "Servi\u00e7os", + "named_url": "" + } + }, + { + "pk": 16, + "model": "treemenus.menuitem", + "fields": { + "parent": 1, + "level": 1, + "url": "#", + "menu": 1, + "rank": 7, + "caption": "Invent\u00e1rio", + "named_url": "" + } + }, + { + "pk": 17, + "model": "treemenus.menuitem", + "fields": { + "parent": 16, + "level": 2, + "url": "/inventario/bem/", + "menu": 1, + "rank": 0, + "caption": "Bens", + "named_url": "" + } + }, + { + "pk": 18, + "model": "treemenus.menuitem", + "fields": { + "parent": 16, + "level": 2, + "url": "/inventario/equipamento/", + "menu": 1, + "rank": 1, + "caption": "Equipamentos", + "named_url": "" + } + }, + { + "pk": 19, + "model": "treemenus.menuitem", + "fields": { + "parent": 16, + "level": 2, + "url": "/inventario/fabricante/", + "menu": 1, + "rank": 2, + "caption": "Fabricantes", + "named_url": "" + } + }, + { + "pk": 20, + "model": "treemenus.menuitem", + "fields": { + "parent": 16, + "level": 2, + "url": "/inventario/fornecedor/", + "menu": 1, + "rank": 4, + "caption": "Fornecedores", + "named_url": "" + } + }, + { + "pk": 21, + "model": "treemenus.menuitem", + "fields": { + "parent": 16, + "level": 2, + "url": "/inventario/modeloequipamento/", + "menu": 1, + "rank": 5, + "caption": "Modelos de equipamentos", + "named_url": "" + } + }, + { + "pk": 22, + "model": "treemenus.menuitem", + "fields": { + "parent": 16, + "level": 2, + "url": "/inventario/tipoequipamento/", + "menu": 1, + "rank": 3, + "caption": "Tipos de equipamentos", + "named_url": "" + } + }, + { + "pk": 23, + "model": "treemenus.menuitem", + "fields": { + "parent": 1, + "level": 1, + "url": "/contatos/municipio/", + "menu": 1, + "rank": 1, + "caption": "Munic\u00edpios", + "named_url": "" + } + }, + { + "pk": 24, + "model": "treemenus.menuitem", + "fields": { + "parent": 23, + "level": 2, + "url": "/contatos/municipio/", + "menu": 1, + "rank": 0, + "caption": "Munic\u00edpios", + "named_url": "" + } + }, + { + "pk": 25, + "model": "treemenus.menuitem", + "fields": { + "parent": 23, + "level": 2, + "url": "/contatos/unidadefederativa/", + "menu": 1, + "rank": 1, + "caption": "Unidades Federativas", + "named_url": "" + } + }, + { + "pk": 26, + "model": "treemenus.menuitem", + "fields": { + "parent": null, + "level": 0, + "url": "", + "menu": 2, + "rank": 0, + "caption": "Root", + "named_url": "" + } + }, + { + "pk": 27, + "model": "treemenus.menuitem", + "fields": { + "parent": null, + "level": 0, + "url": "", + "menu": 3, + "rank": 0, + "caption": "Root", + "named_url": "" + } + }, + { + "pk": 28, + "model": "treemenus.menuitem", + "fields": { + "parent": 26, + "level": 1, + "url": "/password_change/", + "menu": 2, + "rank": 0, + "caption": "Alterar senha", + "named_url": "" + } + }, + { + "pk": 29, + "model": "treemenus.menuitem", + "fields": { + "parent": 26, + "level": 1, + "url": "/logout/", + "menu": 2, + "rank": 1, + "caption": "Encerrar sess\u00e3o", + "named_url": "" + } + }, + { + "pk": 30, + "model": "treemenus.menuitem", + "fields": { + "parent": 27, + "level": 1, + "url": "/auth/", + "menu": 3, + "rank": 0, + "caption": "Usu\u00e1rios & Grupos", + "named_url": "" + } + }, + { + "pk": 31, + "model": "treemenus.menuitem", + "fields": { + "parent": 27, + "level": 1, + "url": "/treemenus/menu/", + "menu": 3, + "rank": 1, + "caption": "Menus", + "named_url": "" + } + }, + { + "pk": 32, + "model": "treemenus.menuitem", + "fields": { + "parent": 27, + "level": 1, + "url": "/sites/site/", + "menu": 3, + "rank": 2, + "caption": "Sites", + "named_url": "" + } + }, + { + "pk": 1, + "model": "treemenus.menu", + "fields": { + "root_item": 1, + "name": "Barra de navega\u00e7\u00e3o" + } + }, + { + "pk": 2, + "model": "treemenus.menu", + "fields": { + "root_item": 26, + "name": "Usu\u00e1rio" + } + }, + { + "pk": 3, + "model": "treemenus.menu", + "fields": { + "root_item": 27, + "name": "Administrador" + } + } +]