<div class="top-pad"></div>

<div class="content-padding">
	<div class="box-content2 box-content-table box-search-bar table-sticky-dependant">
		<table>
			<tr>
				<td colspan="2">
					<i class="fa fa-search"></i>&nbsp;&nbsp;<input type="text" ng-model="query.search" id="search" tabindex="1" placeholder="Search codes">
				</td>
				<td>
					<div class="page-title-nav">
						<a href="/promo/discount-code/"><button class="button button-green nav-button-green"><i class="fa fa-plus"></i><span>Add Discount Code</span></button></a>
					</div>
				</td>
			</tr>
			<tr>
				<th>Community</th>
				<td>
					<select ng-model="query.community" name="searchCommunity" tabindex="2" ng-options="opt.id_community as opt.name for opt in communities"></select>
				</td>
			</tr>
		</table>
	</div>

	<div class="bar-loader bar-loader-search" ng-class="{'bar-loader-loading': loading}"></div>

	<ng-include src="'/assets/view/listview-promo-discount-code.html'"></ng-include>
	<div sticky-bottom="47" class="table-sticky-dependant">
		<div class="no-box-content-color">
			<ng-include src="'/assets/view/listview-paging.html'"></ng-include>
		</div>
	</div>
</div>
