Changeset 0000e70 in sicp


Ignore:
Timestamp:
Jun 17, 2015, 10:31:56 AM (9 years ago)
Author:
Ing. Roldan D. Vargas G <rvargas@…>
Branches:
master
Children:
08521269
Parents:
a495b78
Message:

se agregan variables para mostrar información relacionada a la cadena productiva consultada

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/simulacion/templates/cadena_productiva.html

    r4f7f355 r0000e70  
    1818                        {% trans 'Niveles Aguas Arriba' %}
    1919                        &#160;
    20                         <span id="narriba" class="badge badge-info fuente-10">1</span>
     20                        <span id="narriba" class="badge badge-info fuente-10">{{ narriba|length }}</span>
    2121                    </div>
    2222                    <div class="col-xs-3 col-sm-3 col-md-3">
    2323                        {% trans 'Niveles Aguas Abajo' %}
    2424                        &#160;
    25                         <span id="nabajo" class="badge badge-info fuente-10">1</span>
     25                        <span id="nabajo" class="badge badge-info fuente-10">{{ nabajo|length }}</span>
    2626                    </div>
    2727                    <div class="col-xs-3 col-sm-3 col-md-3">
    2828                        {% trans 'Año de Registro' %}
    2929                        &#160;
    30                         <span id="anho" class="badge badge-info fuente-10">2015</span>
     30                        <span id="anho" class="badge badge-info fuente-10">{{ anho }}</span>
    3131                    </div>
    3232                    <div class="col-xs-3 col-sm-3 col-md-3">
     
    153153            var tree = [
    154154                {
     155                    text: node_raiz+" ({% trans 'Atráz' %})",
     156                    state: { expanded: false },
     157                    nodes: [
     158                        {% for a in arc %}
     159                            {% if a.attrib.tgt == '0' %}
     160                                {% with n=node|access:a.attrib.src  ax=a %}
     161                                    {
     162                                        text: "{{ n.attrib.company_rif }} {{ n.attrib.company_name }} - {{ n.attrib.product_name }}",
     163                                        {%include "tree_view_up_template.html" %}
     164                                    },
     165                                {% endwith %}
     166                            {% endif %}
     167                        {% endfor %}
     168                    ]
     169                },
     170                {
    155171                    text: node_raiz+" ({% trans 'Adelante' %})",
    156172                    state: { expanded: false },
     
    162178                                        text: "{{ n.attrib.company_rif }} {{ n.attrib.company_name }} - {{ n.attrib.product_name }}",
    163179                                        {% include "tree_view_down_template.html" %}
    164                                     },
    165                                 {% endwith %}
    166                             {% endif %}
    167                         {% endfor %}
    168                     ]
    169                 },
    170                 {
    171                     text: node_raiz+" ({% trans 'Atráz' %})",
    172                     state: { expanded: false },
    173                     nodes: [
    174                         {% for a in arc %}
    175                             {% if a.attrib.tgt == '0' %}
    176                                 {% with n=node|access:a.attrib.src  ax=a %}
    177                                     {
    178                                         text: "{{ n.attrib.company_rif }} {{ n.attrib.company_name }} - {{ n.attrib.product_name }}",
    179                                         {%include "tree_view_up_template.html" %}
    180180                                    },
    181181                                {% endwith %}
Note: See TracChangeset for help on using the changeset viewer.