trx.index.filterform.html 2.5 KB
<form class="form-horizontal" action="{{ path | safe }}">

    <div class="form-group">
        <label for="inputDate" class="col-sm-2 control-label">Date</label>
        <div class="col-sm-2">
            <input name="trxdate" type="date" class="form-control" id="inputDate" value="{{ conditions.ts_date }}">
        </div>
    </div>

    <div class="form-group">
        <label for="inputDestination" class="col-sm-2 control-label">Destination</label>
        <div class="col-sm-10">
            <input name="destination" type="text" class="form-control" id="inputDestination" value="{{ conditions.destination }}">
        </div>
    </div>

    <div class="form-group">
        <label for="inputProduct" class="col-sm-2 control-label">Product</label>
        <div class="col-sm-10">
            <input name="product" type="text" class="form-control" id="inputProduct" value="{{ conditions.product }}">
        </div>
    </div>

    <div class="form-group">
        <label for="inputRemoteProduct" class="col-sm-2 control-label">Remote Product</label>
        <div class="col-sm-10">
            <input name="remoteProduct" type="text" class="form-control" id="inputRemoteProduct" value="{{ conditions.remoteProduct }}">
        </div>
    </div>

    <div class="form-group">
        <label for="inputSupplier" class="col-sm-2 control-label">Supplier</label>
        <div class="col-sm-10">
            <select class="form-control" name="supplier" id="inputSupplier">
              <option value="">
                -
              </option>
              {% for supplier in suppliers %}
              <option value="{{ supplier }}"
                {% if supplier == conditions.supplier %}
                selected="selected"
                {% endif %}
              >
                {{ supplier }}
              </option value="{{ suppplier }}">
              {% endfor %}

            </select>
        </div>
    </div>

    <div class="form-group">
        <label for="inputRC" class="col-sm-2 control-label">RC</label>
        <div class="col-sm-10">
            <input name="rc" type="text" class="form-control" id="inputRC"
                aria-describedby="helpBlockRC"
                value="{{ conditions.rc }}"
                placeholder="00: SUCCESS; 13: PRODUCT CLOSE; 14: INVALID DESTINATION; 40: GENERAL ERROR; 68: PENDING"
            >
        </div>
    </div>

    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <input type="submit" class="btn btn-primary">
        </div>
    </div>

</form>