<a class="btn btn-primary" href="#modal-example" data-id="{{row.id}}" data-row="{{row.id}}" id="buttonModal" role="button" data-toggle="modal" >
узнать айди {{ row.id }}
</a>
<a data-id="{{row.id}}"><button type="button" data-id="{{row.id}}" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal">
Заметка
</button></a>
<div class="services">
{% if row.export_auto == -1 %}
<label class="service" for="auto-{{row.id}}">
<input id="auto-{{row.id}}" type="checkbox" name="services[auto]" value="1">
<span>auto</span>
</label>
{% endif %}
{% if row.export_auto1 == -1 %}
<label class="service" for="auto1-{{row.id}}">
<input id="auto1-{{row.id}}" type="checkbox" name="services[auto1]" value="1">
<span>auto1</span>
</label>
{% endif %}
{% if row.export_auto3 == -1 %}
<label class="service" for="auto3-{{row.id}}">
<input id="auto3-{{row.id}}" type="checkbox" name="services[auto3]" value="1">
<span>auto3</span>
</label>
{% endif %}
</div>
{% extends "_theme.tpl" %}
{% block title %}Личный кабинет{% endblock %}
{% block main %}
<tr>
<td id="inside">
<div class="towidth">
<div class="inside-admin">
{% block main_inside %}
{% if rows %}
<div class="panel panel-default">
<div class="panel-heading">Избранное</div>
<table class="table table-striped table-hover">
<thead>
{% for k,v in orders %}
<th {% if in_array(k, ['area', '__price']) %}style="text-align:right"{% endif %}><nobr>
{% if order == k %}
{% if sort == 'asc' %}<a href="{{url}}?page={{page}}&order={{k}}&sort=desc">{{v}} <i class="glyphicon glyphicon-chevron-up"></i></a>
{% else %}<a href="{{url}}?page={{page}}&order={{k}}&sort=asc">{{v}} <i class="glyphicon glyphicon-chevron-down"></i></a>
{% endif %}
{% else %}
<a href="{{url}}?page={{page}}&order={{k}}&sort=desc">{{v}}</a>
{% endif %}
</nobr></th>
{% endfor %}
</thead>