Display failed imported addresses
This commit is contained in:
parent
873d88658c
commit
172c8ce56f
12 changed files with 201 additions and 25 deletions
44
views/lists/subscription/import-failed.hbs
Normal file
44
views/lists/subscription/import-failed.hbs
Normal file
|
@ -0,0 +1,44 @@
|
|||
<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">Import status</li>
|
||||
</ol>
|
||||
|
||||
<h2>{{list.name}} <small>Failed addresses</small> <a class="btn btn-default btn-xs" href="/lists/view/{{list.id}}" role="button"><span class="glyphicon glyphicon-arrow-left" aria-hidden="true"></span> Back to list</a></h2>
|
||||
|
||||
<hr>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered table-hover display nowrap" width="100%">
|
||||
<thead>
|
||||
<th class="col-md-1">
|
||||
#
|
||||
</th>
|
||||
<th>
|
||||
Address
|
||||
</th>
|
||||
<th>
|
||||
Fail reason
|
||||
</th>
|
||||
</thead>
|
||||
{{#if rows}}
|
||||
<tbody>
|
||||
{{#each rows}}
|
||||
<tr>
|
||||
<th scope="row">
|
||||
{{index}}
|
||||
</th>
|
||||
<td>
|
||||
<a href="mailto:{{email}}">{{email}}</a>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<span class="text-danger">{{reason}}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{{/each}}
|
||||
</tbody>
|
||||
{{/if}}
|
||||
</table>
|
||||
</div>
|
|
@ -121,7 +121,13 @@
|
|||
Type
|
||||
</th>
|
||||
<th>
|
||||
Processed
|
||||
Added
|
||||
</th>
|
||||
<th>
|
||||
Updated
|
||||
</th>
|
||||
<th>
|
||||
Failed
|
||||
</th>
|
||||
<th>
|
||||
Status
|
||||
|
@ -154,7 +160,13 @@
|
|||
{{importType}}
|
||||
</td>
|
||||
<td>
|
||||
{{processed}}
|
||||
{{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}}
|
||||
|
@ -175,7 +187,7 @@
|
|||
{{/each}}
|
||||
{{else}}
|
||||
<tr>
|
||||
<td colspan="7">
|
||||
<td colspan="9">
|
||||
No data available in table
|
||||
</td>
|
||||
</tr>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue