-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcart.tpl
executable file
·72 lines (72 loc) · 2.85 KB
/
cart.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<div class="well well-sm">
<div class="header">
<h2><strong>My Download Basket</strong></h2>
<div class="breadcrumb-wrapper">
<ol class="breadcrumb">
<li><a href="{$smarty.const.WWW_TOP}{$site->home_link}">Home</a></li>
/ Download Basket
</ol>
</div>
</div>
<div class="alert alert-info" role="alert">
<strong>RSS Feed</strong> <br/>
Your download basket can also be accessed via an <a
href="{$smarty.const.WWW_TOP}/rss?t=-2&dl=1&i={$userdata.id}&r={$userdata.rsstoken}&del=1">RSS
feed</a>. Some NZB downloaders can read this feed and automatically start downloading.
</div>
{if $results|@count > 0}
{{Form::open(['id' => 'nzb_multi_operations_form', 'method' => 'get'])}}
{{csrf_field()}}
<div class="nzb_multi_operations">
<small>With Selected:</small>
<div class="btn-group">
<input type="button" class="nzb_multi_operations_cartdelete btn btn-sm btn-danger" value="Delete"/>
{if isset($sabintegrated) && $sabintegrated !=""}
<input type="button" class="nzb_multi_operations_cartsab btn btn-sm btn-info"
value="Send to queue"/>
{/if}
<input type="button" class="nzb_multi_operations_download_cart btn btn-sm btn-success"
value="Download"/>
</div>
</div>
{{Form::close()}}
<div class="row">
<div class="col-lg-12 portlets">
<div class="panel panel-default">
<div class="panel-body pagination2 table-responsive">
<table class="data table table-striped responsive-utilities jambo-table bulk-action">
<thead>
<tr class="headings">
<th><input id="check-all" type="checkbox" class="flat-all"/> Select All</th>
<th class="column-title" style="display: table-cell;">Name</th>
<th class="column-title" style="display: table-cell;">Added</th>
<th class="column-title" style="display: table-cell;">Action</th>
</tr>
</thead>
<tbody>
{foreach $results as $result}
<tr class="{cycle values=",alt"}">
<td class="a-center ">
<input id="chk{$result->release->guid|substr:0:7}" type="checkbox" class="flat"
value="{$result->release->guid}"/>
</td>
<td>
<a title="View details"
href="{$smarty.const.WWW_TOP}/details/{$result->release->guid}">{$result->release->searchname|escape:"htmlall"|wordwrap:75:"\n":true}</a>
</td>
<td class="less"
title="Added on {$result.created_at}">{$result.created_at}</td>
<td><a title="Delete from your cart" href="/cart/delete/{$result->release->guid}"
class="btn btn-danger btn-sm" style="padding-bottom:2px;">Delete</a></td>
</tr>
{/foreach}
</tbody>
</table>
</div>
</div>
</div>
</div>
{else}
<div class="alert alert-danger" role="alert">There are no NZBs in your download basket.</div>
{/if}
</div>