-
Notifications
You must be signed in to change notification settings - Fork 64
/
Copy pathaddons.tpl
79 lines (72 loc) · 3.72 KB
/
addons.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
73
74
75
76
77
78
79
{include file="orderforms/standard_cart/common.tpl"}
<div id="order-standard_cart">
<div class="row">
<div class="cart-sidebar">
{include file="orderforms/standard_cart/sidebar-categories.tpl"}
</div>
<div class="cart-body">
<div class="header-lined">
<h1 class="font-size-36">{$LANG.cartproductaddons}</h1>
</div>
{include file="orderforms/standard_cart/sidebar-categories-collapsed.tpl"}
{if count($addons) == 0}
<div id="noAddons" class="alert alert-warning text-center" role="alert">
{$LANG.cartproductaddonsnone}
</div>
<p class="text-center">
<a href="{$WEB_ROOT}/clientarea.php" class="btn btn-default">
<i class="fas fa-arrow-circle-left"></i>
{$LANG.orderForm.returnToClientArea}
</a>
</p>
{/if}
<div class="products">
<div class="row row-eq-height">
{foreach $addons as $num => $addon}
<div class="col-md-6">
<div class="product clearfix" id="product{$num}">
<form method="post" action="{$smarty.server.PHP_SELF}?a=add" class="form-inline">
<input type="hidden" name="aid" value="{$addon.id}" />
<header class="col-12">
<span>{$addon.name}</span>
</header>
<div class="product-desc product-desc-full-width">
<p>{$addon.description|nl2br}</p>
<div class="form-group">
<select name="productid" id="inputProductId{$num}" class="field form-control">
{foreach $addon.productids as $product}
<option value="{$product.id}">
{$product.product}{if $product.domain} - {$product.domain}{/if}
</option>
{/foreach}
</select>
</div>
</div>
<div class="clearfix"></div>
<footer class="col-12 text-right">
<div class="product-pricing">
{if $addon.free}
{$LANG.orderfree}
{else}
<span class="price">{$addon.recurringamount} {$addon.billingcycle}</span>
{if $addon.setupfee}<br />+ {$addon.setupfee} {$LANG.ordersetupfee}{/if}
{/if}
</div>
<button type="submit" class="btn btn-success btn-sm">
<i class="fas fa-shopping-cart"></i>
{$LANG.ordernowbutton}
</button>
</footer>
</form>
</div>
</div>
{if $num % 2 != 0}
</div>
<div class="row row-eq-height">
{/if}
{/foreach}
</div>
</div>
</div>
</div>
</div>