Browse Source

Ajeita layout habilitar_detail, troca url da logo e muda campos da listagem de solicitações

pull/6/head
Eduardo Edson Batista Cordeiro Alves 9 years ago
committed by Luciano Almeida
parent
commit
390661f20c
  1. 5
      sigi/apps/solicitacoes/views.py
  2. 2
      templates/base.html
  3. 6
      templates/usuarios/habilitar_detail.html

5
sigi/apps/solicitacoes/views.py

@ -4,7 +4,7 @@ import random
from django.contrib.auth.mixins import LoginRequiredMixin from django.contrib.auth.mixins import LoginRequiredMixin
import sigi.apps.crud.base import sigi.apps.crud.base
from sigi.apps.crud.base import Crud, CrudCreateView, CrudListView, CrudCreateView, CrudUpdateView from sigi.apps.crud.base import Crud, CrudCreateView, CrudListView, CrudCreateView, CrudUpdateView, CrudBaseMixin
from sigi.apps.usuarios.models import Usuario from sigi.apps.usuarios.models import Usuario
from .forms import SistemaForm, SolicitacaoEditForm, SolicitacaoForm from .forms import SistemaForm, SolicitacaoEditForm, SolicitacaoForm
@ -41,6 +41,9 @@ class SolicitacaoCrud(LoginRequiredMixin, Crud):
def layout_key(self): def layout_key(self):
return u'SolicitacaoList' return u'SolicitacaoList'
class BaseMixin(CrudBaseMixin):
list_field_names = [u'codigo', u'sistema', u'titulo', u'data_criacao']
class SistemaCrud(Crud): class SistemaCrud(Crud):
model = Sistema model = Sistema

2
templates/base.html

@ -56,7 +56,7 @@
<header class="masthead"> <header class="masthead">
<div class="container"> <div class="container">
<div class="navbar-header"> <div class="navbar-header">
<a href="/"> <a href="/home/atendimento">
<img align="left" height="120" width="120" src="{% static 'img/img_atendimento/logo.png' %}" alt="Logo" class="img-responsive visible-lg-inline-block vcenter" > <img align="left" height="120" width="120" src="{% static 'img/img_atendimento/logo.png' %}" alt="Logo" class="img-responsive visible-lg-inline-block vcenter" >
<span class="vcenter" style="display:inline-block; color:black;" align="right"> <span class="vcenter" style="display:inline-block; color:black;" align="right">
<h2>Interlegis</h4><small><p>Sistema de Solicitação de Serviços</p></small> <h2>Interlegis</h4><small><p>Sistema de Solicitação de Serviços</p></small>

6
templates/usuarios/habilitar_detail.html

@ -34,8 +34,10 @@
<dd>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- {{ usuario.vinculo }}</dd> <dd>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- {{ usuario.vinculo }}</dd>
<dt>Casa Legislativa: </dt> <dt>Casa Legislativa: </dt>
<dd>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- {{ usuario.casa_legislativa }}</dd> <dd>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- {{ usuario.casa_legislativa }}</dd>
<dt>Telefones: </dt> <dt>Telefone(s): </dt>
<dd>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- [{{ usuario.primeiro_telefone.ddd }}] - {{usuario.primeiro_telefone.numero}}</dd> <dd>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- [{{ usuario.primeiro_telefone.ddd }}] - {{usuario.primeiro_telefone.numero}}</dd>
<dd>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- [{{ usuario.segundo_telefone.ddd }}] - {{usuario.segundo_telefone.numero}}</dd> {% if usuario.segundo_telefone.ddd and usuario.segundo_telefone.numero %}
<dd>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- [{{ usuario.segundo_telefone.ddd }}] - {{usuario.segundo_telefone.numero}}</dd>
{% endif %}
</dl> </dl>
{% endblock detail_content %} {% endblock detail_content %}

Loading…
Cancel
Save