329 lines
19 KiB
Smarty
329 lines
19 KiB
Smarty
<style>
|
|
#sandbox_text_enabled {
|
|
color: red;
|
|
}
|
|
|
|
.t--strong {
|
|
font-weight: bold;
|
|
}
|
|
</style>
|
|
|
|
<div class="imoje-wrap bootstrap">
|
|
{if $imoje_msg != ''}
|
|
<div class="bootstrap">
|
|
<div class="{if $imoje_msg.type == 'error'}alert alert-danger{else}alert alert-success{/if}">{$imoje_msg.message}</div>
|
|
</div>
|
|
{/if}
|
|
<div class="imoje-header">
|
|
<span class="imoje-intro">
|
|
<img width="85" alt="imoje" src="{$module_dir}logo.svg"/>
|
|
</span>
|
|
</div>
|
|
|
|
<div class="imoje-half">
|
|
<form id="imoje-configuration" method="post" name="imoje-configuration">
|
|
<h3>
|
|
<img src="{$module_dir}assets/img/icon-config.gif" alt="config icon"
|
|
class="config-icon"/>{l s='Configuration' mod='imoje'}
|
|
</h3>
|
|
<p class="t--strong">{l s='The module requires a configuration in the imoje administration panel. Go to imoje.ing.pl and log in to the administration panel. Go to stores tab and enter the notification address in the appropriate field and copy the configuration keys. Copy the keys into the fields described below.' mod='imoje'}</p>
|
|
<hr/>
|
|
{if $imoje_sandbox == 1}
|
|
<h3 id="sandbox_text_enabled">{l s='Sandbox mode is enabled' mod='imoje'}!</h3>
|
|
<hr/>
|
|
<br/>
|
|
{/if}
|
|
<div id="imoje">
|
|
|
|
<label for="imoje_debug_mode">{l s='Debug mode' mod='imoje'}</label>
|
|
<div class="margin-form">
|
|
<select name="imoje_debug_mode" class="imoje-sel-en">
|
|
<option value="0" {if $imoje_debug_mode == 0}selected{/if}>{l s='Off' mod='imoje'}</option>
|
|
<option value="1" {if $imoje_debug_mode == 1}selected{/if}>{l s='On' mod='imoje'}</option>
|
|
</select>
|
|
</div>
|
|
|
|
<label for="imoje_sandbox">{l s='Sandbox' mod='imoje'}</label>
|
|
<div class="margin-form">
|
|
<select name="imoje_sandbox" class="imoje-sel-en">
|
|
<option value="0" {if $imoje_sandbox == 0}selected{/if}>{l s='Off' mod='imoje'}</option>
|
|
<option value="1" {if $imoje_sandbox == 1}selected{/if}>{l s='On' mod='imoje'}</option>
|
|
</select>
|
|
</div>
|
|
|
|
<label for="imoje_create_order_arrangement">{l s='Create order' mod='imoje'}</label>
|
|
<div class="margin-form">
|
|
<select name="imoje_create_order_arrangement" class="imoje-sel-en">
|
|
<option value="0"
|
|
{if $imoje_create_order_arrangement == 0}selected{/if}>{l s='After checkout' mod='imoje'}</option>
|
|
<option value="1"
|
|
{if $imoje_create_order_arrangement == 1}selected{/if}>{l s='After IPN' mod='imoje'}</option>
|
|
</select>
|
|
</div>
|
|
<br/>
|
|
|
|
<div id="imoje_data">
|
|
<label for="imoje_merchant_id">{l s='Merchant ID' mod='imoje'}</label>
|
|
<div class="margin-form">
|
|
<input type="text" class="text" name="imoje_merchant_id" id="imoje_merchant_id"
|
|
value="{$imoje_merchant_id|escape:'htmlall':'UTF-8'}" required
|
|
data-error-msg="{l s='Merchant ID is not a valid key' mod='imoje'}"/>
|
|
</div>
|
|
<label for="imoje_service_id">{l s='Service ID' mod='imoje'}</label>
|
|
<div class="margin-form">
|
|
<input type="text" class="text" name="imoje_service_id" id="imoje_service_id"
|
|
value="{$imoje_service_id|escape:'htmlall':'UTF-8'}" required
|
|
data-error-msg="{l s='Service ID is not a valid key' mod='imoje'}"/>
|
|
</div>
|
|
<label for="imoje_service_key">{l s='Service key' mod='imoje'}</label>
|
|
<div class="margin-form">
|
|
<input type="text" class="text" name="imoje_service_key" id="imoje_service_key"
|
|
value="{$imoje_service_key|escape:'htmlall':'UTF-8'}" required
|
|
data-error-msg="{l s='Service Key is not a valid key' mod='imoje'}"/>
|
|
</div>
|
|
|
|
<label for="imoje_token">{l s='Authorization token' mod='imoje'}</label>
|
|
<div class="margin-form">
|
|
<input type="text" class="text" name="imoje_token" id="imoje_token"
|
|
value="{$imoje_token|escape:'htmlall':'UTF-8'}"/>
|
|
</div>
|
|
<br/>
|
|
<label for="imoje_ga_key">{l s='Google Analytics key' mod='imoje'}</label>
|
|
<div class="margin-form">
|
|
<input type="text" class="text" name="imoje_ga_key" id="imoje_ga_key"
|
|
value="{$imoje_ga_key|escape:'htmlall':'UTF-8'}"
|
|
data-error-msg="{l s='Google Analytics key is not a valid' mod='imoje'}"/>
|
|
</div>
|
|
<hr/>
|
|
|
|
<h3>
|
|
{l s='imoje' mod='imoje'}
|
|
</h3>
|
|
<hr/>
|
|
<br/>
|
|
<label for="imoje_payment_title">{l s='Payment title' mod='imoje'}</label>
|
|
<div class="margin-form">
|
|
<input type="text" class="text" name="imoje_payment_title" id="imoje_payment_title"
|
|
placeholder="{$imoje_payment_title_default}"
|
|
value="{if $imoje_payment_title}{$imoje_payment_title|escape:'htmlall':'UTF-8'}{/if}"/>
|
|
</div>
|
|
<label for='imoje_button'>{l s='Show payment button (checkout)' mod='imoje'}</label>
|
|
<div class="margin-form">
|
|
<input value="0"
|
|
name='imoje_imoje_button' type="hidden">
|
|
<input {if $imoje_imoje_button}checked{/if} value="1" class="checkbox"
|
|
name='imoje_imoje_button' type="checkbox">
|
|
{l s='Enable' mod='imoje'}
|
|
</div>
|
|
<label for='imoje_hide_brand'>{l s='Hide brand' mod='imoje'}</label>
|
|
<div class="margin-form">
|
|
<input value="0"
|
|
name='imoje_hide_brand' type="hidden">
|
|
<input {if $imoje_hide_brand}checked{/if} value="1" class="checkbox"
|
|
name='imoje_hide_brand' type="checkbox">
|
|
{l s='Enable' mod='imoje'}
|
|
</div>
|
|
<label for="imoje_currencies[]">{l s='Available currencies' mod='imoje'}
|
|
({l s='if you want pick more currency hold CTRl and press left button mouse on each one' mod='imoje'}
|
|
)</label>
|
|
<div class="margin-form">
|
|
<select class="imoje_currencies" name="imoje_currencies[]" multiple="multiple">
|
|
{foreach from=$imoje_available_currencies item=foo}
|
|
<option value="{$foo}"
|
|
{if in_array($foo, $imoje_currencies)}selected{/if}>{$foo}</option>
|
|
{/foreach}
|
|
</select>
|
|
</div>
|
|
|
|
<hr/>
|
|
<h3>
|
|
{l s='BLIK' mod='imoje'}
|
|
</h3>
|
|
<hr/>
|
|
<br/>
|
|
<label for="imoje_blik_payment_title">{l s='Payment title' mod='imoje'}</label>
|
|
<div class="margin-form">
|
|
<input type="text" class="text" name="imoje_blik_payment_title"
|
|
id="imoje_blik_payment_title"
|
|
placeholder="{$imoje_blik_payment_title_default}"
|
|
value="{if $imoje_blik_payment_title}{$imoje_blik_payment_title|escape:'htmlall':'UTF-8'}{/if}"/>
|
|
</div>
|
|
<label for='imoje_blik_button'>{l s='Show payment button (checkout)' mod='imoje'}</label>
|
|
<div class="margin-form">
|
|
<input value="0"
|
|
name='imoje_blik_button' type="hidden">
|
|
<input {if $imoje_blik_button}checked{/if} value="1" class="checkbox"
|
|
name='imoje_blik_button' type="checkbox">
|
|
{l s='Enable' mod='imoje'}
|
|
</div>
|
|
<label for='imoje_blik_hide_brand'>{l s='Hide brand' mod='imoje'}</label>
|
|
<div class="margin-form">
|
|
<input value="0"
|
|
name='imoje_blik_hide_brand' type="hidden">
|
|
<input {if $imoje_blik_hide_brand}checked{/if} value="1" class="checkbox"
|
|
name='imoje_blik_hide_brand' type="checkbox">
|
|
{l s='Enable' mod='imoje'}
|
|
</div>
|
|
<label for='imoje_blik_code_checkout'>{l s='Display code field to pay in store' mod='imoje'}</label>
|
|
<div class="margin-form">
|
|
<input value="0"
|
|
name='imoje_blik_code_checkout' type="hidden">
|
|
<input {if $imoje_blik_code_checkout}checked{/if} value="1" class="checkbox"
|
|
name='imoje_blik_code_checkout' type="checkbox">
|
|
{l s='Enable' mod='imoje'}
|
|
</div>
|
|
{* <label for='imoje_blik_oneclick'>{l s='Activate OneClick' mod='imoje'}</label>*}
|
|
{* <div class="margin-form">*}
|
|
{* <input value="0"*}
|
|
{* name='imoje_blik_oneclick' type="hidden">*}
|
|
{* <input {if $imoje_blik_oneclick}checked{/if} value="1" class="checkbox"*}
|
|
{* name='imoje_blik_oneclick' type="checkbox">*}
|
|
{* {l s='Enable' mod='imoje'}*}
|
|
{* </div>*}
|
|
<label for="imoje_blik_currencies[]">{l s='Available currencies' mod='imoje'}
|
|
({l s='if you want pick more currency hold CTRl and press left button mouse on each one' mod='imoje'}
|
|
)</label>
|
|
<div class="margin-form">
|
|
<select class="imoje_blik_currencies" name="imoje_blik_currencies[]" multiple="multiple">
|
|
{foreach from=$imoje_available_currencies item=foo}
|
|
<option value="{$foo}"
|
|
{if in_array($foo, $imoje_blik_currencies)}selected{/if}>{$foo}</option>
|
|
{/foreach}
|
|
</select>
|
|
</div>
|
|
<hr/>
|
|
<h3>
|
|
{l s='PBL' mod='imoje'}
|
|
</h3>
|
|
<hr/>
|
|
<br/>
|
|
<label for="imoje_pbl_payment_title">{l s='Payment title' mod='imoje'}</label>
|
|
<div class="margin-form">
|
|
<input type="text" class="text" name="imoje_pbl_payment_title" id="imoje_pbl_payment_title"
|
|
placeholder="{$imoje_pbl_payment_title_default}"
|
|
value="{if $imoje_pbl_payment_title}{$imoje_pbl_payment_title|escape:'htmlall':'UTF-8'}{/if}"/>
|
|
</div>
|
|
<label for='imoje_pbl_button'>{l s='Show payment button (checkout)' mod='imoje'}</label>
|
|
<div class="margin-form">
|
|
<input value="0"
|
|
name='imoje_pbl_button' type="hidden">
|
|
<input {if $imoje_pbl_button}checked{/if} value="1" class="checkbox"
|
|
name='imoje_pbl_button' type="checkbox">
|
|
{l s='Enable' mod='imoje'}
|
|
</div>
|
|
<label for='imoje_pbl_hide_brand'>{l s='Hide brand' mod='imoje'}</label>
|
|
<div class="margin-form">
|
|
<input value="0"
|
|
name='imoje_pbl_hide_brand' type="hidden">
|
|
<input {if $imoje_pbl_hide_brand}checked{/if} value="1" class="checkbox"
|
|
name='imoje_pbl_hide_brand' type="checkbox">
|
|
{l s='Enable' mod='imoje'}
|
|
</div>
|
|
<label for="imoje_pbl_currencies[]">{l s='Available currencies' mod='imoje'}
|
|
({l s='if you want pick more currency hold CTRl and press left button mouse on each one' mod='imoje'}
|
|
)</label>
|
|
<div class="margin-form">
|
|
<select class="imoje_pbl_currencies" name="imoje_pbl_currencies[]" multiple="multiple">
|
|
{foreach from=$imoje_available_currencies item=foo}
|
|
<option value="{$foo}"
|
|
{if in_array($foo, $imoje_pbl_currencies)}selected{/if}>{$foo}</option>
|
|
{/foreach}
|
|
</select>
|
|
</div>
|
|
<hr/>
|
|
<h3>
|
|
{l s='Cards' mod='imoje'}
|
|
</h3>
|
|
<hr/>
|
|
<br/>
|
|
<label for="imoje_cards_payment_title">{l s='Payment title' mod='imoje'}</label>
|
|
<div class="margin-form">
|
|
<input type="text" class="text" name="imoje_cards_payment_title" id="imoje_cards_payment_title"
|
|
placeholder="{$imoje_cards_payment_title_default}"
|
|
value="{if $imoje_cards_payment_title}{$imoje_cards_payment_title|escape:'htmlall':'UTF-8'}{/if}"/>
|
|
</div>
|
|
<label for='imoje_cards_button'>{l s='Show payment button (checkout)' mod='imoje'}</label>
|
|
<div class="margin-form">
|
|
<input value="0"
|
|
name='imoje_cards_button' type="hidden">
|
|
<input {if $imoje_cards_button}checked{/if} value="1" class="checkbox"
|
|
name='imoje_cards_button' type="checkbox">
|
|
{l s='Enable' mod='imoje'}
|
|
</div>
|
|
<label for='imoje_cards_hide_brand'>{l s='Hide brand' mod='imoje'}</label>
|
|
<div class="margin-form">
|
|
<input value="0"
|
|
name='imoje_cards_hide_brand' type="hidden">
|
|
<input {if $imoje_cards_hide_brand}checked{/if} value="1" class="checkbox"
|
|
name='imoje_cards_hide_brand' type="checkbox">
|
|
{l s='Enable' mod='imoje'}
|
|
</div>
|
|
<label for="imoje_cards_currencies[]">{l s='Available currencies' mod='imoje'}
|
|
({l s='if you want pick more currency hold CTRl and press left button mouse on each one' mod='imoje'}
|
|
)</label>
|
|
<div class="margin-form">
|
|
<select class="imoje_cards_currencies" name="imoje_cards_currencies[]" multiple="multiple">
|
|
{foreach from=$imoje_available_currencies item=foo}
|
|
<option value="{$foo}"
|
|
{if in_array($foo, $imoje_cards_currencies)}selected{/if}>{$foo}</option>
|
|
{/foreach}
|
|
</select>
|
|
</div>
|
|
<hr/>
|
|
<h3>
|
|
{l s='imoje pay later' mod='imoje'}
|
|
</h3>
|
|
<hr/>
|
|
<br/>
|
|
<label for="imoje_paylater_payment_title">{l s='Payment title' mod='imoje'}</label>
|
|
<div class="margin-form">
|
|
<input type="text" class="text" name="imoje_paylater_payment_title"
|
|
id="imoje_paylater_payment_title"
|
|
placeholder="{$imoje_paylater_payment_title_default}"
|
|
value="{if $imoje_paylater_payment_title}{$imoje_paylater_payment_title|escape:'htmlall':'UTF-8'}{/if}"/>
|
|
</div>
|
|
<label for='imoje_paylater_button'>{l s='Show payment button (checkout)' mod='imoje'}</label>
|
|
<div class="margin-form">
|
|
<input value="0"
|
|
name='imoje_paylater_button' type="hidden">
|
|
<input {if $imoje_paylater_button}checked{/if} value="1" class="checkbox"
|
|
name='imoje_paylater_button' type="checkbox">
|
|
{l s='Enable' mod='imoje'}
|
|
</div>
|
|
<label for='imoje_paylater_hide_brand'>{l s='Hide brand' mod='imoje'}</label>
|
|
<div class="margin-form">
|
|
<input value="0"
|
|
name='imoje_paylater_hide_brand' type="hidden">
|
|
<input {if $imoje_paylater_hide_brand}checked{/if} value="1" class="checkbox"
|
|
name='imoje_paylater_hide_brand' type="checkbox">
|
|
{l s='Enable' mod='imoje'}
|
|
</div>
|
|
|
|
<label for="imoje_paylater_currencies[]">{l s='Available currencies' mod='imoje'}
|
|
({l s='if you want pick more currency hold CTRl and press left button mouse on each one' mod='imoje'}
|
|
)</label>
|
|
<div class="margin-form">
|
|
<select class="imoje_paylater_currencies" name="imoje_paylater_currencies[]"
|
|
multiple="multiple">
|
|
{foreach from=$imoje_available_currencies item=foo}
|
|
<option value="{$foo}"
|
|
{if in_array($foo, $imoje_paylater_currencies)}selected{/if}>{$foo}</option>
|
|
{/foreach}
|
|
</select>
|
|
</div>
|
|
<hr/>
|
|
<p>
|
|
{l s='Your addres for notifications' mod='imoje'}: <span
|
|
class="imoje-text-bold">{$imoje_notification_url}</span>
|
|
</p>
|
|
<hr/>
|
|
</div>
|
|
<div class="margin-form">
|
|
<input id="submit-imoje-configuration" type="submit" class="btn btn-primary" name="submitiMoje"
|
|
value="{l s='Save' mod='imoje'}"/>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|