2016-04-04 12:36:30 +00:00
<ol class="breadcrumb">
<li><a href="/">Home</a></li>
<li><a href="/lists/">Lists</a></li>
<li class="active"> {{ name }} </li>
</ol>
<div class="pull-right">
<a class="btn btn-default" href="/subscription/ {{ cid }} " target="_blank" role="button"><span class="glyphicon glyphicon-share-alt" aria-hidden="true"></span> Subscription Form</a>
<div class="btn-group">
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
List Actions <span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li><a href="/fields/ {{ id }} " role="button"><span class="glyphicon glyphicon-tasks" aria-hidden="true"></span> Custom Fields</a></li>
<li><a href="/segments/ {{ id }} " role="button"><span class="glyphicon glyphicon-filter" aria-hidden="true"></span> Segments</a></li>
<li><a href="/lists/edit/ {{ id }} " role="button"><span class="glyphicon glyphicon-wrench" aria-hidden="true"></span> Edit List</a></li>
<li role="separator" class="divider"></li>
2016-05-01 21:08:44 +00:00
<li><a href="/lists/subscription/ {{ id }} /add" role="button"><span class="glyphicon glyphicon-plus-sign" aria-hidden="true"></span> Add Subscriber</a></li>
<li><a href="/lists/subscription/ {{ id }} /import" role="button"><span class="glyphicon glyphicon-cloud-upload" aria-hidden="true"></span> Import Subscribers</a></li>
2016-04-04 12:36:30 +00:00
</ul>
</div>
</div>
<h2><span class="glyphicon glyphicon-list-alt" aria-hidden="true"></span> {{ name }} </h2>
<hr>
{{ # if description }}
<div class="well well-sm"> {{{ description }}} </div>
{{ / if }}
<div class="well well-sm">
{{ # if useSegment }}
<div class="pull-right">
<a class="btn btn-primary btn-sm" href="/segments/ {{ id }} /edit/ {{ segment }} " role="button"><span class="glyphicon glyphicon-wrench" aria-hidden="true"></span> Edit Segment</a>
</div>
{{ / if }}
<form class="form-inline" method="get">
<div class="form-group">
<label for="exampleInputName2">Segment</label>
<select name="segment" class="form-control">
2016-05-01 21:08:44 +00:00
<option value="0">All Subscriptions</option>
2016-04-04 12:36:30 +00:00
{{ # if segments }}
<optgroup label="Segments">
{{ # each segments }}
<option value=" {{ id }} " {{ # if selected }} selected {{ / if }} > {{ name }} </option>
{{ / each }}
</optgroup>
{{ / if }}
<optgroup label="Actions">
2016-05-01 21:08:44 +00:00
<option value="-1">Create New Segment…</option>
2016-04-04 12:36:30 +00:00
</optgroup>
</select>
</div>
<button type="submit" class="btn btn-default"><span class="glyphicon glyphicon-filter" aria-hidden="true"></span> Filter</button>
</form>
<div class="clearfix"></div>
</div>
<!-- Nav tabs -->
<ul class="nav nav-tabs" role="tablist">
2016-05-25 20:58:17 +00:00
<li role="presentation" class=" {{ # if showSubscriptions }} active {{ / if }} "><a href="/lists/view/ {{ id }} " aria-controls="subscriptions" role="tab">Subscriptions</a></li>
<li role="presentation" class=" {{ # if showImports }} active {{ / if }} "><a href="/lists/view/ {{ id }} ?tab=imports" aria-controls="imports" role="tab">Imports</a></li>
2016-04-04 12:36:30 +00:00
</ul>
<div class="tab-content">
<div role="tabpanel" class="tab-pane {{ # if showSubscriptions }} active {{ / if }} " id="subscriptions">
2016-05-25 20:58:17 +00:00
{{ # if showSubscriptions }}
<p></p>
2016-04-04 12:36:30 +00:00
2016-05-25 20:58:17 +00:00
<div class="table-responsive">
<table data-topic-url="/lists" data-topic-id=" {{ id }} " data-sort-column="1" data-sort-order="asc" {{ # if useSegment }} data-topic-args="segment= {{ useSegment }} " {{ / if }} class="table table-bordered table-hover data-table-ajax display nowrap" width="100%" data-row-sort="0,1,1,1 {{ customSort }} ,1,0">
<thead>
<tr>
<th class="col-md-1">
#
</th>
<th>
Address
</th>
<th>
First Name
</th>
<th>
Last Name
</th>
{{ # each customFields }}
<th>
{{ name }}
</th>
{{ / each }}
<th>
Status
</th>
<th></th>
</tr>
</thead>
</table>
</div>
2016-04-04 12:36:30 +00:00
2016-05-25 20:58:17 +00:00
{{ / if }}
</div>
<div role="tabpanel" class="tab-pane {{ # if showImports }} active {{ / if }} " id="imports">
{{ # if showImports }}
<p></p>
<div class="table-responsive">
<table class="table table-bordered table-hover">
<thead>
2016-04-04 12:36:30 +00:00
<th class="col-md-1">
#
</th>
<th>
2016-05-25 20:58:17 +00:00
Created
2016-04-04 12:36:30 +00:00
</th>
<th>
2016-05-25 20:58:17 +00:00
Finished
2016-04-04 12:36:30 +00:00
</th>
<th>
2016-05-25 20:58:17 +00:00
Type
</th>
<th>
Added
</th>
<th>
Updated
</th>
<th>
Failed
2016-04-04 12:36:30 +00:00
</th>
<th>
Status
</th>
2016-05-25 20:58:17 +00:00
<th>
2016-04-04 12:36:30 +00:00
2016-05-25 20:58:17 +00:00
</th>
</thead>
<tbody>
{{ # if imports }}
{{ # each imports }}
<tr>
<th scope="row">
{{ in dex }}
</th>
<td>
<span class="datestring" data-date=" {{ created }} " title=" {{ created }} "> {{ created }} </span>
</td>
<td>
{{ # if finished }}
<span class="datestring" data-date=" {{ finished }} " title=" {{ finished }} "> {{ finished }} </span>
{{ else }}
No
{{ / if }}
</td>
<td>
{{ importType }}
</td>
<td>
{{ new }}
</td>
<td>
{{ updated }}
</td>
<td>
{{ # if failed }} <a href="/lists/subscription/ {{ ../id }} /import/ {{ id }} /failed"> {{ failed }} </a> {{ else }} 0 {{ / if }}
</td>
<td class=" {{ # if error }} text-danger {{ / if }} ">
{{ # if error }}
<strong><span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span> {{ importStatus }} </strong>
{{ else }}
<strong> {{ importStatus }} </strong>
{{ / if }}
</td>
<td class="text-center">
<form method="post" class="confirm-submit" data-confirm-message="Are you sure? This action should only be called to resolve stalled imports" action="/lists/subscription/import-restart">
<input type="hidden" name="_csrf" value=" {{ ../csrfToken }} ">
<input type="hidden" name="list" value=" {{ list }} ">
<input type="hidden" name="import" value=" {{ id }} ">
<button type="submit" class="btn btn-info btn-xs"><span class="glyphicon glyphicon-repeat" aria-hidden="true"></span> Restart</button>
</form>
</td>
</tr>
{{ / each }}
{{ else }}
2016-04-04 12:36:30 +00:00
<tr>
2016-05-25 20:58:17 +00:00
<td colspan="9">
No data available in table
2016-04-04 12:36:30 +00:00
</td>
</tr>
2016-05-25 20:58:17 +00:00
{{ / if }}
</tbody>
</table>
</div>
{{ / if }}
2016-04-04 12:36:30 +00:00
</div>
</div>