Commit e096fd0343be5e2ea63e36b88bb269abcbae7095
1 parent
db479d95
Exists in
master
notificações tela
Showing
3 changed files
with
49 additions
and
0 deletions
Show diff stats
wscacicneo/__init__.py
| ... | ... | @@ -57,6 +57,9 @@ def main(global_config, **settings): |
| 57 | 57 | config.add_route('listuser', 'usuario/lista') |
| 58 | 58 | config.add_route('delete_user', 'usuario/delete/{matricula}') |
| 59 | 59 | # |
| 60 | + #Coleta | |
| 61 | + config.add_route('notify_coleta', 'coleta/notificacao') | |
| 62 | + # | |
| 60 | 63 | config.add_route('list', 'list') |
| 61 | 64 | config.add_route('gestao', 'gestao') |
| 62 | 65 | config.add_route('memoria', 'memoria') | ... | ... |
| ... | ... | @@ -0,0 +1,42 @@ |
| 1 | +<metal:main use-macro="load: master.pt"> | |
| 2 | + <metal:content fill-slot="conteudo"> | |
| 3 | + <div class="widget wgreen"> | |
| 4 | + <div class="widget-content"> | |
| 5 | + <div class="padd"> | |
| 6 | + <form class="form-horizontal" role="form"> | |
| 7 | + <div class="form-group"> | |
| 8 | + <label class="col-lg-2 control-label">Ministério</label> | |
| 9 | + <div class="col-lg-5"> | |
| 10 | + <input type="text" id="ministerio" class="form-control" placeholder="Ministério"> | |
| 11 | + </div> | |
| 12 | + </div> | |
| 13 | + <div class="form-group"> | |
| 14 | + <label class="col-lg-2 control-label">ID da Coleta</label> | |
| 15 | + <div class="col-lg-5"> | |
| 16 | + <input type="password" id="id_coleta" class="form-control" placeholder="ID"> | |
| 17 | + </div> | |
| 18 | + </div> | |
| 19 | + <div class="form-group"> | |
| 20 | + <label class="col-lg-2 control-label">Notificação</label> | |
| 21 | + <div class="col-lg-5"> | |
| 22 | + <textarea class="form-control" id="notify" rows="5" placeholder="Conteudo" style="margin: 0px -57.671875px 0px 0px; width: 423px; height: 104px;"></textarea> | |
| 23 | + </div> | |
| 24 | + </div> | |
| 25 | + <div class="form-group"> | |
| 26 | + <div class="col-lg-offset-2 col-lg-6"> | |
| 27 | + <button type="button" id="enviar" class="btn btn-sm btn-default">Enviar</button> | |
| 28 | + <button type="button" class="btn btn-sm btn-default">Cancelar</button> | |
| 29 | + </div> | |
| 30 | + </div> | |
| 31 | + </form> | |
| 32 | + </div> | |
| 33 | + </div> | |
| 34 | + </div> | |
| 35 | + </metal:content> | |
| 36 | + <metal:content fill-slot="javascript"> | |
| 37 | + <script type="text/javascript"> | |
| 38 | + $('#enviar').click(function(){ | |
| 39 | + }); | |
| 40 | + </script> | |
| 41 | + </metal:content> | |
| 42 | +</metal:main> | ... | ... |
wscacicneo/views.py
| ... | ... | @@ -89,6 +89,10 @@ def login(request): |
| 89 | 89 | def orgao(request): |
| 90 | 90 | return {'project': 'WSCacicNeo'} |
| 91 | 91 | |
| 92 | +@view_config(route_name='notify_coleta', renderer='templates/notify_coleta.pt') | |
| 93 | +def notify_coleta(request): | |
| 94 | + return {'project': 'WSCacicNeo'} | |
| 95 | + | |
| 92 | 96 | @view_config(route_name='listorgao', renderer='templates/list_orgao.pt') |
| 93 | 97 | def listorgao(request): |
| 94 | 98 | orgao_obj = Orgao( | ... | ... |