Browse Source

Refator change list templates that include a cart for reuse

producao
Marcio Mazza 10 years ago
parent
commit
4d8888e197
  1. 20
      sigi/apps/casas/templates/casas/change_list.html
  2. 18
      sigi/apps/convenios/templates/convenios/change_list.html
  3. 11
      sigi/apps/parlamentares/templates/admin/parlamentares/parlamentar/change_list.html
  4. 5
      sigiStatic/css/base_site.css
  5. 10
      templates/change_list_with_cart.html

20
sigi/apps/casas/templates/casas/change_list.html

@ -1,15 +1,9 @@
{% extends "admin/change_list.html" %}
{% load admin_list i18n reporting_tags %}
{% extends "change_list_with_cart.html" %}
{% block object-tools %}
<ul class="object-tools">
<li><a href="casas_sem_convenio_report/{{query_str}}">Casas sem Processo de Convênio</a></li>
<li><a onclick="return showRelatedObjectLookupPopup(this);" href="carrinho/{{query_str}}">Carrinho / Exportar</a></li>
<li>
<a href="add/{% if is_popup %}?_popup=1{% endif %}" class="addlink">
{% blocktrans with cl.opts.verbose_name as name %}Add {{ name }}{% endblocktrans %}
</a>
</li>
</ul>
{% block object-tools-items %}
<li><a href="casas_sem_convenio_report/{{query_str}}">
<span class="glyphicon glyphicon-list"></span>
Casas sem Processo de Convênio
</a></li>
{{ block.super }}
{% endblock %}

18
sigi/apps/convenios/templates/convenios/change_list.html

@ -1,20 +1,4 @@
{% extends "admin/change_list.html" %}
{% load i18n reporting_tags admin_list %}
{% block object-tools %}
{% if has_add_permission %}
<ul class="object-tools">
<li><a onclick="return showRelatedObjectLookupPopup(this);" href="carrinho/{{query_str}}">Carrinho / Exportar</a></li>
<li>
<a href="add/{% if is_popup %}?_popup=1{% endif %}" class="addlink">
{% blocktrans with cl.opts.verbose_name as name %}Add {{ name }}{% endblocktrans %}
</a>
</li>
</ul>
{% endif %}
{% endblock %}
{% extends "change_list_with_cart.html" %}
{% block search %}
<div id="toolbar">

11
sigi/apps/parlamentares/templates/admin/parlamentares/parlamentar/change_list.html

@ -1,10 +1 @@
{% extends "admin/change_list.html" %}
{% load admin_list i18n reporting_tags %}
{% block object-tools-items %}
<li><a class="btn" href="carrinho/{{query_str}}">
<span class="glyphicon glyphicon-shopping-cart"></span>
Ver Carrinho
</a></li>
{{ block.super }}
{% endblock %}
{% extends "change_list_with_cart.html" %}

5
sigiStatic/css/base_site.css

@ -195,3 +195,8 @@ div#footer a {
}
}
/* GENERAL ADJUSTMENTS */
.glyphicon {
margin-right: 3px;
}

10
templates/change_list_with_cart.html

@ -0,0 +1,10 @@
{% extends "admin/change_list.html" %}
{% load admin_list i18n reporting_tags %}
{% block object-tools-items %}
<li><a class="btn" href="carrinho/{{query_str}}">
<span class="glyphicon glyphicon-shopping-cart"></span>
Ver Carrinho
</a></li>
{{ block.super }}
{% endblock %}
Loading…
Cancel
Save