<div class="content2">
<h1>{{@page_data.title}}</h1>
<include href="pagination.htm" />
<table class="work_table" id="search_partners_table">
	<tr>
		<th>
			ФИО
		</th>
		<th width="150">
			Карта
		</th>
		<th width="100">
			Телефон
		</th>
		<th width="100">
		</th>
	</tr>
	<repeat group="{{@partners}}" value="{{@p}}">
	<tr class="product_line">
		<td>
			{{@p.name}}
			<check if="{{@p.loyalty_type==2}}">
			<br>
			<small>Баллы: {{@p.bonus?number_format(@p.bonus, 0):0}}</small>
			</check>
		</td>
		<td align="center">
			{{@p.card}}
		</td>
		<td align="center">
			{{@p.phone}}
		</td>
		<td>
			<input type="button" value="Выбрать" class="send_ajax" href="/receipts/add_partner?partner_id={{@p.partner_id}}">
		</td>
	</tr>
	</repeat>
</table>
</div>