forked from mrvautin/expressCart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.hbs
149 lines (149 loc) · 9.26 KB
/
settings.hbs
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
{{> partials/menu}}
<main role="main" class="col-md-9 ml-sm-auto col-lg-10 px-4">
<form id="settingsForm" data-toggle="validator">
<div class="col-sm-12">
<h2>{{ @root.__ "General settings" }} <span class="float-right"><button type="submit" id="btnSettingsUpdate" class="btn btn-outline-success">{{ @root.__ "Update" }}</button></span></h2>
</div>
<div class="col-md-12">
<div class="form-group">
<label>{{ @root.__ "Cart name" }} *</label>
<input type="text" class="form-control" name="cartTitle" value="{{config.cartTitle}}" required>
<p class="help-block">
{{ @root.__ "This element is critical for search engine optimisation. Cart title is displayed if your logo is hidden." }}
</p>
</div>
<div class="form-group">
<label>{{ @root.__ "Cart description" }} *</label>
<input type="text" class="form-control" name="cartDescription" value="{{config.cartDescription}}" required>
<p class="help-block">{{ @root.__ "This description shows when your website is listed in search engine results." }}</p>
</div>
<div class="form-group">
<label>{{ @root.__ "Cart image/logo" }}</label>
<input type="text" class="form-control" name="cartLogo" value="{{config.cartLogo}}">
</div>
<div class="form-group">
<label>{{ @root.__ "Cart URL" }} *</label>
<input type="text" class="form-control" name="baseUrl" value="{{config.baseUrl}}" required>
<p class="help-block">{{ @root.__ "This URL is used in sitemaps and when your customer returns from completing their payment." }}</p>
</div>
<div class="form-group">
<label>{{ @root.__ "Cart Email" }} *</label>
<input type="email" class="form-control" name="emailAddress" value="{{config.emailAddress}}" required>
<p class="help-block">{{ @root.__ "This is used as the \"from\" email when sending receipts to your customers." }}</p>
</div>
<div class="form-group">
<label>{{ @root.__ "Payment gateway" }}</label>
<select class="form-control" name="paymentGateway">
<option {{selectState 'paypal' config.paymentGateway}} value="paypal">Paypal</option>
<option {{selectState 'stripe' config.paymentGateway}} value="stripe">Stripe</option>
<option {{selectState 'adyen' config.paymentGateway}} value="adyen">Adyen</option>
<option {{selectState 'authorizenet' config.paymentGateway}} value="authorizenet">Authorize.Net</option>
<option {{selectState 'instore' config.paymentGateway}} value="instore">Instore</option>
<option {{selectState 'blockonomics' config.paymentGateway}} value="blockonomics">Blockonomics</option>
</select>
<p class="help-block">{{ @root.__ "Payment_Gateway_Info" }}</p>
</div>
<div class="form-group">
<label>{{ @root.__ "Currency symbol" }}</label>
<input type="text" class="form-control" name="currencySymbol" value="{{currencySymbol config.currencySymbol}}">
<p class="help-block">{{ @root.__ "Set this to your currency symbol. Eg: $, £, €" }}</p>
</div>
{{#ifCond config.paymentGateway '==' 'blockonomics'}}
<div class="form-group">
<label>{{ @root.__ "Currency ISO" }}</label>
<select class="form-control" name="currencyISO">
<option {{selectState 'USD' config.currencyISO}} value="USD">USD</option>
<option {{selectState 'EUR' config.currencyISO}} value="EUR">EUR</option>
<option {{selectState 'GBP' config.currencyISO}} value="GBP">GBP</option>
</select>
<p class="help-block">{{ @root.__ "Currency used for Blockonomics conversion" }}</p>
</div>
{{/ifCond}}
<div class="form-group">
<label>{{ @root.__ "Theme" }}</label>
<select class="form-control" name="theme">
{{#each themes}}
<option {{selectState this ../config.theme}} value="{{this}}">{{this}}</option>
{{/each}}
</select>
<p class="help-block">{{ @root.__ "Theme_Info" }}</p>
</div>
<div class="form-group">
<label>{{ @root.__ "Products per row" }}</label>
<select class="form-control" name="productsPerRow">
<option value="{{config.productsPerRow}}" hidden="hidden" selected="selected">{{config.productsPerRow}}</option>
<option {{selectState '1' config.productsPerRow}}>1</option>
<option {{selectState '2' config.productsPerRow}}>2</option>
<option {{selectState '3' config.productsPerRow}}>3</option>
<option {{selectState '4' config.productsPerRow}}>4</option>
</select>
<p class="help-block">{{ @root.__ "The number of products to be displayed across the page." }}</p>
</div>
<div class="form-group">
<label>{{ @root.__ "Products per page" }}</label>
<input type="number" class="form-control" name="productsPerPage" value="{{config.productsPerPage}}">
<p class="help-block">{{ @root.__ "The number of products to be displayed on each page." }}</p>
</div>
<div class="form-group">
<label>{{ @root.__ "Product Order By" }}</label>
<select class="form-control" name="productOrderBy">
<option {{selectState 'date' config.productOrderBy}} value="date">{{ @root.__ "Date" }}</option>
<option {{selectState 'title' config.productOrderBy}} value="title">{{ @root.__ "Title" }}</option>
</select>
<p class="help-block">{{ @root.__ "Select the field by which the product should be sorted when displayed in store." }}</p>
</div>
<div class="form-group">
<label>{{ @root.__ "Product Order" }}</label>
<select class="form-control" name="productOrder">
<option {{selectState 'descending' config.productOrder}} value="descending">{{ @root.__ "Descending" }}</option>
<option {{selectState 'ascending' config.productOrder}} value="ascending">{{ @root.__ "Ascending" }}</option>
</select>
<p class="help-block">{{ @root.__ "Select the order in which the products should be sorted." }}</p>
</div>
<div class="form-group">
<label>Footer HTML</label>
<textarea class="form-control codemirrorArea" rows="5" id="footerHtml" name="footerHtml">{{footerHtml}}</textarea>
<input type="hidden" id="footerHtml_input" name="footerHtml_input">
</div>
<div class="form-group">
<label>Google analytics</label>
<textarea class="form-control" rows="3" id="googleAnalytics" name="googleAnalytics">{{googleAnalytics}}</textarea>
<input type="hidden" id="googleAnalytics_input" name="googleAnalytics_input">
<p class="help-block">{{{ @root.__ "Google_Analytics_Info" }}}
</p>
</div>
<div class="form-group">
<label>{{ @root.__ "Custom CSS" }}</label>
<textarea class="form-control" rows="10" id="customCss" name="customCss">{{config.customCss}}</textarea>
<input type="hidden" id="customCss_input" name="customCss_input">
</div>
<div class="form-group">
<label>Email SMTP Host</label>
<input type="text" class="form-control" name="emailHost" value="{{config.emailHost}}" autocomplete="off" required>
</div>
<div class="form-group">
<label>Email SMTP Port</label>
<input type="text" class="form-control" name="emailPort" value="{{config.emailPort}}" autocomplete="off" required>
</div>
<div class="form-group">
<label>Email SMTP secure </label>
<div class="checkbox">
<label>
<input type="checkbox" {{checkedState config.emailSecure}} name="emailSecure">
</label>
</div>
</div>
<div class="form-group">
<label>Email SMTP Username</label>
<input type="text" class="form-control" name="emailUser" value="{{config.emailUser}}" autocomplete="off" required>
</div>
<div class="form-group">
<label>Email SMTP Password</label>
<input type="password" class="form-control" name="emailPassword" value="{{config.emailPassword}}" autocomplete="off" required>
</div>
<div class="form-group">
<button id="sendTestEmail" class="btn btn-outline-success">{{ @root.__ "Send test email" }}</button>
</div>
</div>
</form>
</main>