{form exportCsvForm}
	<div id="exportCsvModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="exportCsvModalLabel" style="width: 80%; margin-left: 10%; left: 0;">
		<div class="modal-header">
			<h3 id="exportCsvModalLabel">
				Vytvoření objednávky
			</h3>
		</div>

		<div class="modal-body">
			<table class="order-detail" style="text-align: center; margin: 20px auto;">
				<tbody>
				<tr>
					<th style="width: 140px; text-align: right;">{label id_supplier /}</th>
					<td style="text-align: left;">
						{input id_supplier, style => 'width: 185px;'}
					</td>
				</tr>
				</tbody>
			</table>
			<table class="table" style="text-align: center; margin: 20px auto; width: 100%;">
				<thead>
				<tr>
					<th>Kód</th>
					<th>Název</th>
					<th>Množství</th>
					<th>Poznámka</th>
				</tr>
				</thead>
				<tbody>
				<tr n:foreach="$form['stock_item_list']->containers as $i => $stockItemElm">
					<td style="vertical-align: middle;">
						{input $stockItemElm['id_stock_item']}
						{input $stockItemElm['code']}
						{$stockItemListModal[$i]->code}
					</td>
					<td style="vertical-align: middle;">{$stockItemListModal[$i]->title}</td>
					<td style="width: 80px; vertical-align: middle;">{input $stockItemElm['amount'], style => 'width: 40px; margin-bottom: 0;'} {\App\Models\StockItemModel::$UNIT_LIST[$stockItemListModal[$i]->unit]}</td>
					<td style="width: 390px; vertical-align: middle;">{input $stockItemElm['note'], style => 'width: 380px; margin-bottom: 0;'}</td>
				</tr>
				</tbody>
			</table>
		</div>

		<div class="modal-footer">
			{input submit}
			<button class="btn" data-dismiss="modal" aria-hidden="true">Zavřít</button>
		</div>
	</div>
{/form}

<script type="text/javascript">
	$(document).ready(function() {
		$('#exportCsvModal').modal({
			keyboard: false,
			backdrop: 'static',
			show: true
		});

	});
</script>
