2018-02-12 05:47:26 +10:00
{{ > partials / menu }}
2018-01-07 04:55:48 +10:00
<div class="col-lg-9">
2018-02-06 05:51:04 +10:00
<div class="row">
<div class="col-md-10">
<form method="post" id="settingsForm" action="/admin/settings/update" data-toggle="validator">
2019-11-06 18:31:25 +10:00
<h2 class="clearfix"> {{ @ root .__ "General settings" }}
2018-02-06 05:51:04 +10:00
<div class="pull-right">
2019-11-06 18:31:25 +10:00
<button type="submit" id="btnSettingsUpdate" class="btn btn-success"> {{ @ root .__ "Update" }} </button>
2018-02-06 05:51:04 +10:00
</h2>
<div class="form-group">
2019-11-06 18:31:25 +10:00
<label> {{ @ root .__ "Cart name" }} *</label>
2018-02-06 05:51:04 +10:00
<input type="text" class="form-control" name="cartTitle" value=" {{ config .cartTitle }} " required>
<p class="help-block">
2019-11-06 18:31:25 +10:00
{{ @ root .__ "This element is critical for search engine optimisation. Cart title is displayed if your logo is hidden." }}
2018-02-06 05:51:04 +10:00
</p>
</div>
<div class="form-group">
2019-11-06 18:31:25 +10:00
<label> {{ @ root .__ "Cart description" }} *</label>
2018-02-06 05:51:04 +10:00
<input type="text" class="form-control" name="cartDescription" value=" {{ config .cartDescription }} " required>
2019-11-06 18:31:25 +10:00
<p class="help-block"> {{ @ root .__ "This description shows when your website is listed in search engine results." }} </p>
2018-02-06 05:51:04 +10:00
</div>
<div class="form-group">
2019-11-06 18:31:25 +10:00
<label> {{ @ root .__ "Cart image/logo" }} </label>
2018-02-06 05:51:04 +10:00
<input type="text" class="form-control" name="cartLogo" value=" {{ config .cartLogo }} ">
</div>
<div class="form-group">
2019-11-06 18:31:25 +10:00
<label> {{ @ root .__ "Cart URL" }} *</label>
2018-02-06 05:51:04 +10:00
<input type="text" class="form-control" name="baseUrl" value=" {{ config .baseUrl }} " required>
2019-11-06 18:31:25 +10:00
<p class="help-block"> {{ @ root .__ "This URL is used in sitemaps and when your customer returns from completing their payment." }} </p>
2018-02-06 05:51:04 +10:00
</div>
<div class="form-group">
2019-11-06 18:31:25 +10:00
<label> {{ @ root .__ "Cart Email" }} *</label>
2018-02-06 05:51:04 +10:00
<input type="email" class="form-control" name="emailAddress" value=" {{ config .emailAddress }} " required>
2019-11-06 18:31:25 +10:00
<p class="help-block"> {{ @ root .__ "This is used as the \"from\" email when sending receipts to your customers." }} </p>
2018-02-06 05:51:04 +10:00
</div>
<div class="form-group">
2019-11-06 18:31:25 +10:00
<label> {{ @ root .__ "Flat shipping rate" }} *</label>
2018-02-06 05:51:04 +10:00
<input type="text" class="form-control" name="flatShipping" value=" {{ config .flatShipping }} " required>
2019-11-06 18:31:25 +10:00
<p class="help-block"> {{ @ root .__ "A flat shipping rate applied to all orders." }} </p>
2018-02-06 05:51:04 +10:00
</div>
<div class="form-group">
2019-11-06 18:31:25 +10:00
<label> {{ @ root .__ "Free shipping threshold" }} </label>
2018-02-06 05:51:04 +10:00
<input type="text" class="form-control" name="freeShippingAmount" value=" {{ config .freeShippingAmount }} ">
2019-11-06 18:31:25 +10:00
<p class="help-block"> {{ @ root .__ "Orders over this value will mean the shipped will the FREE. Set to high value if you always want to charge shipping." }} </p>
2018-02-06 05:51:04 +10:00
</div>
<div class="form-group">
2019-11-06 18:31:25 +10:00
<label> {{ @ root .__ "Payment gateway" }} </label>
2018-02-06 05:51:04 +10:00
<select class="form-control" name="paymentGateway">
<option {{ selectState 'paypal' config .paymentGateway }} value="paypal">Paypal</option>
<option {{ selectState 'stripe' config .paymentGateway }} value="stripe">Stripe</option>
</select>
2019-11-06 18:31:25 +10:00
<p class="help-block"> {{ @ root .__ "Payment_Gateway_Info" }} </p>
2018-02-06 05:51:04 +10:00
</div>
<div class="form-group">
2019-11-06 18:31:25 +10:00
<label> {{ @ root .__ "Currency symbol" }} </label>
2018-02-06 05:51:04 +10:00
<input type="text" class="form-control" name="currencySymbol" value=" {{ currencySymbol config .currencySymbol }} ">
2019-11-06 18:31:25 +10:00
<p class="help-block"> {{ @ root .__ "Set this to your currency symbol. Eg: $, £, €" }} </p>
2018-02-06 05:51:04 +10:00
</div>
<div class="form-group">
2019-11-06 18:31:25 +10:00
<label> {{ @ root .__ "Theme" }} </label>
2018-02-06 05:51:04 +10:00
<select class="form-control" name="theme">
{{ # each themes }}
2018-01-07 04:55:48 +10:00
<option {{ selectState this ../config .theme }} value=" {{ this }} "> {{ this }} </option>
2018-02-06 05:51:04 +10:00
{{ / each }}
</select>
2019-11-06 18:31:25 +10:00
<p class="help-block"> {{ @ root .__ "Theme_Info" }} </p>
2018-02-06 05:51:04 +10:00
</div>
<div class="form-group">
2019-11-06 18:31:25 +10:00
<label> {{ @ root .__ "Products per row" }} </label>
2018-02-06 05:51:04 +10:00
<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>
2019-11-06 18:31:25 +10:00
<p class="help-block"> {{ @ root .__ "The number of products to be displayed across the page." }} </p>
2018-02-06 05:51:04 +10:00
</div>
<div class="form-group">
2019-11-06 18:31:25 +10:00
<label> {{ @ root .__ "Products per page" }} </label>
2018-02-06 05:51:04 +10:00
<input type="number" class="form-control" name="productsPerPage" value=" {{ config .productsPerPage }} ">
2019-11-06 18:31:25 +10:00
<p class="help-block"> {{ @ root .__ "The number of products to be displayed on each page." }} </p>
2018-02-06 05:51:04 +10:00
</div>
<div class="form-group">
2019-11-06 18:31:25 +10:00
<label> {{ @ root .__ "Menu Enabled" }} : </label>
2018-02-06 05:51:04 +10:00
<div class="checkbox">
<label>
<input class="settingsMenuEnabled" type="checkbox" {{ checkedState config .menuEnabled }} id="menuEnabled"
name="menuEnabled">
</label>
</div>
2019-11-06 18:31:25 +10:00
<p class="help-block"> {{{ @ root .__ "Menu_Enabled_Info" }}} </p>
2018-02-06 05:51:04 +10:00
</div>
<div class="form-group">
2019-11-06 18:31:25 +10:00
<label> {{ @ root .__ "Menu header" }} </label>
2018-02-06 05:51:04 +10:00
<input type="text" class="form-control" name="menuTitle" value=" {{ config .menuTitle }} " placeholder="Menu">
2019-11-06 18:31:25 +10:00
<p class="help-block"> {{ @ root .__ "The heading text for your menu." }} </p>
2018-02-06 05:51:04 +10:00
</div>
<div class="form-group">
2019-11-06 18:31:25 +10:00
<label> {{ @ root .__ "Menu location" }} : </label>
2018-02-06 05:51:04 +10:00
<select class="form-control" name="menuLocation">
<option {{ selectState 'top' config .menuLocation }} >top</option>
<option {{ selectState 'side' config .menuLocation }} >side</option>
</select>
2019-11-06 18:31:25 +10:00
<p class="help-block"> {{ @ root .__ "The location of your menu." }} </p>
2018-02-06 05:51:04 +10:00
</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">
2019-11-06 18:31:25 +10:00
<p class="help-block"> {{{ @ root .__ "Google_Analytics_Info" }}}
2018-02-06 05:51:04 +10:00
</p>
</div>
<div class="form-group">
2019-11-06 18:31:25 +10:00
<label> {{ @ root .__ "Custom CSS" }} </label>
2018-02-06 05:51:04 +10:00
<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 class="settingsMenuEnabled" 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">
2019-11-06 18:31:25 +10:00
<button id="sendTestEmail" class="btn btn-success"> {{ @ root .__ "Send test email" }} </button>
2018-02-06 05:51:04 +10:00
</div>
</div>
</div>
</div>