index.html 2.07 KB
{% extends "template.html" %}

{% block content %}

<table class="table table-striped">
    <tr>
        <th class="hidden-xs"> NO. </th>
        <th class="hidden-xs"> TRX ID </th>
        <th class="hidden-xs"> TIME START </th>
        <th class="hidden-xs"> NOM </th>
        <th class="hidden-xs"> DESTINATION </th>
        <th class="hidden-xs"> SUPPLIER </th>
        <th class="hidden-xs"> INFO </th>
        <th class="visible-xs"> PENDING TRX </th>
    </tr>

    {% set i = 0 %}
    {% for transaction in transactions %}
    <tr>
        {% set i = i + 1 %}

        <td class="text-right hidden-xs"> {{ i }}. </td>

        <td class="hidden-xs"> {{ transaction.MESSAGEID }} </td>

        <td class="hidden-xs">
            {{ transaction.TIME_START | string | replace("GMT+0700 (WIB)", "") }}
        </td>

        <td class="hidden-xs"> {{ transaction.NOM }} </td>

        <td class="hidden-xs"> {{ transaction.NO_HP }} </td>

        <td class="hidden-xs"> {{ transaction.CHIP_INFO }} </td>

        <td class="hidden-xs">
            {% if transaction.MASALAH %}
            {{ transaction.MASALAH }}
            {% else %}
            -
            {% endif %}
        </td>

        <td class="visible-xs">

            <dl>
                <dt> Time </dt>
                <dd>
                    {{ transaction.TIME_START | string | replace("GMT+0700 (WIB)", "") }}
                </dd>

                <dt> Nom </dt>
                <dd>
                    {{ transaction.NOM }}
                </dd>

                <dt> Destination </dt>
                <dd>
                    {{ transaction.NO_HP }}
                </dd>

                <dt> Supplier </dt>
                <dd>
                    {{ transaction.CHIP_INFO }}
                </dd>

                <dt> Info </dt>
                <dd>
                    {% if transaction.MASALAH %}
                    {{ transaction.MASALAH }}
                    {% else %}
                    -
                    {% endif %}
                </dd>

            <dl>
        </td>
    </tr>
    {% endfor %}
</table>
{% endblock %}