<patTemplate:tmpl name="pageoutput" unusedvars="strip">
<script language="JavaScript" type="text/javascript">
	<!--
	jomresJquery(document).ready(function () {
		make_datatable('frontend_list_properties', '{PAGETITLE}', '{LIVESITE}', '{AJAX_URL}');
		column_ids = new Array(1,3,5,6,8,9,10,11,12,13,14,15,16);
		dataTableSetHiddenColumns('frontend_list_properties', column_ids);
		});
	//-->
</script>

<h2 class="page-header">{PAGETITLE}</h2>

<div class="well">
	<patTemplate:tmpl name="rows" unusedvars="strip" type="simpleCondition" requiredVars="new_property_url">
	<a href="{NEW_PROPERTY_URL}" class="btn btn-primary"><i class="fa fa-plus"></i> {HNEW_PROPERTY}</a>
	</patTemplate:tmpl>
	<a href="#list_properties_filters" role="button" data-toggle="modal" class="btn btn-default"><i class="fa fa-filter"></i> {HFILTER}</a>
</div>
<patTemplate:tmpl name="subs" unusedvars="strip" type="simpleCondition" requiredVars="subscription_status">
<p class="alert">{SUBSCRIPTION_STATUS}</p>
</patTemplate:tmpl>

<table width="100%" id="frontend_list_properties" class="table table-striped">
	<thead>
		<tr>
			<th>{HSTATUS}</th>
			<th>{HPROPERTYUID}</th>
			<th>{HPROPERTYNAME}</th>
			<th>{HPROPERTY_STREET}</th>
			<th>{HPROPERTY_TOWN}</th>
			<th>{HPROPERTY_REGION}</th>
			<th>{HPROPERTY_POSTCODE}</th>
			<th>{HPROPERTY_COUNTRY}</th>
			<th>{HPROPERTY_TEL}</th>
			<th>{HPROPERTY_FAX}</th>
			<th>{HPROPERTY_EMAIL}</th>
			<th>{HPROPERTY_STARS}</th>
			<th>{HPROPERTY_SUPERIOR}</th>
			<th>{HPROPERTY_LAT}</th>
			<th>{HPROPERTY_LONG}</th>
			<th>{HAPPROVED}</th>
			<th>{HLASTCHANGED}</th>
		</tr>
	</thead>
	<tbody>
	</tbody>
</table>
<h5>{HLEGEND}</h5>
<span class="label label-blue">{HACTIVE}</span>
<span class="label label-red">{HNOTCOMPLETED}</span>
<span class="label label-orange">{HWAITINGAPPROVAL}</span>

<form action="" method="post" name="filterProperties" role="form">
<div id="list_properties_filters" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
				<h4 id="myModalLabel">{HFILTER}</h4>
			</div>
			<div class="modal-body">
				<div class="form-group">
					<label class="control-label" for="published">{HPUBLISHED_STATUS}</label>
					{PUBLISHED_STATUS}
				</div>
				<div class="form-group">
					<label class="control-label" for="approved">{HAPPROVED}</label>
					{APPROVED_STATUS}
				</div>
				<div class="form-group">
					<label class="control-label" for="approved">{HPTYPE}</label>
					{PTYPE}
				</div>
			</div>
			<div class="modal-footer">
				<a class="btn btn-default" data-dismiss="modal" aria-hidden="true">{COMMON_CLOSE}</a>
				<input type="submit" value="{HFILTER}" class="btn btn-primary" />
			</div>
		</div>
	</div>
</div>
<input type="hidden" name="task" value="listyourproperties" />
{CSRF_TOKEN}
</form>
</patTemplate:tmpl>