Files
redline.com.pl/modules/inpostship/views/templates/admin/settings-15.tpl
2024-11-11 18:46:54 +01:00

674 lines
33 KiB
Smarty

{**
* NOTICE OF LICENSE
*
* This file is licenced under the Software License Agreement.
* With the purchase or the installation of the software in your application
* you accept the licence agreement.
*
* You must not modify, adapt or create derivative works of this source code
*
* @author PrestaHelp.com
* @copyright 2019 PrestaHelp
* @license LICENSE.txt
*}
<style type="text/css">
.form-group{
clear: both;overflow: hidden;margin-bottom: 10px;
}
.form-group p{
margin-left: 14%;font-size: 12px;font-style: italic;
}
.form-group .form-control{
padding: 5px;width: 300px;
}
.form-group label{
width: 440px;
}
.col-lg-6{
float: left;width: 50%;
}
</style>
<div id="content">
</div>
{include file=$phelpTop}
<fieldset>
<legend><img src="../img/t/AdminPreferences.gif" /> {l s='Settings' mod='inpostship'}</legend>
<div>
<form method="post">
<div class="form-group">
<label class="control-label col-lg-3 text-right">{l s='E-mail' mod='inpostship'}:</label>
<div class="col-lg-2">
<div class="input-group">
<span class="input-group-addon"><i class="icon icon-envelope"></i></span>
<input type="email" name="INPOSTSHIP_API_USER" value="{$api_user}" class="form-control" />
</div>
<p class="help-block">{l s='Inpost login e-mail' mod='inpostship'}</p>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 text-right">{l s='Password' mod='inpostship'}:</label>
<div class="col-lg-2">
<div class="input-group">
<span class="input-group-addon"><i class="icon icon-lock"></i></span>
<input type="text" name="INPOSTSHIP_API_PASSWD" value="{$api_pass}" class="form-control" />
</div>
<p class="help-block">{l s='Inpost login password' mod='inpostship'}</p>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 text-right">{l s='Token key' mod='inpostship'}:</label>
<div class="col-lg-9">
<div class="input-group">
<span class="input-group-addon"><i class="icon icon-key"></i></span>
<input type="text" name="INPOSTSHIP_API_KEY" value="{$api_key}" class="form-control" />
</div>
<p class="help-block">{l s='Inpost Token key access' mod='inpostship'}</p>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 text-right">{l s='Inpost organization ID' mod='inpostship'}:</label>
<div class="col-lg-1">
<div class="input-group">
<span class="input-group-addon"><i class="icon icon-home"></i></span>
<input type="text" name="INPOSTSHIP_API_ORGANIZATION" value="{$api_org}" class="form-control" />
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 text-right">{l s='Sandbox mode' mod='inpostship'}:</label>
<div class="col-lg-4">
<span class="switch prestashop-switch fixed-width-lg">
<input id="sandbox_on" onClick="toggleDraftWarning(false);showOptions(true);showRedirectProductOptions(false);" name="INPOSTSHIP_SANDBOX" value="1" type="radio" {if $api_sand == 1}checked="checked"{/if} />
<label class="radioCheck" for="sandbox_on">{l s='YES' mod='inpostship'}</label>
<input id="sandbox_off" onClick="toggleDraftWarning(true);showOptions(false);showRedirectProductOptions(true);" name="INPOSTSHIP_SANDBOX" value="0" type="radio" {if $api_sand == 0}checked="checked"{/if} />
<label class="radioCheck" for="sandbox_off">{l s='NO' mod='inpostship'}</label>
<a class="slide-button btn"></a>
</span>
</div>
<p class="help-block">Konto testowe może nie działać na koncie produkcyjnym - należy wtedy skontaktować się z Inpost w celu aktywacji trybu.<br />Można też założyć konto na https://sandbox-manager.paczkomaty.pl/auth/login i wykorzystać to konto do testów.</p>
</div>
<div class="panel-footer">
<button id="configuration_form_submit_btn" class="btn btn-default pull-right" type="submit" value="1" name="submitSaveUser"><i class="process-icon-save"></i> {l s='Save' mod='inpostship'}</button>
</div>
</form>
</div>
</fieldset>
{if !empty($api_org) && !empty($org_info)}
<br />
<fieldset>
<legend><img src="../img/t/AdminPreferences.gif" /> {l s='Organization info' mod='inpostship'}</legend>
<div>
<div class="row">
{if empty($org_info.carriers_info) && empty($org_info.services_info)}
{if $api_sand == 1}
<p class="alert alert-danger">Na tym koncie nie można używać trybu testowego!<br />Utwórz konto na https://sandbox-manager.paczkomaty.pl/auth/login lub poproś Inpost o włączenie takiej opcji.</p>
{else}
<p class="alert alert-danger">Występuje problem z Twoim kluczem API lub ID organizacji. Sprawdź czy dane są poprawne. Jeśli tak - skontaktuj się z Inpost w celu wyjaśnienia zaistniałej sytuacji.</p>
{/if}
{else}
<div class="col-lg-12">
<div class="row">
{if !empty($org_info.services_info)}
<h4>Dostępne opcje:</h4>
{foreach $org_info.services_info as $c}
{if $c.type == "inpost_locker_standard"}
<div class="col-lg-3">
<div class="alert alert-success"><b>Paczkomaty Inpost</b></div>
</div>
{/if}
{if $c.type == "inpost_locker_pass_thru"}
<div class="col-lg-3">
<div class="alert alert-success"><b>Paczkomaty Inpost - podaj dalej</b></div>
</div>
{/if}
{if $c.type == "inpost_courier_standard"}
<div class="col-lg-3">
<div class="alert alert-success"><b>Kurier Inpost</b></div>
</div>
{/if}
{/foreach}
{if $x13a}
{foreach $org_info.services_info as $c}
{if $c.type == "inpost_locker_allegro"}
<div class="col-lg-3">
<div class="alert alert-success"><b>Allegro Paczkomaty InPost</b></div>
</div>
{/if}
{if $c.type == "inpost_locker_allegro_smart"}
<div class="col-lg-3">
<div class="alert alert-success"><b>Allegro Paczkomaty InPost Smart</b></div>
</div>
{/if}
{if $c.type == "inpost_courier_allegro"}
<div class="col-lg-3">
<div class="alert alert-success"><b>Allegro Kurier InPost</b></div>
</div>
{/if}
{/foreach}
{/if}
{/if}
</div>
</div>
{/if}
</div>
</div>
</fieldset>
{/if}
<br />
<fieldset>
<legend><img src="../img/t/AdminPreferences.gif" /> {l s='Settings inpost points' mod='inpostship'}</legend>
<div>
<form method="post">
<div class="form-horizontal">
<p>
{l s='Points in base' mod='inpostship'}: <b>{$base_points}</b><br />
{l s='Inpost points' mod='inpostship'}: <b>{$inpost_points}</b><br />
</p>
</div>
<div class="ajax-inpost-result"></div>
<div class="panel-footer">
<button class="btn btn-primary pull-right" type="button" id="ajax-update-point"><i class="process-icon-refresh"></i> {l s='Ajax' mod='inpostship'} {l s='Update' mod='inpostship'}</button>
<button id="configuration_form_submit_btn" class="btn btn-default pull-right" type="submit" value="1" name="submitSaveInpostPoints"><i class="process-icon-refresh"></i> {l s='Update' mod='inpostship'}</button>
</div>
</form>
</div>
</fieldset>
<br />
<fieldset>
<legend><img src="../img/t/AdminPreferences.gif" /> {l s='Cron inpost points update' mod='inpostship'}</legend>
<div>
<div class="info">
<p class="show">{l s='Cron link' mod='inpostship'}: {$cron_link}</p>
<p class="show">{l s='Example to use:' mod='inpostship'}
<code>
wget -O /dev/null "{$cron_link}" >/dev/null 2>&1
</code></p>
</div>
</div>
</fieldset>
<br />
<fieldset>
<legend><img src="../img/t/AdminPreferences.gif" /> {l s='Settings inpost pop points' mod='inpostship'}</legend>
<form method="post">
<div class="panel">
<div class="form-horizontal">
<p class="show">
{l s='Points in base' mod='inpostship'}: <b>{$popInBase}</b><br />
{l s='Inpost points' mod='inpostship'}: <b>{$inpostPopPoints}</b><br />
</p>
</div>
<div class="panel-footer">
<button id="configuration_form_submit_btn" class="btn btn-default pull-right" type="submit" value="1" name="submitSaveInpostPopPoints"><i class="process-icon-refresh"></i> {l s='Update' mod='inpostship'}</button>
</div>
</div>
</form>
</fieldset>
<br />
<fieldset>
<legend><img src="../img/t/AdminPreferences.gif" /> {l s='Settings inpost' mod='inpostship'}</legend>
<div>
<form method="post">
<div class="form-group">
<label class="control-label col-lg-3 text-right">{l s='Labels type' mod='inpostship'}:</label>
<div class="col-lg-2">
<select name="INPOSTSHIP_PRINT_TYPE" class="" >
<option value="normal" {if $print_type == 'normal'}selected="selected"{/if}>{l s='normal (horizontal)' mod='inpostship'}</option>
<option value="A6" {if $print_type == 'A6'}selected="selected"{/if}>{l s='A6 (vertical)' mod='inpostship'}</option>
</select>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 text-right">{l s='Labels format' mod='inpostship'}:</label>
<div class="col-lg-2">
<select name="INPOSTSHIP_PRINT_FORMAT" class="" >
<option value="PDF" {if $print_format == 'PDF'}selected="selected"{/if}>{l s='PDF' mod='inpostship'}</option>
<option value="ZPL" {if $print_format == 'ZPL'}selected="selected"{/if}>{l s='ZPL' mod='inpostship'}</option>
<option value="EPL" {if $print_format == 'EPL'}selected="selected"{/if}>{l s='EPL' mod='inpostship'}</option>
</select>
</div>
</div>
{if $points && $dispatch == 'parcel_locker'}
<div class="form-group">
<label class="control-label col-lg-3 text-right">{l s='Sender machine' mod='inpostship'}:</label>
<div class="col-lg-3">
<select name="INPOSTSHIP_SENDER_MACHINE" class="" >
{foreach $points as $p}
<option value="{$p.point_code}" {if $sender_machine == $p.point_code}selected="selected"{/if}>{$p.point_code}, {$p.point_address1}, {$p.point_address2}</option>
{/foreach}
</select>
</div>
</div>
{/if}
{if $courier_1 == 1}
<div class="form-group">
<label class="control-label col-lg-3 text-right">{l s='Inpost Paczkomaty - pay on bankwire' mod='inpostship'}:</label>
<div class="col-lg-2">
<select name="INPOSTSHIP_CARRIER_PACZKOMATY">
<option value="9999999"{if $paczkomaty == 9999999} selected="selected"{/if}>{l s='disable shippment' mod='inpostship'}</option>
{foreach $carriers as $c}
<option value="{$c.id_reference}" {if $c.id_reference == $paczkomaty}selected="selected"{/if}>{$c.name}</option>
{/foreach}
</select>
</div>
</div>
{/if}
{if $courier_2 == 1}
<div class="form-group">
<label class="control-label col-lg-3 text-right">{l s='Inpost Paczkomaty - cash on delivery' mod='inpostship'}:</label>
<div class="col-lg-2">
<select name="INPOSTSHIP_CARRIER_PACZKOMATY_COD">
<option value="9999998"{if $paczkomaty_cod == 9999998} selected="selected"{/if}>{l s='disable shippment' mod='inpostship'}</option>
{foreach $carriers as $c}
<option value="{$c.id_reference}" {if $c.id_reference == $paczkomaty_cod}selected="selected"{/if}>{$c.name}</option>
{/foreach}
</select>
</div>
</div>
{/if}
{if $courier_3 == 1}
<div class="form-group">
<label class="control-label col-lg-3 text-right">{l s='Inpost Courier - pay on bankwire' mod='inpostship'}:</label>
<div class="col-lg-2">
<select name="INPOSTSHIP_CARRIER_COURIER">
<option value="9999997"{if $courier == 9999997} selected="selected"{/if}>{l s='disable shippment' mod='inpostship'}</option>
{foreach $carriers as $c}
<option value="{$c.id_reference}" {if $c.id_reference == $courier}selected="selected"{/if}>{$c.name}</option>
{/foreach}
</select>
</div>
</div>
{/if}
{if $courier_4 == 1}
<div class="form-group">
<label class="control-label col-lg-3 text-right">{l s='Inpost Courier - cash on delivery' mod='inpostship'}:</label>
<div class="col-lg-2">
<select name="INPOSTSHIP_CARRIER_COURIER_COD">
<option value="9999996"{if $courier_cod == 9999996} selected="selected"{/if}>{l s='disable shippment' mod='inpostship'}</option>
{foreach $carriers as $c}
<option value="{$c.id_reference}" {if $c.id_reference == $courier_cod}selected="selected"{/if}>{$c.name}</option>
{/foreach}
</select>
</div>
</div>
{/if}
<div class="form-group">
<label class="control-label col-lg-3 text-right">{l s='Default packtype' mod='inpostship'}:</label>
<div class="col-lg-2">
<select name="INPOSTSHIP_PACK_SIZE">
{foreach $packtypes as $key => $p}
<option value="{$key}" {if $key == $packtype}selected="selected"{/if}>{$p.name}: {$p.description}</option>
{/foreach}
</select>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 text-right">{l s='Default sending method' mod='inpostship'}:</label>
<div class="col-lg-4">
<select name="INPOSTSHIP_DISPATCH">
{foreach $dispatches as $key => $d}
{if $d->id == 'parcel_locker' || $d->id == 'pop' || $d->id == 'dispatch_order'}
<option value="{$d->id}" {if $d->id == $dispatch}selected="selected"{/if}>{$d->name} ({$d->description})</option>
{/if}
{/foreach}
</select>
</div>
</div>
{if $dispatch == 'pop'}
<div class="form-group">
<label class="control-label col-lg-3 text-right">{l s='Sender machine POP' mod='inpostship'}:</label>
<div class="col-lg-3">
<select name="INPOSTSHIP_SENDER_MACHINE_POP" class="" >
{foreach $pointsPop as $p}
<option value="{$p.point_code}" {if $selPopPoint == $p.point_code}selected="selected"{/if}>{$p.point_code}, {$p.point_address1}, {$p.point_address2}</option>
{/foreach}
</select>
</div>
</div>
{/if}
{if $dispatch == 'dispatch_order'}
<div class="form-group">
<label class="control-label col-lg-3 text-right">{l s='Default dispatch order point' mod='inpostship'}:</label>
<div class="col-lg-4">
<select name="INPOSTSHIP_DISPATCH_POINT">
{foreach $dispatch_point as $dp}
<option value=""{if $dpt == $dp->id} selected="selected"{/if}>{$dp->name}</option>
{/foreach}
<option value="0"{if $dpt == 0} selected="selected"{/if}>{l s='Dispatch order on address' mod='inpostship'}</option>
</select>
</div>
</div>
{/if}
<div class="form-group">
<label class="control-label col-lg-3 text-right">{l s='Save tracking number on default field' mod='inpostship'}:</label>
<div class="col-lg-4">
<span class="switch prestashop-switch fixed-width-lg">
<input id="tracking_on" onClick="toggleDraftWarning(false);showOptions(true);showRedirectProductOptions(false);" name="INPOSTSHIP_TRACKING_SAVE" value="1" type="radio" {if $tracking_save == 1}checked="checked"{/if} />
<label class="radioCheck" for="tracking_on">{l s='YES' mod='inpostship'}</label>
<input id="tracking_off" onClick="toggleDraftWarning(true);showOptions(false);showRedirectProductOptions(true);" name="INPOSTSHIP_TRACKING_SAVE" value="0" type="radio" {if $tracking_save == 0}checked="checked"{/if} />
<label class="radioCheck" for="tracking_off">{l s='NO' mod='inpostship'}</label>
<a class="slide-button btn"></a>
</span>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 text-right">{l s='Change order status after delivery list create' mod='inpostship'}:</label>
<div class="col-lg-4">
<span class="switch prestashop-switch fixed-width-lg">
<input id="cso_on" onClick="toggleDraftWarning(false);showOptions(true);showRedirectProductOptions(false);" name="INPOSTSHIP_ORDER_STATUS_CHANGE" value="1" type="radio" {if $osc == 1}checked="checked"{/if} />
<label class="radioCheck" for="cso_on">{l s='YES' mod='inpostship'}</label>
<input id="cso_off" onClick="toggleDraftWarning(true);showOptions(false);showRedirectProductOptions(true);" name="INPOSTSHIP_ORDER_STATUS_CHANGE" value="0" type="radio" {if $osc == 0}checked="checked"{/if} />
<label class="radioCheck" for="cso_off">{l s='NO' mod='inpostship'}</label>
<a class="slide-button btn"></a>
</span>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 text-right">{l s='Change order status to' mod='inpostship'}:</label>
<div class="col-lg-2">
<select name="INPOSTSHIP_ORDER_STATUS">
{foreach $state as $s}
<option value="{$s.id_order_state}" {if $s.id_order_state == $stateo}selected="selected"{/if}>{$s.name}</option>
{/foreach}
</select>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 text-right">{l s='Send e-mail to admin with Inpost delivery point' mod='inpostship'}:</label>
<div class="col-lg-4">
<span class="switch prestashop-switch fixed-width-lg">
<input id="adp_on" onClick="toggleDraftWarning(false);showOptions(true);showRedirectProductOptions(false);" name="INPOSTSHIP_SEND_POINT_ADMIN" value="1" type="radio" {if $adp == 1}checked="checked"{/if} />
<label class="radioCheck" for="adp_on">{l s='YES' mod='inpostship'}</label>
<input id="adp_off" onClick="toggleDraftWarning(true);showOptions(false);showRedirectProductOptions(true);" name="INPOSTSHIP_SEND_POINT_ADMIN" value="0" type="radio" {if $adp == 0}checked="checked"{/if} />
<label class="radioCheck" for="adp_off">{l s='NO' mod='inpostship'}</label>
<a class="slide-button btn"></a>
</span>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 text-right">{l s='Send e-mail to customer with Inpost delivery point' mod='inpostship'}:</label>
<div class="col-lg-4">
<span class="switch prestashop-switch fixed-width-lg">
<input id="cdp_on" onClick="toggleDraftWarning(false);showOptions(true);showRedirectProductOptions(false);" name="INPOSTSHIP_SEND_POINT_CUSTOMER" value="1" type="radio" {if $cdp == 1}checked="checked"{/if} />
<label class="radioCheck" for="cdp_on">{l s='YES' mod='inpostship'}</label>
<input id="cdp_off" onClick="toggleDraftWarning(true);showOptions(false);showRedirectProductOptions(true);" name="INPOSTSHIP_SEND_POINT_CUSTOMER" value="0" type="radio" {if $cdp == 0}checked="checked"{/if} />
<label class="radioCheck" for="cdp_off">{l s='NO' mod='inpostship'}</label>
<a class="slide-button btn"></a>
</span>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 text-right">{l s='Send e-mail to customer with tracking information' mod='inpostship'}:</label>
<div class="col-lg-4">
<span class="switch prestashop-switch fixed-width-lg">
<input id="st_on" onClick="toggleDraftWarning(false);showOptions(true);showRedirectProductOptions(false);" name="INPOSTSHIP_SEND_TRACKING" value="1" type="radio" {if $st == 1}checked="checked"{/if} />
<label class="radioCheck" for="st_on">{l s='YES' mod='inpostship'}</label>
<input id="st_off" onClick="toggleDraftWarning(true);showOptions(false);showRedirectProductOptions(true);" name="INPOSTSHIP_SEND_TRACKING" value="0" type="radio" {if $st == 0}checked="checked"{/if} />
<label class="radioCheck" for="st_off">{l s='NO' mod='inpostship'}</label>
<a class="slide-button btn"></a>
</span>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 text-right">{l s='Delivery point box position' mod='inpostship'}:</label>
<div class="col-lg-2">
<select name="INPOSTSHIP_POSITION_BOX">
<option value="1"{if $posbox == 1} selected="selected"{/if}>{l s='below the carrier' mod='inpostship'}</option>
<option value="2"{if $posbox == 2} selected="selected"{/if}>{l s='under the carrier selection' mod='inpostship'}</option>
</select>
</div>
</div>
{*
<div class="form-group">
<label class="control-label col-lg-3 text-right">{l s='Ilość paczkomatów w pobliżu' mod='inpostship'}:</label>
<div class="col-lg-1">
<input type="number" value="{$near}" name="INPOSTSHIP_NEAR" min="0" max="25" class="form-control small-input" />
</div>
</div>
*}
<div class="form-group">
<label class="control-label col-lg-3 text-right">{l s='Show the "Send from Inpost" when carrier has not been selected' mod='inpostship'}:</label>
<div class="col-lg-4">
<span class="switch prestashop-switch fixed-width-lg">
<input id="sfi_on" onClick="toggleDraftWarning(false);showOptions(true);showRedirectProductOptions(false);" name="INPOSTSHIP_SHOW_SFI" value="1" type="radio" {if $sfi == 1}checked="checked"{/if} />
<label class="radioCheck" for="sfi_on">{l s='YES' mod='inpostship'}</label>
<input id="sfi_off" onClick="toggleDraftWarning(true);showOptions(false);showRedirectProductOptions(true);" name="INPOSTSHIP_SHOW_SFI" value="0" type="radio" {if $sfi == 0}checked="checked"{/if} />
<label class="radioCheck" for="sfi_off">{l s='NO' mod='inpostship'}</label>
<a class="slide-button btn"></a>
</span>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 text-right">{l s='Show COD value when carrier is not COD' mod='inpostship'}:</label>
<div class="col-lg-4">
<span class="switch prestashop-switch fixed-width-lg">
<input id="scod_on" onClick="toggleDraftWarning(false);showOptions(true);showRedirectProductOptions(false);" name="INPOSTSHIP_SHOW_COD_VALUE" value="1" type="radio" {if $scod == 1}checked="checked"{/if} />
<label class="radioCheck" for="scod_on">{l s='YES' mod='inpostship'}</label>
<input id="scod_off" onClick="toggleDraftWarning(true);showOptions(false);showRedirectProductOptions(true);" name="INPOSTSHIP_SHOW_COD_VALUE" value="0" type="radio" {if $scod == 0}checked="checked"{/if} />
<label class="radioCheck" for="scod_off">{l s='NO' mod='inpostship'}</label>
<a class="slide-button btn"></a>
</span>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 text-right">{l s='Rodzaj mapy' mod='inpostship'}:</label>
<div class="col-lg-2">
<select name="INPOSTSHIP_MAP_TYPE" id="INPOSTSHIP_MAP_TYPE">
<option value="google"{if $imap == 'google'} selected="selected"{/if}>{l s='Google Maps' mod='inpostship'}</option>
<option value="osm"{if $imap == 'osm'} selected="selected"{/if}>{l s='OSM' mod='inpostship'}</option>
</select>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 text-right">{l s='Klucz API Google Maps' mod='inpostship'}:</label>
<div class="col-lg-4">
<input id="INPOSTSHIP_GOOGLE_MAPS_API" type="text" value="{$igma}" name="INPOSTSHIP_GOOGLE_MAPS_API" class="form-control" />
</div>
</div>
<div class="panel-footer">
<button id="configuration_form_submit_btn" class="btn btn-default pull-right" type="submit" value="1" name="submitSaveInpost"><i class="process-icon-save"></i> {l s='Save' mod='inpostship'}</button>
</div>
</form>
</div>
</fieldset>
<br />
<fieldset>
<legend><img src="../img/t/AdminPreferences.gif" /> {l s='Settings inpost - sender data' mod='inpostship'}</legend>
<div>
<form method="post">
<div class="form-group">
<label class="control-label col-lg-3 text-right">{l s='Sender name' mod='inpostship'}:</label>
<div class="col-lg-3">
<div class="input-group">
<span class="input-group-addon"><i class="icon icon-user"></i></span>
<input type="text" name="sender_name" value="{$sender_name}" class="form-control" />
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 text-right">{l s='Sender company name' mod='inpostship'}:</label>
<div class="col-lg-3">
<div class="input-group">
<span class="input-group-addon"><i class="icon icon-user"></i></span>
<input type="text" name="sender_company_name" value="{$sender_company_name}" class="form-control" />
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 text-right">{l s='Sender first name' mod='inpostship'}:</label>
<div class="col-lg-3">
<div class="input-group">
<span class="input-group-addon"><i class="icon icon-user"></i></span>
<input type="text" name="sender_firstname" value="{$sender_firstname}" class="form-control" />
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 text-right">{l s='Sender last name' mod='inpostship'}:</label>
<div class="col-lg-3">
<div class="input-group">
<span class="input-group-addon"><i class="icon icon-user"></i></span>
<input type="text" name="sender_lastname" value="{$sender_lastname}" class="form-control" />
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 text-right">{l s='Sender email' mod='inpostship'}:</label>
<div class="col-lg-3">
<div class="input-group">
<span class="input-group-addon"><i class="icon icon-envelope"></i></span>
<input type="text" name="sender_email" value="{$sender_email}" class="form-control" />
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 text-right">{l s='Sender phone' mod='inpostship'}:</label>
<div class="col-lg-3">
<div class="input-group">
<span class="input-group-addon"><i class="icon icon-phone"></i></span>
<input type="text" name="sender_phone" value="{$sender_phone}" class="form-control" />
<small>np. 500500500</small>
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 text-right">{l s='Sender street' mod='inpostship'}:</label>
<div class="col-lg-3">
<div class="input-group">
<span class="input-group-addon"><i class="icon icon-home"></i></span>
<input type="text" name="sender_street" value="{$sender_street}" class="form-control" />
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 text-right">{l s='Sender building number' mod='inpostship'}:</label>
<div class="col-lg-1">
<div class="input-group">
<span class="input-group-addon"><i class="icon icon-home"></i></span>
<input type="text" name="sender_building_number" value="{$sender_building_number}" class="form-control" />
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 text-right">{l s='Sender city' mod='inpostship'}:</label>
<div class="col-lg-3">
<div class="input-group">
<span class="input-group-addon"><i class="icon icon-home"></i></span>
<input type="text" name="sender_city" value="{$sender_city}" class="form-control" />
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 text-right">{l s='Sender postcode' mod='inpostship'}:</label>
<div class="col-lg-1">
<div class="input-group">
<span class="input-group-addon"><i class="icon icon-home"></i></span>
<input type="text" name="sender_postcode" value="{$sender_postcode}" class="form-control" />
</div>
</div>
</div>
<div class="panel-footer">
<button id="configuration_form_submit_btn" class="btn btn-default pull-right" type="submit" value="1" name="submitSaveSender"><i class="process-icon-save"></i> {l s='Save' mod='inpostship'}</button>
</div>
</form>
</div>
</fieldset>
<br />
<form method="post">
<fieldset>
<legend><img src="../img/t/AdminPreferences.gif" /> {l s='Uninstal settings' mod='inpostship'}</legend>
<div>
<div class="form-group">
<label class="control-label col-lg-3 text-right">{l s='Delete module db table' mod='inpostship'}:</label>
<div class="col-lg-9">
<span class="switch prestashop-switch fixed-width-lg">
<input id="deletetable_on" onClick="toggleDraftWarning(false);showOptions(true);showRedirectProductOptions(false);" name="INPOSTSHIP_DELETE_DATABASE" value="1" type="radio" {if $deltab == 1}checked="checked"{/if} />
<label class="radioCheck" for="deletetable_on">{l s='YES' mod='inpostship'}</label>
<input id="deletetable_off" onClick="toggleDraftWarning(true);showOptions(false);showRedirectProductOptions(true);" name="INPOSTSHIP_DELETE_DATABASE" value="0" type="radio" {if $deltab == 0}checked="checked"{/if} />
<label class="radioCheck" for="deletetable_off">{l s='NO' mod='inpostship'}</label>
<a class="slide-button btn"></a>
</span>
<p class="help-block">{l s='Select this option when you will empty db table module' mod='inpostship'}</p>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 text-right">{l s='Po odinstalowaniu resetuj informacje w module' mod='inpostship'}:</label>
<div class="col-lg-9">
<span class="switch prestashop-switch fixed-width-lg">
<input id="reset_on" onClick="toggleDraftWarning(false);showOptions(true);showRedirectProductOptions(false);" name="INPOSTSHIP_RESET" value="1" type="radio" {if $reset == 1}checked="checked"{/if} />
<label class="radioCheck" for="reset_on">{l s='YES' mod='inpostship'}</label>
<input id="reset_off" onClick="toggleDraftWarning(true);showOptions(false);showRedirectProductOptions(true);" name="INPOSTSHIP_RESET" value="0" type="radio" {if $reset == 0}checked="checked"{/if} />
<label class="radioCheck" for="reset_off">{l s='NO' mod='inpostship'}</label>
<a class="slide-button btn"></a>
</span>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 text-right">{l s='Module debug mode' mod='inpostship'}:</label>
<div class="col-lg-9">
<span class="switch prestashop-switch fixed-width-lg">
<input id="mdebug_on" onClick="toggleDraftWarning(false);showOptions(true);showRedirectProductOptions(false);" name="INPOSTSHIP_DEBUG" value="1" type="radio" {if $mdebug == 1}checked="checked"{/if} />
<label class="radioCheck" for="mdebug_on">{l s='YES' mod='inpostship'}</label>
<input id="mdebug_off" onClick="toggleDraftWarning(true);showOptions(false);showRedirectProductOptions(true);" name="INPOSTSHIP_DEBUG" value="0" type="radio" {if $mdebug == 0}checked="checked"{/if} />
<label class="radioCheck" for="mdebug_off">{l s='NO' mod='inpostship'}</label>
<a class="slide-button btn"></a>
</span>
</div>
</div>
{if !$shop_debug}
<div class="form-group">
<label class="control-label col-lg-3 text-right">{l s='Shop debug mode' mod='inpostship'}:</label>
<div class="col-lg-9">
<span class="switch prestashop-switch fixed-width-lg">
<input id="sdebug_on" onClick="toggleDraftWarning(false);showOptions(true);showRedirectProductOptions(false);" name="INPOSTSHIP_DEBUG_SHOP" value="1" type="radio" {if $sdebug == 1}checked="checked"{/if} />
<label class="radioCheck" for="sdebug_on">{l s='YES' mod='inpostship'}</label>
<input id="sdebug_off" onClick="toggleDraftWarning(true);showOptions(false);showRedirectProductOptions(true);" name="INPOSTSHIP_DEBUG_SHOP" value="0" type="radio" {if $sdebug == 0}checked="checked"{/if} />
<label class="radioCheck" for="sdebug_off">{l s='NO' mod='inpostship'}</label>
<a class="slide-button btn"></a>
</span>
</div>
</div>
{/if}
<button id="configuration_form_submit_btn" class="btn btn-default pull-right" type="submit" value="1" name="submitSaveDelete"><i class="process-icon-save"></i> {l s='Save' mod='inpostship'}</button>
</div>
</fieldset>
</form>
<br />
<fieldset>
<legend><img src="../img/t/AdminPreferences.gif" /> {l s='Integracje' mod='inpostship'}</legend>
<div>
<form method="post">
<div class="form-group">
<label class="control-label col-lg-3 text-right">{l s='x13Allegro' mod='inpostship'}:</label>
<div class="col-lg-9">
<span class="switch prestashop-switch fixed-width-lg">
<input id="x13allegro_on" onClick="toggleDraftWarning(false);showOptions(true);showRedirectProductOptions(false);" name="INPOSTSHIP_INTEGRATION_X13ALLEGRO" value="1" type="radio" {if $x13a == 1}checked="checked"{/if} />
<label class="radioCheck" for="x13allegro_on">{l s='YES' mod='inpostship'}</label>
<input id="x13allegro_off" onClick="toggleDraftWarning(true);showOptions(false);showRedirectProductOptions(true);" name="INPOSTSHIP_INTEGRATION_X13ALLEGRO" value="0" type="radio" {if $x13a == 0}checked="checked"{/if} />
<label class="radioCheck" for="x13allegro_off">{l s='NO' mod='inpostship'}</label>
<a class="slide-button btn"></a>
</span>
</div>
</div>
<button id="configuration_form_submit_btn" class="btn btn-default pull-right" type="submit" value="1" name="submitSaveIntegration"><i class="process-icon-save"></i> {l s='Save' mod='inpostship'}</button>
</form>
</div>
</fieldset>
<br />
<fieldset>
<legend><img src="../img/t/AdminPreferences.gif" /> {l s='INPOST variable in e-mail' mod='inpostship'}</legend>
<div>
<p class="info">
{l s='You can use variable in e-mail template:' mod='inpostship'}<br />
{$variables}
</p>
</div>
</fieldset>