37 lines
2.5 KiB
PHP
37 lines
2.5 KiB
PHP
<?php use_helper('I18N', 'stAdminGenerator', 'Validation');?>
|
|
<?php echo st_get_admin_head('stCashBillPlugin', __('CashBill'), '', array('stPayment'));?>
|
|
<?php st_view_slot_start('application-menu') ?>
|
|
<?php st_include_component('stCashBillBackend', 'listMenu') ?>
|
|
<?php st_view_slot_end() ?>
|
|
<?php echo form_tag('cashbill/index', array('id' => 'sf_admin_config_form', 'name' => 'sf_admin_config_form', 'class' => 'admin_form'));?>
|
|
<?php st_include_partial('stAdminGenerator/message', array('labels' => $labels, 'i18n_catalogue' => 'stLukasBackend'));?>
|
|
|
|
<fieldset>
|
|
<div class="content">
|
|
|
|
<?php echo st_admin_get_form_field('config[shop_id]', __('Identyfikator punktu płatności'), $config->get('shop_id'), 'input_tag', array('required' => true, 'autocomplete' => "off")) ?>
|
|
<?php echo st_admin_get_form_field('config[secret_key]', __('Klucz punktu płatności'), $config->get('secret_key'), 'input_tag', array('required' => true, 'autocomplete' => "off")) ?>
|
|
|
|
<?php if (SF_ENVIRONMENT == 'dev' || $sf_request->hasParameter('debug')): ?>
|
|
<?php echo st_admin_get_form_field('config[test]', __('Aktywuj tryb testowy'), 1, 'checkbox_tag', array('checked' => $config->get('test'))) ?>
|
|
<?php endif;?>
|
|
|
|
<?php echo st_admin_get_form_field('config[show_variant]', __('Wybierz kanału płatności'), array('none' => __('W serwisie CashBill (zalecana)'), 'image' => __('W sklepie - graficzna'), 'text' => __('W sklepie - tekstowa')), 'select_tag', array('selected' => $config->get('show_variant'))) ?>
|
|
|
|
</div>
|
|
</fieldset>
|
|
<fieldset>
|
|
<div class="content">
|
|
|
|
<?php echo st_admin_get_form_field('url_report', __('Adres serwerowego potwierdzenia transakcji'), "http://".$webRequest->getHost()."/cashbill/reportStatus", 'input_tag', array('readonly' => true, 'size' => 80, 'clipboard' => true)) ?>
|
|
|
|
|
|
</div>
|
|
</fieldset>
|
|
<?php echo st_get_admin_actions(array(
|
|
array('type' => 'download', 'label' => __('Pobierz przewodnik'), 'action' => 'http://www.cashbill.pl/download/integracje/Platnosci/PlatnosciCashBillSOTE.pdf', 'params' => array('target' => '_blank')),
|
|
array('type' => 'save', 'label' => __('Zapisz', null, 'stAdminGeneratorPlugin'))
|
|
)) ?>
|
|
</form>
|
|
<br class="st_clear_all">
|
|
<?php echo st_get_admin_foot();?>
|