2016-04-04 12:36:30 +00:00
<ol class="breadcrumb">
2017-03-07 14:30:56 +00:00
<li><a href="/"> {{ # translate }} Home {{ / translate }} </a></li>
<li><a href="/lists/"> {{ # translate }} Lists {{ / translate }} </a></li>
2016-04-04 12:36:30 +00:00
<li class="active"> {{ name }} </li>
</ol>
<div class="pull-right">
2017-03-07 14:30:56 +00:00
<a class="btn btn-default" href="/subscription/ {{ cid }} " target="_blank" role="button"><span class="glyphicon glyphicon-share-alt" aria-hidden="true"></span> {{ # translate }} Subscription Form {{ / translate }} </a>
2016-04-04 12:36:30 +00:00
<div class="btn-group">
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
2017-03-07 14:30:56 +00:00
{{ # translate }} List Actions {{ / translate }} <span class="caret"></span>
2016-04-04 12:36:30 +00:00
</button>
<ul class="dropdown-menu">
2017-03-19 12:36:57 +00:00
<li><a href="/forms/ {{ id }} " role="button"><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> {{ # translate }} Custom Forms {{ / translate }} </a></li>
2017-03-07 14:30:56 +00:00
<li><a href="/fields/ {{ id }} " role="button"><span class="glyphicon glyphicon-tasks" aria-hidden="true"></span> {{ # translate }} Custom Fields {{ / translate }} </a></li>
<li><a href="/segments/ {{ id }} " role="button"><span class="glyphicon glyphicon-filter" aria-hidden="true"></span> {{ # translate }} Segments {{ / translate }} </a></li>
<li><a href="/lists/edit/ {{ id }} " role="button"><span class="glyphicon glyphicon-wrench" aria-hidden="true"></span> {{ # translate }} Edit List {{ / translate }} </a></li>
<li><a href="/triggers/ {{ id }} /create" role="button"><span class="glyphicon glyphicon-console" aria-hidden="true"></span> {{ # translate }} Create Trigger {{ / translate }} </a></li>
2016-04-04 12:36:30 +00:00
<li role="separator" class="divider"></li>
2017-03-07 14:30:56 +00:00
<li><a href="/lists/subscription/ {{ id }} /add" role="button"><span class="glyphicon glyphicon-plus-sign" aria-hidden="true"></span> {{ # translate }} Add Subscriber {{ / translate }} </a></li>
<li><a href="/lists/subscription/ {{ id }} /import" role="button"><span class="glyphicon glyphicon-cloud-upload" aria-hidden="true"></span> {{ # translate }} Import Subscribers {{ / translate }} </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">
2017-03-07 14:30:56 +00:00
<a class="btn btn-primary btn-sm" href="/segments/ {{ id }} /edit/ {{ segment }} " role="button"><span class="glyphicon glyphicon-wrench" aria-hidden="true"></span> {{ # translate }} Edit Segment {{ / translate }} </a>
2016-04-04 12:36:30 +00:00
</div>
{{ / if }}
<form class="form-inline" method="get">
<div class="form-group">
2017-03-07 14:30:56 +00:00
<label for="exampleInputName2"> {{ # translate }} Segment {{ / translate }} </label>
2017-03-19 12:36:57 +00:00
<select name="segment" class="form-control input-sm">
2016-05-01 21:08:44 +00:00
<option value="0">All Subscriptions</option>
2016-04-04 12:36:30 +00:00
{{ # if segments }}
2017-03-07 14:30:56 +00:00
<optgroup label=" {{ # translate }} Segments {{ / translate }} ">
2016-04-04 12:36:30 +00:00
{{ # each segments }}
<option value=" {{ id }} " {{ # if selected }} selected {{ / if }} > {{ name }} </option>
{{ / each }}
</optgroup>
{{ / if }}
<optgroup label="Actions">
2017-03-07 14:30:56 +00:00
<option value="-1"> {{ # translate }} Create New Segment {{ / translate }} …</option>
2016-04-04 12:36:30 +00:00
</optgroup>
</select>
</div>
2017-03-19 12:36:57 +00:00
<button type="submit" class="btn btn-default btn-sm"><span class="glyphicon glyphicon-filter" aria-hidden="true"></span> {{ # translate }} Filter {{ / translate }} </button>
2016-04-04 12:36:30 +00:00
</form>
<div class="clearfix"></div>
</div>
<!-- Nav tabs -->
<ul class="nav nav-tabs" role="tablist">
2017-03-07 14:30:56 +00:00
<li role="presentation" class=" {{ # if showSubscriptions }} active {{ / if }} "><a href="/lists/view/ {{ id }} " aria-controls="subscriptions" role="tab"> {{ # translate }} Subscriptions {{ / translate }} </a></li>
<li role="presentation" class=" {{ # if showImports }} active {{ / if }} "><a href="/lists/view/ {{ id }} ?tab=imports" aria-controls="imports" role="tab"> {{ # translate }} Imports {{ / translate }} </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">
2017-03-04 20:02:46 +00:00
<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,1,0">
2016-05-25 20:58:17 +00:00
<thead>
<tr>
2017-03-19 12:36:57 +00:00
<th>
2016-05-25 20:58:17 +00:00
#
</th>
<th>
2017-03-07 14:30:56 +00:00
{{ # translate }} Address {{ / translate }}
2016-05-25 20:58:17 +00:00
</th>
<th>
2017-03-07 14:30:56 +00:00
{{ # translate }} First Name {{ / translate }}
2016-05-25 20:58:17 +00:00
</th>
<th>
2017-03-07 14:30:56 +00:00
{{ # translate }} Last Name {{ / translate }}
2016-05-25 20:58:17 +00:00
</th>
{{ # each customFields }}
<th>
{{ name }}
</th>
{{ / each }}
<th>
2017-03-07 14:30:56 +00:00
{{ # translate }} Status {{ / translate }}
2016-05-25 20:58:17 +00:00
</th>
2017-03-04 20:02:46 +00:00
<th>
2017-03-07 14:30:56 +00:00
{{ # translate }} Created {{ / translate }}
2017-03-04 20:02:46 +00:00
</th>
2016-05-25 20:58:17 +00:00
<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>
2017-03-07 14:30:56 +00:00
{{ # translate }} Created {{ / translate }}
2016-04-04 12:36:30 +00:00
</th>
<th>
2017-03-07 14:30:56 +00:00
{{ # translate }} Finished {{ / translate }}
2016-04-04 12:36:30 +00:00
</th>
<th>
2017-03-07 14:30:56 +00:00
{{ # translate }} Type {{ / translate }}
2016-05-25 20:58:17 +00:00
</th>
<th>
2017-03-07 14:30:56 +00:00
{{ # translate }} Added {{ / translate }}
2016-05-25 20:58:17 +00:00
</th>
<th>
2017-03-07 14:30:56 +00:00
{{ # translate }} Updated {{ / translate }}
2016-05-25 20:58:17 +00:00
</th>
<th>
2017-03-07 14:30:56 +00:00
{{ # translate }} Failed {{ / translate }}
2016-04-04 12:36:30 +00:00
</th>
<th>
2017-03-07 14:30:56 +00:00
{{ # translate }} Status {{ / translate }}
2016-04-04 12:36:30 +00:00
</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">
2017-03-07 14:30:56 +00:00
<form method="post" class="confirm-submit" data-confirm-message=" {{ # translate }} Are you sure? This action should only be called to resolve stalled imports {{ / translate }} " action="/lists/subscription/import-restart">
2016-05-25 20:58:17 +00:00
<input type="hidden" name="_csrf" value=" {{ ../csrfToken }} ">
<input type="hidden" name="list" value=" {{ list }} ">
<input type="hidden" name="import" value=" {{ id }} ">
2017-03-07 14:30:56 +00:00
<button type="submit" class="btn btn-info btn-xs"><span class="glyphicon glyphicon-repeat" aria-hidden="true"></span> {{ # translate }} Restart {{ / translate }} </button>
2016-05-25 20:58:17 +00:00
</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">
2017-03-07 14:30:56 +00:00
{{ # translate }} No data available in table {{ / translate }}
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>