mailtrain/views/lists/segments/segments.hbs
2016-04-04 15:36:30 +03:00

57 lines
1.8 KiB
Handlebars

<ol class="breadcrumb">
<li><a href="/">Home</a></li>
<li><a href="/lists/">Lists</a></li>
<li><a href="/lists/view/{{list.id}}">{{list.name}}</a></li>
<li class="active">Segments</li>
</ol>
<div class="pull-right">
<a class="btn btn-primary" href="/segments/{{list.id}}/create" role="button"><i class="glyphicon glyphicon-plus"></i> Create Segment</a>
</div>
<h2>{{list.name}} <small>Segments</small></h2>
<hr>
<div class="table-responsive">
<table class="table table-bordered table-hover data-table display nowrap" width="100%" data-row-sort="0,1,1,0">
<thead>
<th class="col-md-1">
#
</th>
<th>
Name
</th>
<th class="col-md-2">
Match
</th>
<th class="col-md-1">
&nbsp;
</th>
</thead>
{{#if rows}}
<tbody>
{{#each rows}}
<tr>
<th scope="row">
{{index}}
</th>
<td>
<span class="glyphicon glyphicon-filter" aria-hidden="true"></span>
<a href="/segments/{{../list.id}}/view/{{id}}">{{name}}</a>
</td>
<td>
{{type}}
</td>
<td>
<span class="glyphicon glyphicon-wrench" aria-hidden="true"></span>
<a href="/segments/{{../list.id}}/edit/{{id}}">
Edit
</a>
</td>
</tr>
{{/each}}
</tbody>
{{/if}}
</table>
</div>