Your IP : 216.73.216.86


Current Path : /var/www/homesaver/www/bitrix/components/
Upload File :
Current File : /var/www/homesaver/www/bitrix/components/receipt-table-item-template.php

<?php

function ofdferma_receiptTableItemTemplate()
{
    ?>
    <div data-role="receipt-item-template" style="display: none">
        <div class="ofd-receipt-table__item" data-role="receipt-item">
            <div class="ofd-receipt-table__item-remove"><a data-role="remove-item-btn">&times;</a></div>
            <div class="ofd-receipt-table__item-name" data-role="field-container">
                <span data-role="number">#NUMBER#.</span>
                <input type="text" name="items[#INDEX#][Label]" id="item_#INDEX#_name"
                       data-role="name-input"
                       minlength="1" maxlength="255"
                       value="#VALUE-Label#">
            </div>
            <div class="ofd-receipt-table__item-price">
                <div class="ofd-receipt-table__item-price-value" data-role="field-container">
                    <input type="number" name="items[#INDEX#][Price]" id="item_#INDEX#_price"
                           data-role="price-input"
                           min="1" max="999999999" step="0.01"
                           value="#VALUE-Price#">
                    <span>руб</span>
                </div>
                <div class="ofd-receipt-table__item-price-x">x</div>
                <div class="ofd-receipt-table__item-quantity" data-role="field-container">
                    <input type="number" name="items[#INDEX#][Quantity]" id="item_#INDEX#_quantity"
                           data-role="quantity-input"
                           min="1" max="999999"
                           value="#VALUE-Quantity#">
                    <span>ед.</span>
                </div>
                <div class="ofd-receipt-table__item-vat" data-role="field-container">
                    <? vatTypeSelector('item_#INDEX#_vat', 'items[#INDEX#][Vat]') ?>
                </div>
            </div>
            <div class="ofd-receipt-table__item-meta">
                <div class="ofd-receipt-table__item-payment-method" data-role="field-container">
                    <? paymentMethodSelector('item_#INDEX#_paymentMethod', 'items[#INDEX#][PaymentMethod]') ?>
                </div>
                <div class="ofd-receipt-table__item-payment-type" data-role="field-container">
                    <? paymentTypeSelector('item_#INDEX#_paymentType', 'items[#INDEX#][PaymentType]') ?>
                </div>
            </div>
        </div>
    </div>
    <?php
}