This repository has been archived by the owner on Jan 3, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathpackage-full.html
104 lines (95 loc) · 6.6 KB
/
package-full.html
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<div class="jumbotron bg-primary inner-page-title">
<div class="container">
<header class="page-title">
<h1 class="text-center text-white text-shadow">{{ package.name[:20] }}
{% if package.countdownEnds %}<br /><span class="text-white small">
<span class="countdown-to" data-countdown="{{ package.countdownEnds }}">{{
__("Ending Soon!") }}</span></span>{% endif %}</h1>
</header>
</div>
</div>
<div id="content-outer" class="container px-0 px-lg-3">
<section class="bg-white p-0 row no-gutters border-left border-right">
<div class="col-12">
<div class="p-xl-5 p-4">
<div class="row">
<div class="col-12 col-md-6">
<img src="{{ package.image.url }}" class="img-fluid toggle-tooltip {% if package.image.borderless %}img-rounded{% else %}img-thumbnail{% endif %}" />
</div>
<div class="col-12 col-md-6">
<div class="package_summary mt-3">
<div class="container-fluid p-4 p-md-0">
<div class="row">
<div class="col-12">
<strong class="h2 mb-0">
{% if package.customPrice %}
<b>{{ __("You decide how much to pay.") }}</b>
{% elseif package.price == 0.00 %}
<b>{{ __("This item is free.") }}</b>
{% else %}
{% if package.discount.applied %}
<del class="text-danger small font-weight-bold">{{ package.discount.original|money }}</del>
{% endif %}
<b>{{ package.price|money }} <small>{{ basket.currency }}</small></b>
{% endif %}
</strong>
</div>
</div>
<div class="row mt-3">
<div class="col-12">
<div {% if package.purchasable==false %}data-toggle="tooltip" title="{{ package.reason }}" {% endif %}>
{% if package.basket %}
<a href="/checkout/packages/remove/{{ package.id }}" class="btn btn-primary btn-lg gift-weight mb-2">{{
__("Remove") }}</a>
{% else %}
{% if package.type != "single" %}
<a href="/checkout/packages/add/{{ package.id }}/subscribe" class="btn btn-success btn-lg gift-weight mb-2"
{% if package.purchasable==false %}disabled{% endif %}>{{ __("Subscribe") }}</a>
{% endif %}
{% if package.type != "subscription" %}
<a href="/checkout/packages/add/{{ package.id }}/single" class="btn btn-primary btn-lg gift-weight mb-2" {% if
package.purchasable==false %}disabled{% endif %}>{{ __("Add to basket") }} <i class="fas fa-plus ml-2"></i> </a>
{% endif %}
{% endif %}
</div>
{% if package.disable_gifting == false and package.storeGiftingEnabled %}
<a href="#" data-toggle="collapse" data-target="#giftFields"
aria-expanded="false" aria-controls="giftFields" class="btn btn-secondary btn-lg gift-weight btn-gift">{{ __("Gift this package") }} <i class="fas fa-chevron-down ml-2"></i>
</a>
{% endif %}
{% if package.disable_gifting == false and package.storeGiftingEnabled %}
<div class="collapse gift-fields" id="giftFields">
<div class="row">
<div class="col-12">
<form name="gift-form" method="get" action="/checkout/packages/add/{{ package.id }}/single/gift">
<div class="input-group mt-3">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fas fa-user"></i></span>
</div>
<input type="text" name="username" placeholder="{{ __("Enter a username to gift this package to") }}"
class="form-control" />
<div class="input-group-append">
<button class="btn btn-primary btn-sm" type="submit">Gift <i class="fas fa-chevron-right ml-1"></i></button>
</div>
</div>
</form>
</div>
</div>
</div>
{% endif %}
</div>
</div>
<div class="row mt-3">
<div class="col-12">
{{ package.description|raw }}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</div>
{% include "content_footer.html" %}