<?php if (!defined('ABSPATH')) exit; ?>
<?php echo '<script type="text/ng-template" id="field_body_discount_number_side">'; ?>
<div class="nbd-field-info" ng-if="field.nbd_type === 'page2'">
    <div class="nbd-field-info-1">
        <div><label><b><?php esc_html_e('Discount by number of side breaks', 'web-to-print-online-designer'); ?></b></label></div>
    </div>
    <div class="nbd-field-info-2">
        <div class="nbd-table-wrap">
            <table class="nbd-table">
                <tr>
                    <th><?php esc_html_e('Number of side breaks', 'web-to-print-online-designer'); ?></th>
                    <th ng-repeat="(opIndex, op) in field.general.attributes.options">{{opIndex + 1}}</th>
                </tr>
                <tr>
                    <td><?php esc_html_e('Discount (%)', 'web-to-print-online-designer'); ?></td>
                    <th ng-repeat="(opIndex, op) in field.general.attributes.options">
                        <input ng-click="test(field)" autocomplete="off" class="nbd-short-ip" type="text" ng-model="field.general.discount_number_side[opIndex]" name="options[fields][{{fieldIndex}}][general][discount_number_side][{{$index}}]" />
                        </td>
                </tr>
            </table>
        </div>
    </div>
</div>
<?php echo '</script>';
