Browse Source

Adição da opção de etiquetas para parlamentares a partir das casas legislativas

stable/1.0
Breno Teixeira 12 years ago
parent
commit
b52fedf2a1
  1. 17
      sigi/apps/casas/templates/casas/carrinho.html
  2. 2
      sigi/apps/casas/views.py
  3. 4
      sigi/urls.py

17
sigi/apps/casas/templates/casas/carrinho.html

@ -59,6 +59,7 @@
<li><a href="#tabs-1">Etiqueta</a></li> <li><a href="#tabs-1">Etiqueta</a></li>
<li><a href="#tabs-2">Relatório</a></li> <li><a href="#tabs-2">Relatório</a></li>
<li><a href="#tabs-3">Arquivo CSV (Excel, Calc)</a></li> <li><a href="#tabs-3">Arquivo CSV (Excel, Calc)</a></li>
<li><a href="#tabs-4">Etiqueta Parlamentares</a></li>
</ul> </ul>
<div id="tabs-1"> <div id="tabs-1">
@ -192,6 +193,22 @@
</ul> </ul>
</form> </form>
</div> </div>
<div id="tabs-4">
<form action="../labels_parlamentar/{{query_str}}" method="post">
<fieldset><legend>Formato da Etiqueta</legend>
<ul class="formato_etiqueta">
<li><input type="radio" name="tamanho_etiqueta"
value="2x5_etiqueta"><label>2x5</label></li>
<li><input type="radio" name="tamanho_etiqueta"
value="3x9_etiqueta" checked="checked"><label>3x9</label></li>
</ul>
</fieldset>
<ul class="botoes">
<li><input type="submit" value="Gerar Etiqueta" /></li>
</ul>
</form>
</div>
</div> </div>
{% endblock %} {% endblock %}

2
sigi/apps/casas/views.py

@ -9,6 +9,8 @@ from sigi.apps.casas.reports import CasasLegislativasLabelsSemPresidente
from sigi.apps.casas.reports import CasasLegislativasReport from sigi.apps.casas.reports import CasasLegislativasReport
from sigi.apps.casas.reports import CasasSemConvenioReport from sigi.apps.casas.reports import CasasSemConvenioReport
from sigi.apps.casas.reports import InfoCasaLegislativa from sigi.apps.casas.reports import InfoCasaLegislativa
from sigi.apps.parlamentares.models import Parlamentar
from sigi.apps.parlamentares.reports import ParlamentaresLabels
from django.core.paginator import Paginator, InvalidPage, EmptyPage from django.core.paginator import Paginator, InvalidPage, EmptyPage

4
sigi/urls.py

@ -31,6 +31,10 @@ urlpatterns = patterns(
# reports labels # reports labels
(r'^sigi/casas/casalegislativa/labels/', (r'^sigi/casas/casalegislativa/labels/',
'sigi.apps.casas.views.labels_report'), 'sigi.apps.casas.views.labels_report'),
(r'^sigi/casas/casalegislativa/labels_parlamentar/', # parlamentar
'sigi.apps.parlamentares.views.labels_report'),
(r'^sigi/casas/casalegislativa/(?P<id>\w+)/labels_parlamentar/', # parlamentar
'sigi.apps.parlamentares.views.labels_report'),
(r'^sigi/casas/casalegislativa/(?P<id>\w+)/labels/', (r'^sigi/casas/casalegislativa/(?P<id>\w+)/labels/',
'sigi.apps.casas.views.labels_report'), 'sigi.apps.casas.views.labels_report'),
# reports labels parlamentares # reports labels parlamentares

Loading…
Cancel
Save