<div class="content-add01">
	<div class="heading01"><h1>Ajustement de la commande "<?php echo $katao_order->getNumber() ?>" du fournisseur "<?php echo $katao_order->getSupplierName() ?>" pour la période "<?php echo $katao_order->getKataoPeriod()->getName() ?>"</h1></div>
</div>

<?php echo form_tag('@katao_order_adjust?id=' . $katao_order->getId()) ?>

<?php foreach($katao_order->getKataoOrderProductsJoinKataoProduct() as/*(KataoOrderProduct)*/ $katao_order_product): ?>
	<?php $katao_product = $katao_order_product->getKataoProduct() ?>
	<h2><?php echo $katao_order_product->getProductName() ?> - <?php echo $katao_product->getOrderDetails($katao_order->getKataoPeriodId(), $katao_order->getKataoNodeId(), true) ?></h2>
	<ul>
	<?php foreach ($katao_order_product->getKataoCartProductsJoinKataoCart() as/*(KataoCartProduct)*/ $katao_cart_product): ?>
		<?php $katao_member = $katao_cart_product->getKataoCart()->getMember() ?>
		<li>
			<?php echo $katao_member->getFullName() ?>
			<?php echo input_tag('quantity[' . $katao_product->getId() . '][' . $katao_cart_product->getId() . ']', $katao_cart_product->getQuantityAdjusted(), array('style' => 'width: 20px; text-align: center;')) ?>
		</li>
	<?php endforeach ?>
		<li>
			<?php echo select_tag('new_user_id', options_for_select($katao_order_product->getMembersWithoutProduct(), false, array('include_custom' => '&mdash;&nbsp;Ajouter une commande à un adhérent&nbsp;&mdash;'))) ?>
			<?php echo input_tag('quantity[' . $katao_product->getId() . '][0]', '', array('style' => 'width: 20px; text-align: center;')) ?>
		</li>
	</ul>
<?php endforeach ?>

<?php echo submit_tag('Ajuster') ?> ou <a href="<?php echo url_for('kataoOrder/index') ?>">annuler</a>

</form>