<!-- Edit this file to change the layout of the detail view print preview page -->


<div class="panel-heading"><h3 class="panel-title">
	<strong><%%DETAIL_VIEW_TITLE%%></strong>
	<div class="hidden-print pull-right">
		<div class="btn-group">
			<button type="button" id="print" onclick="window.print();" title="<%%TRANSLATION(Print)%%>" class="btn btn-primary"><i class="glyphicon glyphicon-print"></i> <%%TRANSLATION(Print)%%></button>
			<button type="submit" id="back" title="<%%TRANSLATION(Cancel Printing)%%>" class="btn btn-default"><i class="glyphicon glyphicon-remove-circle"></i> <%%TRANSLATION(Cancel Printing)%%></button>
		</div>
	</div>
	<div class="clearfix"></div>
</h3></div>

<div class="panel-body">
	<fieldset class="form-horizontal">
		<!-- Field: ID -->
		<div class="form-group invoice_items-id" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">ID</label>
			<div class="col-xs-9">
				<div class="form-control-static"><%%VALUE(id)%%></div>
			</div>
		</div>
		<!-- Field: Invoice -->
		<div class="form-group invoice_items-invoice" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">Invoice</label>
			<div class="col-xs-9">
				<div class="form-control-static"><span id="invoice-readonly<%%RND1%%>"><%%COMBOTEXT(invoice)%%></span></div>
			</div>
		</div>
		<!-- Field: Item -->
		<div class="form-group invoice_items-item" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">Item</label>
			<div class="col-xs-9">
				<div class="form-control-static"><span id="item<%%RND1%%>"><%%COMBOTEXT(item)%%></span></div>
			</div>
		</div>
		<!-- Field: Current price -->
		<div class="form-group invoice_items-current_price" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">Current price</label>
			<div class="col-xs-9">
				<div class="form-control-static"><span id="current_price<%%RND1%%>"></span></div>
			</div>
		</div>
		<!-- Field: Catalog price at order date -->
		<div class="form-group invoice_items-catalog_price" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">Catalog price at order date</label>
			<div class="col-xs-9">
				<div class="form-control-static"><%%VALUE(catalog_price)%%></div>
			</div>
		</div>
		<!-- Field: Unit price -->
		<div class="form-group invoice_items-unit_price" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">Unit price</label>
			<div class="col-xs-9">
				<div class="form-control-static"><%%VALUE(unit_price)%%></div>
			</div>
		</div>
		<!-- Field: Qty -->
		<div class="form-group invoice_items-qty" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">Qty</label>
			<div class="col-xs-9">
				<div class="form-control-static"><%%VALUE(qty)%%></div>
			</div>
		</div>
		<!-- Field: Price -->
		<div class="form-group invoice_items-price" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">Price</label>
			<div class="col-xs-9">
				<div class="form-control-static"><%%VALUE(price)%%></div>
			</div>
		</div>
	</fieldset>
</div>
<script>
	$j(function() {
		// render read-only checkboxes in DVP
		$j('form input[type=checkbox]:not(.hidden):checked')
			.addClass('hidden')
			.after('<i class="glyphicon glyphicon-check"></i>');
		$j('form input[type=checkbox]:not(.hidden):not(:checked)')
			.addClass('hidden')
			.after('<i class="glyphicon glyphicon-unchecked"></i>')
	})
</script>
