Changeset 3a4162e in sicp


Ignore:
Timestamp:
Jun 3, 2015, 12:43:30 PM (9 years ago)
Author:
Ing. Roldan D. Vargas G <rvargas@…>
Branches:
master
Children:
aa00a66
Parents:
03a58d0
Message:

se agrega instrucciones para mostrar datos de las Unidades Económicas consultadas en caso de existir registros, y se agrega instrucción para exportar datos de la tabla a csv

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/simulacion/sigesic/templates/consultar_ue.html

    r35355cd r3a4162e  
    2121{% block form_list_data %}
    2222    <div class="divider-vertical-20"></div>
    23     <table id="lista-ue" class="table table-striped table-bordered dataTable hover display" width="100%" cellspacing="0">
     23    <table id="lista-ue" class="table table-striped table-bordered dataTable hover display responsive" width="100%" cellspacing="0">
    2424        <thead>
    25             <tr class="table-caption">
    26                 <th colspan="3" class="text-center">{% trans 'Resultados' %}</th>
    27                 <th class="text-right">
    28                     <i class="glyphicon glyphicon-download-alt tip-left" style="cursor: pointer" onclick="location='#'"
    29                        data-toggle="tooltip"
     25            <tr class="table-caption" id="table-caption">
     26                <th colspan="2" class="text-center">{% trans 'Resultados' %}</th>
     27                <th colspan="2" class="text-right">
     28                    <i class="glyphicon glyphicon-download-alt tip-left" style="cursor: pointer"
     29                       data-toggle="tooltip" onclick="$('#lista-ue').tableExport({type: 'csv', escape: 'false'})"
    3030                       title="{% trans 'Presione sobre el botón de descargar para obtener el archivo con los datos consultados' %}"></i>&#160;
    3131                     {% trans 'Descargar' %}&#160;.csv
     
    3939            </tr>
    4040        </thead>
    41 
     41        {% if datos %}
     42            <tbody>
     43                {% for ue in datos %}
     44                    <tr>
     45                        <td>{{ ue.rif }}</td>
     46                        <td>{% if ue.razon_social %}{{ ue.razon_social }}{% else %}{{ ue.nombre }}{% endif %}</td>
     47                        <td>{{ ue.ciudad.upper }}</td>
     48                        <td></td>
     49                    </tr>
     50                {% endfor %}
     51            </tbody>
     52        {% endif %}
    4253    </table>
    4354{% endblock %}
Note: See TracChangeset for help on using the changeset viewer.