<!doctype html>
<html  {$html_attrs}>
	<head>
				<meta http-equiv="X-UA-Compatible" content="IE=Edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>{$pagetitle}</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<base href="{$projectPath}">
		<link REL="stylesheet" href="styles/default.css?{$wizardBuildKey}" type="text/css">
	{BEGIN rtlCSS}
	<link REL="stylesheet" href="styles/defaultRTL.css?{$wizardBuildKey}" type="text/css">
	{END rtlCSS}
	{BEGIN styleCSSFiles}
	<link REL="stylesheet" href="{$stylepath}" type="text/css">
	{END styleCSSFiles}
	</head>

	<body class="{$stylename} function-edit" {$bodyattrs}>
	{BEGIN body}
		{$header}
		<style>
			{$containerCss}
		</style>
		{$locking}
		<div class="r-small-page" 
			data-body-align="center"
			data-body-width="standard"
		>
							{BEGIN top_block}
<div class="r-form" data-location="top" id="form_top_{$pageid}" data-makeup="small" {$form_top} data-pageid="{$pageid}"
		data-v-width="4"
	data-v-margin="1"
	
>		
	 
		<div class="row">
			 
				<div 
	data-cellId="top_c1" data-pageid="{$pageid}"	{$cell_top_c1}
	class=" r-ori-vert			col-md-12
	">
	 
		<h2 data-itemtype="edit_header" data-itemid="edit_header" {$item_edit_header} data-pageid="{$pageid}" >{$pagetitlelabel purchases edit}</h2>
	</div>					</div>
	</div>		
{END top_block}
									{BEGIN above-grid_block}
<div class="r-form" data-location="above-grid" id="form_above-grid_{$pageid}" data-makeup="small" {$form_above-grid} data-pageid="{$pageid}"
		data-v-width="4"
	data-v-margin="1"
	
>		
	 
		<div class="row">
			 
				<div 
	data-cellId="above-grid_c1" data-pageid="{$pageid}"	{$cell_above-grid_c1}
	class=" r-ori-vert			col-md-12
	">
	 
		<div data-itemtype="edit_message" data-itemid="edit_message" {$item_edit_message} data-pageid="{$pageid}" class="alert {$message_class}" role="alert">
<h5>{$message}</h5>
<div>
{BEGIN back_button}
			<button class="btn btn-sm btn-default" {$backbutton_attrs}>Back to list</button>
	{END back_button}
{BEGIN view_page_button}
	<button class="btn btn-sm btn-default" {$view_page_button_attrs}>View</button>
{END view_page_button}
</div>
</div>
	</div>					</div>
	</div>		
{END above-grid_block}
									{BEGIN grid_block}




 
	 
												<table 
	data-body-align="center"
	data-location="grid" id="form_grid_{$pageid}" data-makeup="small" {$form_grid} data-pageid="{$pageid}" 
	class="r-edit-form" cellpadding="0" cellspacing="0" 
	{$grid_hiddenattr} 
		data-form-width="1"
		
		data-v-width="4"
	>
	<tbody>
										<tr>
										

{BEGIN cellblock_grid_c3}
<td
	{$cell_grid_c3}
	class=" r-ori-vert"
	
				data-fullwidth
		
			data-cellId="grid_c3" data-pageid="{$pageid}"
		data-v-cell="4"
		
>
	<div edit-form-cell class="clearfix">
				
{BEGIN purchase_date_fieldblock}


<div class="r-integrated-field form-group clearfix {$fielddispclass_purchase_date}  r-vertical-field" 
	data-fieldname="purchase_date" 
	data-signal-error-for="purchase_date{$id}" 
	data-itemtype="integrated_edit_field" data-itemid="integrated_edit_field" {$item_integrated_edit_field} data-pageid="{$pageid}" data-field="purchase_date" >


	<label class="r-edit-label control-label" for="{$labelfor_purchase_date}">
		{BEGIN purchase_date_label}{$label purchases purchase_date }{END purchase_date_label}
	</label>
	<div class="r-edit-field">
		{$purchase_date_editcontrol}	</div>
	<div class="r-edit-tooltip" data-helpfor="purchase_date">
		<div class="text-muted" >
		{$tooltip purchases purchase_date }		</div>
	</div>
</div>


{END purchase_date_fieldblock}
											
{BEGIN seller_fieldblock}


<div class="r-integrated-field form-group clearfix {$fielddispclass_seller}  r-vertical-field" 
	data-fieldname="seller" 
	data-signal-error-for="seller{$id}" 
	data-itemtype="integrated_edit_field" data-itemid="integrated_edit_field1" {$item_integrated_edit_field1} data-pageid="{$pageid}" data-field="seller" >


	<label class="r-edit-label control-label" for="{$labelfor_seller}">
		{BEGIN seller_label}{$label purchases seller }{END seller_label}
	</label>
	<div class="r-edit-field">
		{$seller_editcontrol}	</div>
	<div class="r-edit-tooltip" data-helpfor="seller">
		<div class="text-muted" >
		{$tooltip purchases seller }		</div>
	</div>
</div>


{END seller_fieldblock}
											
{BEGIN transport_by_fieldblock}


<div class="r-integrated-field form-group clearfix {$fielddispclass_transport_by}  r-vertical-field" 
	data-fieldname="transport_by" 
	data-signal-error-for="transport_by{$id}" 
	data-itemtype="integrated_edit_field" data-itemid="integrated_edit_field2" {$item_integrated_edit_field2} data-pageid="{$pageid}" data-field="transport_by" >


	<label class="r-edit-label control-label" for="{$labelfor_transport_by}">
		{BEGIN transport_by_label}{$label purchases transport_by }{END transport_by_label}
	</label>
	<div class="r-edit-field">
		{$transport_by_editcontrol}	</div>
	<div class="r-edit-tooltip" data-helpfor="transport_by">
		<div class="text-muted" >
		{$tooltip purchases transport_by }		</div>
	</div>
</div>


{END transport_by_fieldblock}
											
{BEGIN transport_cost_fieldblock}


<div class="r-integrated-field form-group clearfix {$fielddispclass_transport_cost}  r-vertical-field" 
	data-fieldname="transport_cost" 
	data-signal-error-for="transport_cost{$id}" 
	data-itemtype="integrated_edit_field" data-itemid="integrated_edit_field3" {$item_integrated_edit_field3} data-pageid="{$pageid}" data-field="transport_cost" >


	<label class="r-edit-label control-label" for="{$labelfor_transport_cost}">
		{BEGIN transport_cost_label}{$label purchases transport_cost }{END transport_cost_label}
	</label>
	<div class="r-edit-field">
		{$transport_cost_editcontrol}	</div>
	<div class="r-edit-tooltip" data-helpfor="transport_cost">
		<div class="text-muted" >
		{$tooltip purchases transport_cost }		</div>
	</div>
</div>


{END transport_cost_fieldblock}
											
{BEGIN invoice_image_fieldblock}


<div class="r-integrated-field form-group clearfix {$fielddispclass_invoice_image}  r-vertical-field" 
	data-fieldname="invoice_image" 
	data-signal-error-for="invoice_image{$id}" 
	data-itemtype="integrated_edit_field" data-itemid="integrated_edit_field4" {$item_integrated_edit_field4} data-pageid="{$pageid}" data-field="invoice_image" >


	<label class="r-edit-label control-label" for="{$labelfor_invoice_image}">
		{BEGIN invoice_image_label}{$label purchases invoice_image }{END invoice_image_label}
	</label>
	<div class="r-edit-field">
		{$invoice_image_editcontrol}	</div>
	<div class="r-edit-tooltip" data-helpfor="invoice_image">
		<div class="text-muted" >
		{$tooltip purchases invoice_image }		</div>
	</div>
</div>


{END invoice_image_fieldblock}
											
{BEGIN other_expenses_fieldblock}


<div class="r-integrated-field form-group clearfix {$fielddispclass_other_expenses}  r-vertical-field" 
	data-fieldname="other_expenses" 
	data-signal-error-for="other_expenses{$id}" 
	data-itemtype="integrated_edit_field" data-itemid="integrated_edit_field5" {$item_integrated_edit_field5} data-pageid="{$pageid}" data-field="other_expenses" >


	<label class="r-edit-label control-label" for="{$labelfor_other_expenses}">
		{BEGIN other_expenses_label}{$label purchases other_expenses }{END other_expenses_label}
	</label>
	<div class="r-edit-field">
		{$other_expenses_editcontrol}	</div>
	<div class="r-edit-tooltip" data-helpfor="other_expenses">
		<div class="text-muted" >
		{$tooltip purchases other_expenses }		</div>
	</div>
</div>


{END other_expenses_fieldblock}
										</td>
			{END cellblock_grid_c3}
										</tr>
										</tbody></table>
				
{BEGIN details_purchase_details}
<div data-itemtype="details_preview" data-itemid="details_preview" {$item_details_preview} data-pageid="{$pageid}" class="bs-details"> 
	<div class="panel panel-info details-grid">
		<div class="panel-heading">
			<h4 class="panel-title">
							{$caption purchase_details }				
							<span>
					{$detailslButtons_purchase_details}
																				</span>
			</h4>
		</div>
		<div class="panel-body">
			{$displayDetailTable_purchase_details}
		</div>
	</div>
</div>
{END details_purchase_details}
											<table 
	data-body-align="center"
	data-location="grid" id="form_grid_{$pageid}" data-makeup="small" {$form_grid} data-pageid="{$pageid}" 
	class="r-edit-form" cellpadding="0" cellspacing="0" 
	{$grid_hiddenattr} 
		data-form-width="1"
		
		data-v-width="4"
	>
	<tbody>
										<tr>
										

{BEGIN cellblock_grid_c3}
<td
	{$cell_grid_c3}
	class=" r-ori-vert"
	
				data-fullwidth
		
			data-cellId="grid_c3" data-pageid="{$pageid}"
		data-v-cell="4"
		
>
	<div edit-form-cell class="clearfix">
				
{BEGIN note_fieldblock}


<div class="r-integrated-field form-group clearfix {$fielddispclass_note}  r-vertical-field" 
	data-fieldname="note" 
	data-signal-error-for="note{$id}" 
	data-itemtype="integrated_edit_field" data-itemid="integrated_edit_field8" {$item_integrated_edit_field8} data-pageid="{$pageid}" data-field="note" >


	<label class="r-edit-label control-label" for="{$labelfor_note}">
		{BEGIN note_label}{$label purchases note }{END note_label}
	</label>
	<div class="r-edit-field">
		{$note_editcontrol}	</div>
	<div class="r-edit-tooltip" data-helpfor="note">
		<div class="text-muted" >
		{$tooltip purchases note }		</div>
	</div>
</div>


{END note_fieldblock}
	
								</td>
			{END cellblock_grid_c3}
								</tr>
			</tbody></table>
{END grid_block}
									{BEGIN below-grid_block}
<div class="r-form" data-location="below-grid" id="form_below-grid_{$pageid}" data-makeup="small" {$form_below-grid} data-pageid="{$pageid}"
		data-v-width="4"
	data-v-margin="1"
	
>		
	 
		<div class="row">
			 
				<div 
	data-cellId="below-grid_c1" data-pageid="{$pageid}"	{$cell_below-grid_c1}
	class="r-align-center			col-md-12
	">
	 
		{BEGIN save_edit}
<span data-itemtype="edit_save" data-itemid="edit_save" {$item_edit_save} data-pageid="{$pageid}" data-small data-button-item>
	<a type="button" title="" class="btn btn-primary   
	" {$savebutton_attrs} >
							Save			</a>
</span>
{END save_edit}
	 
		{BEGIN back_button}
<span data-itemtype="edit_back_list" data-itemid="edit_back_list" {$item_edit_back_list} data-pageid="{$pageid}" data-small data-button-item>
	<a type="button" title="" class="btn btn-default   
	" {$backbutton_attrs} >
							Back to list			</a>
</span>
{END back_button}
	 
		{BEGIN close_button}
<span data-itemtype="edit_close" data-itemid="edit_close" {$item_edit_close} data-pageid="{$pageid}" data-small data-button-item>
	<a type="button" title="" class="btn btn-default   
	" {$closebutton_attrs} >
							Cancel			</a>
</span>
{END close_button}
	</div>					</div>
	</div>		
{END below-grid_block}
			</div>
		{$footer}
	{END body}
	</body>
</html>
