first commit
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
<div class="flex-container">
|
||||
<?php echo input_tag('config[street]', $config->get('street'), array('class' => $config->get('street') ? 'not-required list_tooltip' : 'list_tooltip', 'placeholder' => __('Ulica'))) ?>
|
||||
<?php echo input_tag('config[house]', $config->get('house'), array('class' => $config->get('house') ? 'not-required list_tooltip' : 'list_tooltip', 'title' => __('Numer domu'))) ?>
|
||||
<span class="separator">/</span>
|
||||
<?php echo input_tag('config[flat]', $config->get('flat'), array('title' => __('Numer mieszkania'), 'class' => 'list_tooltip')) ?>
|
||||
</div>
|
||||
@@ -0,0 +1,4 @@
|
||||
<div class="flex-container">
|
||||
<?php echo input_tag('config[code]', $config->get('code'), array('class' => $config->get('code') ? 'not-required' : '', 'placeholder' => __('Kod pocztowy'))) ?>
|
||||
<?php echo input_tag('config[town]', $config->get('town'), array('class' => $config->get('town') ? 'not-required' : '', 'placeholder' => __('Miasto'))) ?>
|
||||
</div>
|
||||
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
use_helper('Countries');
|
||||
echo st_countries_select_tag('config[country]', $config->get('country'), array('iso' => true, 'all' => true, 'include_custom' => __('Wybierz')));
|
||||
@@ -0,0 +1,18 @@
|
||||
<?php $routing = sfRouting::getInstance(); ?>
|
||||
<?php $module = stConfiguration::getInstance()->getDesktopModule($sf_context->getModuleName()); ?>
|
||||
|
||||
<div class="list-menu">
|
||||
<ul>
|
||||
<?php foreach ($items as $action => $name): $url = url_for($action) ?>
|
||||
<li class="<?php echo $selected_item_path == $url ? 'selected' : 'none' ?>"><a href="<?php echo $url ?>"<?php if ($url[0] != '/'): ?> target="_blank"<?php endif ?>><?php echo $name ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
<li>
|
||||
<?php if (sfContext::getInstance()->getUser()->getCulture() == 'pl_PL'): ?>
|
||||
<a href="https://www.sote.pl/docs/informacje-o-sklepie" target="_blank"><?php echo __('Dokumentacja'); ?></a>
|
||||
<?php else: ?>
|
||||
<a href="https://www.soteshop.com/docs/shop_info" target="_blank"><?php echo __('Documentation'); ?></a>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="clr"></div>
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php use_helper('I18N', 'stAdminGenerator', 'Validation');?>
|
||||
<?php use_stylesheet('backend/stShopInfoPlugin.css');?>
|
||||
<?php echo st_get_admin_head('stShopInfoPlugin', __('Informacje o licencji'), __('Informacje o sklepie'), array());?>
|
||||
<?php echo st_get_component('stAdminGenerator', 'menu', array('items' => $menu_items)) ?>
|
||||
<?php if ($sf_flash->has('notice')):?>
|
||||
<div class="save-ok" style="margin: 10px;">
|
||||
<h2><?php echo __($sf_flash->get('notice'), array(), 'stAdminGeneratorPlugin');?></h2>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
<?php if ($sf_request->hasErrors()):?>
|
||||
<div class="form-errors" style="margin: 10px;">
|
||||
<h2><?php echo __('Popraw dane w formularzu.', array(), 'stAdminGeneratorPlugin');?></h2>
|
||||
<dl>
|
||||
<dd><?php echo $sf_request->getError('license_number');?></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
<?php echo form_tag('shop_info/changeLicense', array('id' => 'sf_admin_edit_form', 'name' => 'sf_admin_edit_form'));?>
|
||||
<div id="sf_admin_content_edit" style="margin: 10px; min-height: 50px; border: 1px solid #ccc; padding: 10px;">
|
||||
<div class=" <?php if($sf_request->hasError('license_number')):?> form-error<?php endif;?>" style="text-align: center; font-family: Helvetica,Arial,sans-serif; font-size: 12px; padding-top: 15px;">
|
||||
<?php echo label_for('license_number', __('Numer licencji'), array('class' => 'required'));?>:
|
||||
<?php if($sf_request->hasErrors()):?>
|
||||
<?php echo input_tag('license_number', $sf_params->get('license_number'), array('size' => 30, 'style' => 'vertical-align: middle'));?>
|
||||
<?php else:?>
|
||||
<?php echo input_tag('license_number', $config->get('license'), array('size' => 30, 'style' => 'vertical-align: middle'));?>
|
||||
<?php endif;?>
|
||||
<br class="st_clear_all" />
|
||||
</div>
|
||||
</div>
|
||||
<?php echo st_get_admin_actions_head('style="margin-top: 0px; margin-right: 10px; float: right"');?>
|
||||
<?php echo st_get_admin_action('save', __('Zapisz', array(), 'stAdminGeneratorPlugin'), null, array('name' => 'save'));?>
|
||||
<?php echo st_get_admin_actions_foot();?>
|
||||
</form>
|
||||
|
||||
<?php echo st_get_admin_foot();?>
|
||||
@@ -0,0 +1,40 @@
|
||||
<?php use_helper('stAdminGenerator', 'I18N', 'Date', 'Validation') ?>
|
||||
<?php use_stylesheet('backend/beta/style.css'); ?>
|
||||
<?php // use_stylesheet('backend/stShopInfoPlugin.css'); ?>
|
||||
<?php echo st_get_admin_head('stShopInfoPlugin', __('Informacje o sklepie')) ?>
|
||||
<?php st_view_slot_start('application-menu') ?>
|
||||
<?php st_include_component('stShopInfoBackend', 'listMenu') ?>
|
||||
<?php st_view_slot_end() ?>
|
||||
<?php echo form_tag('stShopInfoBackend/index', array('id' => 'sf_admin_config_form', 'name' => 'sf_admin_config_form', 'class' => 'admin_form'));?>
|
||||
|
||||
<?php st_include_partial('stAdminGenerator/message', array('labels' => $labels));?>
|
||||
|
||||
<fieldset>
|
||||
<div class="content">
|
||||
<?php echo st_admin_get_form_field('st_shop_info[company]', __('Nazwa sprzedawcy / Firma'), $config->get('company'), 'input_tag') ?>
|
||||
<?php echo st_admin_get_form_field('st_shop_info[nip]', __('NIP'), $config->get('nip'), 'input_tag') ?>
|
||||
<?php echo st_admin_get_form_field('address', __('Ulica, nr domu'), $config, '_address') ?>
|
||||
<?php echo st_admin_get_form_field('code_town', __('Kod pocztowy, miasto'), $config, '_code_town') ?>
|
||||
<?php echo st_admin_get_form_field('st_shop_info[phone]', __('Telefon'), $config->get('phone')) ?>
|
||||
<?php echo st_admin_get_form_field('st_shop_info[show_phone]', __('Pokaż telefon'), 1, 'checkbox_tag', array('checked' => $config->get('show_phone'), 'help' => __('Telefon jest widoczny wyłącznie dla urządzeń mobilnych'))) ?>
|
||||
<?php echo st_admin_get_form_field('st_shop_info[bank]', __('Rachunek bankowy'), $config->get('bank')) ?>
|
||||
<?php echo st_admin_get_form_field('st_shop_info[email]', __('Kontaktowy adres e-mail'), $config->get('email')) ?>
|
||||
</div>
|
||||
</fieldset>
|
||||
<div id="config_actions">
|
||||
<?php echo st_get_admin_actions_head() ?>
|
||||
<?php echo st_get_admin_action('save', __('Zapisz', array(), 'stAdminGeneratorPlugin'), null, 'name=save') ?>
|
||||
<?php echo st_get_admin_actions_foot() ?>
|
||||
</div>
|
||||
</form>
|
||||
<div class="clr"></div>
|
||||
<?php echo st_get_admin_foot() ?>
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function($) {
|
||||
$(document).ready(function() {
|
||||
$('#config_actions').stickyBox();
|
||||
fieldsetVisibility();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
use_helper('I18N', 'stAdminGenerator');
|
||||
echo st_get_partial('header', array('title' => __('Informacje o licencji')));
|
||||
echo st_get_partial('config_menu');
|
||||
echo tag('div', array('class' => 'admin_form'), true);
|
||||
st_admin_section_start();
|
||||
echo st_admin_get_form_field('license', __('Numer licencji'), $config->get('license'), 'plain');
|
||||
st_admin_section_end();
|
||||
echo '</div>';
|
||||
echo st_get_partial('footer');
|
||||
?>
|
||||
Reference in New Issue
Block a user