From 13fe3fb7f94709ee7d089e0dfb730483cd6343f0 Mon Sep 17 00:00:00 2001 From: adleywd Date: Wed, 1 Oct 2014 15:22:17 -0300 Subject: [PATCH] atualização do template e da views, referente aos formularios de cadastro manual --- wscacicneo/templates/cadastro_coleta.pt | 80 ++++++++++++++++++++++++++++++++++++++++++-------------------------------------- wscacicneo/views.py | 13 ++++++++++++- 2 files changed, 54 insertions(+), 39 deletions(-) diff --git a/wscacicneo/templates/cadastro_coleta.pt b/wscacicneo/templates/cadastro_coleta.pt index 61505d1..8e45da4 100644 --- a/wscacicneo/templates/cadastro_coleta.pt +++ b/wscacicneo/templates/cadastro_coleta.pt @@ -1,19 +1,33 @@ -
-
-

- +
+
Configuração
+
+
+ +
+ +
+
+
+ +
+
+ + + + +
+
+
+
+
+
Hard Disk
+
@@ -38,11 +52,10 @@
- -
-

- +
+
Sistema Operacional
+
@@ -61,13 +74,9 @@
- - - -
-
-
- +
+
BIOS
+
@@ -80,12 +89,11 @@
- -
-

- -
+
+
Memória
+
+
@@ -103,12 +111,11 @@
- -
-

- -
+
+
Processador
+
+
@@ -126,16 +133,13 @@
- +
+
-
- -
- diff --git a/wscacicneo/views.py b/wscacicneo/views.py index fde03a7..7b41fd2 100755 --- a/wscacicneo/views.py +++ b/wscacicneo/views.py @@ -565,4 +565,15 @@ def post_notify(request): @view_config(route_name='cadastro_coleta', renderer='templates/cadastro_coleta.pt') def cadastro_coleta(request): - return {'project': 'WSCacicNeo'} + orgao_obj = Orgao( + nome = 'sahuds', + cargo = 'cargo', + coleta = '4h', + sigla = 'MPOG', + endereco = 'Esplanada bloco C', + email = 'admin@planemaneto.gov.br', + telefone = '(61) 2025-4117', + url = 'http://api.brlight.net/api' + ) + search = orgao_obj.search_list_orgaos() + return {'orgao_doc': search.results} \ No newline at end of file -- libgit2 0.21.2