Browse Source

Merge pull request #130 from interlegis/new_sigi

Subindo templates esquecidos
pull/138/head
Sesostris Vieira 3 years ago
committed by GitHub
parent
commit
9d4a1ddb0a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 33
      sigi/apps/servicos/templates/servico/change_list.html
  2. 100
      sigi/apps/servicos/templates/servicos/carrinho.html

33
sigi/apps/servicos/templates/servico/change_list.html

@ -0,0 +1,33 @@
{% extends "change_list_with_cart.html" %}
{% load i18n %}
{% block extra_search %}
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Filtro de datas</a>
<p class="navbar-text">Use AAAA, AAAA-MM ou AAAA-MM-DD</p>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<form class="navbar-form navbar-left" role="extra-search" id="changelist-extrasearch" action="" method="get">
<div class="form-group">
<label for="data_ativacao__gte">{% trans 'Ativados a partir de' %}:</label>
<input type="text" class="form-control search-query" size="10" name="data_ativacao__gte" value="" id="data_ativacao__gte">
<label for="data_ativacao__lte">{% trans 'até' %}:</label>
<input type="text" class="form-control search-query" size="10" name="data_ativacao__lte" value="" id="data_ativacao__lte">
</div>
<button type="submit" class="btn btn-default navbar-btn ">
<span class="glyphicon glyphicon-search"></span>
</button>
</form>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
{% endblock %}

100
sigi/apps/servicos/templates/servicos/carrinho.html

@ -0,0 +1,100 @@
{% extends "admin/carrinho.html" %}
{% load admin_list i18n %}
{% block extrastyle %}
{{ block.super }}
{% include "admin/tabs_style.html" %}
{% endblock %}
{% block title %}{% trans 'Serviços no Carrinho | SIGI' %}{% endblock %}
{% block content_title %}<h1>{% trans 'Serviços no Carrinho' %}</h1>{% endblock %}
{% block mensagem%}
<ul class="messagelist">
{%if carIsEmpty%}
<li class="warning">{% trans 'O carrinho está vazio, sendo assim todos os Serviços entram na lista para exportação de acordo com os filtros aplicados.' %}</li>
{%else%}
<li>{{paginas.paginator.count}} {% trans 'Serviços no carrinho' %}.</li>
{%endif%}
</ul>
{% endblock %}
{% block action %}deleta_itens_carrinho{% endblock %}
{% block tabela %}
<table class="table table-striped">
<thead class="thead-dark">
<tr>
{%if not carIsEmpty%}
<th class="sorted ascending"><!-- <input type="checkbox" id="action-toggle" style="display: inline;">-->
</th>
{% endif %}
<th class="sorted ascending">{% trans 'Casa Legislativa' %}</th>
<th class="sorted ascending">{% trans 'UF' %}</th>
<th class="sorted ascending">{% trans 'Email' %}</th>
<th class="sorted ascending">{% trans 'Telefone' %}</th>
<th class="sorted ascending">{% trans 'Contato Interlegis' %}</th>
<th class="sorted ascending">{% trans 'Tipo de Serviço' %}</th>
<th class="sorted ascending">{% trans 'Data Ativação' %}</th>
</tr>
</thead>
<tbody>
{% for servico in paginas.object_list %}
<tr>
{%if not carIsEmpty%}
<th><input type="checkbox" name="_selected_action"
value="{{servico.id|safe}}" class="action-select" /></th>
{% endif %}
<td style="text-align: left;">{{servico.casa_legislativa}}</td>
<td>{{servico.casa_legislativa.municipio.uf.sigla}}</td>
<td>{{servico.casa_legislativa.email}}</td>
<td>{{servico.casa_legislativa.telefone}}</td>
<td>{{servico.casa_legislativa.contato_interlegis}}</td>
<td>{{servico.casa_legislativa.contato_interlegis.email}}</td>
<td>{{servico.tipo_servico}}</td>
<td>{{servico.data_ativacao}}</td></tr>
{% endfor %}
</tbody>
</table>
{% endblock %}
{% block botoes %}
<ul class="nav nav-tabs" role="tablist">
<li class="active" role="presentation"><a href="#tabs-2" aria-controls="tabs-2" role="tab" data-toggle="tab">{% trans 'Arquivo CSV (Excel, Calc)' %}</a></li>
</ul>
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="tabs-2">
<form action="../csv/{{query_str}}" method="post">{% csrf_token %}
<fieldset>
<legend>{% trans 'Escolha os atributos para exportar' %}</legend>
<ul id="sortable" class="tabs-conteudo">
<li>
<span class="ui-icon ui-icon-arrowthick-2-n-s"></span>
<input type="checkbox" name="itens_csv_selected" value="Casa Legislativa"
class="action-select" checked="checked" />
<label>{% trans 'Casa Legislativa' %}</label>
</li>
<li>
<span class="ui-icon ui-icon-arrowthick-2-n-s"></span>
<input type="checkbox" name="itens_csv_selected" value="Contato Interlegis"
class="action-select" checked="checked" />
<label>{% trans 'Contato Interlegis' %}</label>
</li>
<li>
<span class="ui-icon ui-icon-arrowthick-2-n-s"></span>
<input type="checkbox" name="itens_csv_selected" value="Produto"
class="action-select" checked="checked" />
<label>{% trans 'Produto' %}</label>
</li>
<li>
<span class="ui-icon ui-icon-arrowthick-2-n-s"></span>
<input type="checkbox" name="itens_csv_selected" value="Data de Ativação"
class="action-select" checked="checked" />
<label>{% trans 'Data de Ativação' %}</label>
</li>
</ul>
</fieldset>
<input type="submit" value="Exportar CSV" type="button" class="btn btn-primary"/>
</form>
</div>
</div>
{% endblock %}
Loading…
Cancel
Save