Browse Source

#40 Substitui /home/atendimento por /atendimento

pull/6/head
Eduardo Edson Batista Cordeiro Alves 9 years ago
committed by Luciano Almeida
parent
commit
f914f3e53f
  1. 2
      sigi/apps/home/urls.py
  2. 2
      sigi/apps/solicitacoes/urls.py
  3. 20
      sigi/apps/usuarios/urls.py
  4. 4
      sigi/urls.py
  5. 2
      templates/base.html
  6. 2
      templates/usuarios/login.html
  7. 2
      templates/usuarios/usuario_list.html

2
sigi/apps/home/urls.py

@ -4,7 +4,7 @@ from django.views.generic.base import TemplateView
urlpatterns = patterns( urlpatterns = patterns(
'sigi.apps.home.views', 'sigi.apps.home.views',
url(r'^home/atendimento', TemplateView.as_view( url(r'^atendimento', TemplateView.as_view(
template_name='index_atendimento.html'), template_name='index_atendimento.html'),
name='index_atendimento'), name='index_atendimento'),
url(r'^$', 'index', name='sigi_index'), url(r'^$', 'index', name='sigi_index'),

2
sigi/apps/solicitacoes/urls.py

@ -9,6 +9,6 @@ from .apps import AppConfig
app_name = AppConfig.name app_name = AppConfig.name
urlpatterns = [ urlpatterns = [
url(ur'home/atendimento/solicitacao/', url(ur'atendimento/solicitacao/',
include(SolicitacaoCrud.get_urls())), include(SolicitacaoCrud.get_urls())),
] ]

20
sigi/apps/usuarios/urls.py

@ -20,7 +20,7 @@ app_name = AppConfig.name
EMAIL_SEND_USER='atendimento@interlegis.leg.br' EMAIL_SEND_USER='atendimento@interlegis.leg.br'
recuperar_email = [ recuperar_email = [
url(ur'^home/atendimento/recuperar/recuperar_senha/$', url(ur'^atendimento/recuperar/recuperar_senha/$',
password_reset, password_reset,
{u'template_name': u'usuarios/recuperar_senha.html', {u'template_name': u'usuarios/recuperar_senha.html',
u'password_reset_form': RecuperarSenhaEmailForm, u'password_reset_form': RecuperarSenhaEmailForm,
@ -29,36 +29,36 @@ recuperar_email = [
u'from_email': EMAIL_SEND_USER, u'from_email': EMAIL_SEND_USER,
u'html_email_template_name': u'usuarios/recuperar_senha_email.html'}, u'html_email_template_name': u'usuarios/recuperar_senha_email.html'},
name=u'recuperar_senha'), name=u'recuperar_senha'),
url(ur'^home/atendimento/recuperar/recuperar_recuperar/finalizado/$', url(ur'^atendimento/recuperar/recuperar_recuperar/finalizado/$',
password_reset_done, password_reset_done,
{u'template_name': u'usuarios/recuperar_senha_enviado.html'}, {u'template_name': u'usuarios/recuperar_senha_enviado.html'},
name=u'recuperar_senha_finalizado'), name=u'recuperar_senha_finalizado'),
url(ur'^home/atendimento/recuperar/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>.+)/$', url(ur'^atendimento/recuperar/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>.+)/$',
password_reset_confirm, password_reset_confirm,
{u'post_reset_redirect': u'usuarios:recuperar_senha_completo', {u'post_reset_redirect': u'usuarios:recuperar_senha_completo',
u'template_name': u'usuarios/recuperacao_senha_form.html', u'template_name': u'usuarios/recuperacao_senha_form.html',
u'set_password_form': RecuperacaoMudarSenhaForm}, u'set_password_form': RecuperacaoMudarSenhaForm},
name=u'recuperar_senha_confirma'), name=u'recuperar_senha_confirma'),
url(ur'^home/atendimento/recuperar/completo/$', url(ur'^atendimento/recuperar/completo/$',
password_reset_complete, password_reset_complete,
{u'template_name': u'usuarios/recuperacao_senha_completo.html'}, {u'template_name': u'usuarios/recuperacao_senha_completo.html'},
name=u'recuperar_senha_completo'), name=u'recuperar_senha_completo'),
] ]
urlpatterns = recuperar_email + [ urlpatterns = recuperar_email + [
url(ur'^home/atendimento/login/$', login, { url(ur'^atendimento/login/$', login, {
u'template_name': u'usuarios/login.html', u'template_name': u'usuarios/login.html',
u'authentication_form': LoginForm}, u'authentication_form': LoginForm},
name=u'login'), name=u'login'),
url(ur'^home/atendimento/logout/$', logout, {u'next_page': u'/home/atendimento'}, url(ur'^atendimento/logout/$', logout, {u'next_page': u'/atendimento'},
name=u'logout'), name=u'logout'),
url(ur'^home/atendimento/usuario/', include(UsuarioCrud.get_urls())), url(ur'^atendimento/usuario/', include(UsuarioCrud.get_urls())),
url(ur'^home/atendimento/habilitar/(?P<pk>\d+)$', url(ur'^atendimento/habilitar/(?P<pk>\d+)$',
HabilitarDetailView.as_view(), name=u'habilitar_detail'), HabilitarDetailView.as_view(), name=u'habilitar_detail'),
url(ur'^home/atendimento/habilitar/(?P<pk>\d+)/edit$', url(ur'^atendimento/habilitar/(?P<pk>\d+)/edit$',
HabilitarEditView.as_view(), name=u'habilitar_edit'), HabilitarEditView.as_view(), name=u'habilitar_edit'),
url(ur'^home/atendimento/usuario/(?P<pk>\d+)/mudar_senha$', url(ur'^atendimento/usuario/(?P<pk>\d+)/mudar_senha$',
MudarSenhaView.as_view(), name=u'mudar_senha'), MudarSenhaView.as_view(), name=u'mudar_senha'),
url(ur'^usuario/confirmar/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})$', url(ur'^usuario/confirmar/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})$',
ConfirmarEmailView.as_view(), name=u'confirmar_email'), ConfirmarEmailView.as_view(), name=u'confirmar_email'),

4
sigi/urls.py

@ -1,4 +1,4 @@
#-*- coding:utf-8 -*- # -*- coding:utf-8 -*-
from django.conf import settings from django.conf import settings
from django.conf.urls import include, patterns, url from django.conf.urls import include, patterns, url
@ -36,7 +36,7 @@ urlpatterns = patterns(
# to enable language selection # to enable language selection
# Suspended # Suspended
#url(r'^i18n/', include('django.conf.urls.i18n')), # url(r'^i18n/', include('django.conf.urls.i18n')),
) + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) ) + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)

2
templates/base.html

@ -55,7 +55,7 @@
<header class="masthead"> <header class="masthead">
<div class="container"> <div class="container">
<div class="navbar-header"> <div class="navbar-header">
<a href="/home/atendimento"> <a href="/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>

2
templates/usuarios/login.html

@ -27,7 +27,7 @@
<input class="btn btn-success btn-sm" type="submit" value="Entrar" /> <input class="btn btn-success btn-sm" type="submit" value="Entrar" />
</p> </p>
<h5><a href="{% url 'usuarios:recuperar_senha' %}"> Esqueceu sua senha? </a></h5> <h5><a href="{% url 'usuarios:recuperar_senha' %}"> Esqueceu sua senha? </a></h5>
<input type="hidden" name="next" value="/home/atendimento" /> <input type="hidden" name="next" value="/atendimento" />
</form> </form>
</div> </div>
</div> </div>

2
templates/usuarios/usuario_list.html

@ -22,7 +22,7 @@
{% for value, href in value_list %} {% for value, href in value_list %}
<td> <td>
{% if href %} {% if href %}
<a href="../habilitar/{{ value_list|first|last|cut:'/home/atendimento/usuario/' }}">{{ value }}</a> <a href="../habilitar/{{ value_list|first|last|cut:'/atendimento/usuario/' }}">{{ value }}</a>
{% else %} {% else %}
{{ value|safe }} {{ value|safe }}
{% endif %} {% endif %}

Loading…
Cancel
Save