|
@@ -6,12 +6,20 @@
|
|
|
<?php echo form_tag('@katao_order_product_adjust?id=' . $katao_order_product->getId()) ?>
|
|
|
|
|
|
<?php $katao_product = $katao_order_product->getKataoProduct() ?>
|
|
|
+<?php $authorize_quantity_decimal = $katao_product->getAuthorizeDecimal() ?>
|
|
|
+<?php $input_options = array('step' => ($authorize_quantity_decimal ?'any' : '1'), 'min' => '0', 'style' => 'width: 60px; height: 20px; text-align: center;') ?>
|
|
|
<h3><?php echo $katao_order_product->getProductName() ?></h3>
|
|
|
|
|
|
<table class="admin-sub-list">
|
|
|
<tr>
|
|
|
<td style="border:none!important">Commande : <?php echo $katao_product->getOrderDetails($katao_order_product->getKataoOrder()->getKataoPeriodId(), $katao_order_product->getKataoOrder()->getKataoNodeId(), true) ?></td>
|
|
|
- <th colspan="2" style="text-align:center!important">Quantités</th>
|
|
|
+ <th colspan="2" style="text-align:center!important">Quantités
|
|
|
+ <?php if ($authorize_quantity_decimal): ?>
|
|
|
+ <?php echo image_tag('decimals_icon.png', array('alt' => 'Décimales autorisées', 'title' => 'Décimales autorisées', 'align' => 'middle' )); ?>
|
|
|
+ <?php else: ?>
|
|
|
+ <?php echo image_tag('decimals_not_icon.png', array('alt' => 'Décimales non autorisées', 'title' => 'Décimales non autorisées', 'align' => 'middle' )); ?>
|
|
|
+ <?php endif ?>
|
|
|
+ </th>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th>Adhérent</th>
|
|
@@ -28,7 +36,7 @@
|
|
|
<td><?php echo $katao_cart_product->getQuantity() ?></td>
|
|
|
<td nowrap="nowrap">
|
|
|
<?php if (!$view_mode_only): ?>
|
|
|
- <?php echo input_number_tag('quantity[' . $katao_cart_product->getId() . ']', $katao_cart_product->getQuantityAdjusted(), array('style' => 'width: 60px; height: 20px; text-align: center;')) ?>
|
|
|
+ <?php echo input_number_tag('quantity[' . $katao_cart_product->getId() . ']', $katao_cart_product->getQuantityAdjusted(), $input_options) ?>
|
|
|
<?php else: ?>
|
|
|
<?php echo $katao_cart_product->getQuantityAdjusted() ?>
|
|
|
<?php endif ?>
|
|
@@ -40,7 +48,7 @@
|
|
|
<td><?php echo select_tag('new_user_id', options_for_select($katao_order_product->getMembersWithoutProduct(), false, array('include_custom' => '— Ajouter une commande à un adhérent —'))) ?></td>
|
|
|
<td>-</td>
|
|
|
<td nowrap="nowrap">
|
|
|
- <?php echo input_number_tag('quantity[0]', '0', array('style' => 'width: 60px; height: 20px; text-align: center;')) ?>
|
|
|
+ <?php echo input_number_tag('quantity[0]', '0', $input_options) ?>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<?php endif ?>
|