56 lines
3.4 KiB
PHP
56 lines
3.4 KiB
PHP
<?php use_helper('I18N', 'stAdminGenerator', 'Validation') ?>
|
|
<?php $protocol = stConfig::getInstance('stSecurityBackend')->get('ssl') ? 'https' : 'http' ?>
|
|
<?php echo st_get_admin_head('stEcardPlugin', __('eCard', array()), __('', array()),array('stPayment')) ?>
|
|
<?php st_view_slot_start('application-menu') ?>
|
|
<?php st_include_component('stEcardBackend', 'listMenu') ?>
|
|
<?php st_view_slot_end() ?>
|
|
<?php st_include_partial('stAdminGenerator/message', array('labels' => $labels, 'i18n_catalogue' => 'stEcardBackend'));?>
|
|
<?php echo form_tag('ecard/index', array('id' => 'sf_admin_config_form', 'name' => 'sf_admin_config_form', 'class' => 'admin_form')) ?>
|
|
<fieldset>
|
|
<div class="content">
|
|
<div class="form-row<?php if($sf_request->hasError('ecard{ecard_id}')): ?> form-error<?php endif; ?>">
|
|
<label for="ecard_ecard_password" class="required"><?php echo __('Identyfikator') ?></label>
|
|
<div class="field">
|
|
<?php if($sf_request->hasErrors()): ?>
|
|
<div class="form-error-msg">
|
|
<div class="form_error" id="error_for_ecard_id"> ↓ <?php echo $sf_request->getError('ecard{ecard_id}') ?> ↓</div>
|
|
</div>
|
|
<?php echo input_tag('ecard[ecard_id]', $sf_params->get('ecard[ecard_id]'), array('size' => '50')) ?>
|
|
<?php else: ?>
|
|
<?php echo input_tag('ecard[ecard_id]', $config->get('ecard_id'), array('size' => '50')) ?>
|
|
<?php endif; ?>
|
|
</div>
|
|
<div class="clr"></div>
|
|
</div>
|
|
<div class="form-row<?php if($sf_request->hasError('ecard{ecard_password}')): ?> form-error<?php endif; ?>">
|
|
<label for="ecard_ecard_password" class="required"><?php echo __('Hasło autoryzacji') ?></label>
|
|
<div class="field">
|
|
<?php if($sf_request->hasErrors()): ?>
|
|
<div class="form-error-msg">
|
|
<div class="form_error" id="error_for_ecard_password"> ↓ <?php echo $sf_request->getError('ecard{ecard_password}') ?> ↓</div>
|
|
</div>
|
|
<?php echo input_password_tag('ecard[ecard_password]', $sf_params->get('ecard[ecard_password]'), array('size' => '50')) ?>
|
|
<?php else: ?>
|
|
<?php echo input_password_tag('ecard[ecard_password]', $config->get('ecard_password'), array('size' => '50')) ?>
|
|
<?php endif; ?>
|
|
</div>
|
|
<div class="clr"></div>
|
|
</div>
|
|
</div>
|
|
</fieldset>
|
|
<fieldset>
|
|
<h2><?php echo __('Konfiguracja usługi') ?></h2>
|
|
<div class="content">
|
|
<div class="row">
|
|
<?php echo st_admin_get_form_field('ecard_notify_url', __('Adres powiadomienia POST'), $protocol.'://'.$sf_request->getHost().'/ecard/statusReport/'.stEcard::getPostSecureHash(), 'input_tag', array('readonly' => true, 'size' => 80, 'clipboard' => true)) ?>
|
|
<div class="clr"></div>
|
|
</div>
|
|
</div>
|
|
</fieldset>
|
|
<?php echo input_hidden_tag('ecard[transaction_fix]',$config->get('transaction_fix')) ?>
|
|
<?php echo st_get_admin_actions(array(
|
|
array('type' => 'save', 'label' => __('Zapisz', null, 'stAdminGeneratorPlugin'))
|
|
)) ?>
|
|
</form>
|
|
<div class="clr"></div>
|
|
<?php echo st_get_admin_foot() ?>
|