first commit
This commit is contained in:
@@ -0,0 +1 @@
|
||||
<?php echo select_tag('product_group[default_product_group]', options_for_select($default_product_group,$product_group->getProductGroup()));?>
|
||||
@@ -0,0 +1,4 @@
|
||||
<?php echo select_tag('filters[list_assigned]', options_for_select(array(1 => __('tak'), 0 => __('nie')), isset($filters['list_assigned']) ? $filters['list_assigned'] : null, array (
|
||||
'include_custom' => __("---"),
|
||||
)), array (
|
||||
)) ?>
|
||||
144
apps/backend/modules/stProductGroup/templates/_image.php
Normal file
144
apps/backend/modules/stProductGroup/templates/_image.php
Normal file
@@ -0,0 +1,144 @@
|
||||
<?php use_stylesheet('backend/stProductGroup.css');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
document.getElementById('product_group_default_product_group').onchange = function(){
|
||||
if (this.value == 'NEW') {
|
||||
<?php if ($product_group->getCulture()=="pl_PL"):?>
|
||||
document.getElementById('sote_labels_pl').style.display = "block";
|
||||
document.getElementById('sote_labels_en').style.display = "none";
|
||||
<?php elseif($product_group->getCulture()=="en_US"):?>
|
||||
document.getElementById('sote_labels_pl').style.display = "none";
|
||||
document.getElementById('sote_labels_en').style.display = "block";
|
||||
<?php endif;?>
|
||||
} else {
|
||||
document.getElementById('sote_labels_pl').style.display = "none";
|
||||
document.getElementById('sote_labels_en').style.display = "none";
|
||||
document.getElementById('product_group_label_none').checked=true;
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<?php
|
||||
if ($product_group->getProductGroup() == "NEW")
|
||||
{
|
||||
if ($product_group->getCulture()=="pl_PL")
|
||||
{
|
||||
$display_labels_en = "display:none";
|
||||
$display_labels_pl = "display:block";
|
||||
}
|
||||
elseif($product_group->getCulture()=="en_US")
|
||||
{
|
||||
$display_labels_en = "display:block";
|
||||
$display_labels_pl = "display:none";
|
||||
}else{
|
||||
$display_labels_en = "display:none";
|
||||
$display_labels_pl = "display:none";
|
||||
}
|
||||
}else{
|
||||
$display_labels_en = "display:none";
|
||||
$display_labels_pl = "display:none";
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
<div class="pg_none">
|
||||
<?php if (!$product_group->getLabel() || $product_group->getLabel()=='none'):?>
|
||||
<?php echo radiobutton_tag('product_group[label]', 'none', true) ?><?php echo __('Brak');?>
|
||||
<?php else: ?>
|
||||
<?php echo radiobutton_tag('product_group[label]', 'none', false) ?><?php echo __('Brak');?>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
|
||||
<div id="sote_labels_pl" class="pg_star" style="<?php echo $display_labels_pl;?>">
|
||||
<?php if ($product_group->getLabel()=='new_blue_pl.png'):?>
|
||||
<?php echo radiobutton_tag('product_group[label]', 'new_blue_pl.png', true) ?>
|
||||
<?php else: ?>
|
||||
<?php echo radiobutton_tag('product_group[label]', 'new_blue_pl.png', false) ?>
|
||||
<?php endif;?>
|
||||
<img src="/uploads/product_group/new_blue_pl.png" width="90" height="25" alt="" />
|
||||
|
||||
<?php if ($product_group->getLabel()=='new_green_pl.png'):?>
|
||||
<?php echo radiobutton_tag('product_group[label]', 'new_green_pl.png', true) ?>
|
||||
<?php else: ?>
|
||||
<?php echo radiobutton_tag('product_group[label]', 'new_green_pl.png', false) ?>
|
||||
<?php endif;?>
|
||||
<img src="/uploads/product_group/new_green_pl.png" width="90" height="25" alt="" />
|
||||
|
||||
<?php if ($product_group->getLabel()=='new_red_pl.png'):?>
|
||||
<?php echo radiobutton_tag('product_group[label]', 'new_red_pl.png', true) ?>
|
||||
<?php else: ?>
|
||||
<?php echo radiobutton_tag('product_group[label]', 'new_red_pl.png', false) ?>
|
||||
<?php endif;?>
|
||||
<img src="/uploads/product_group/new_red_pl.png" width="90" height="25" alt="" />
|
||||
|
||||
<?php if ($product_group->getLabel()=='new_yellow_pl.png'):?>
|
||||
<?php echo radiobutton_tag('product_group[label]', 'new_yellow_pl.png', true) ?>
|
||||
<?php else: ?>
|
||||
<?php echo radiobutton_tag('product_group[label]', 'new_yellow_pl.png', false) ?>
|
||||
<?php endif;?>
|
||||
<img src="/uploads/product_group/new_yellow_pl.png" width="90" height="25" alt="" />
|
||||
</div>
|
||||
|
||||
<div id="sote_labels_en" class="pg_star" style="<?php echo $display_labels_en;?>">
|
||||
<?php if ($product_group->getLabel()=='new_blue_en.png'):?>
|
||||
<?php echo radiobutton_tag('product_group[label]', 'new_blue_en.png', true) ?>
|
||||
<?php else: ?>
|
||||
<?php echo radiobutton_tag('product_group[label]', 'new_blue_en.png', false) ?>
|
||||
<?php endif;?>
|
||||
<img src="/uploads/product_group/new_blue_en.png" width="75" height="25" alt="" />
|
||||
|
||||
<?php if ($product_group->getLabel()=='new_green_en.png'):?>
|
||||
<?php echo radiobutton_tag('product_group[label]', 'new_green_en.png', true) ?>
|
||||
<?php else: ?>
|
||||
<?php echo radiobutton_tag('product_group[label]', 'new_green_en.png', false) ?>
|
||||
<?php endif;?>
|
||||
<img src="/uploads/product_group/new_green_en.png" width="75" height="25" alt="" />
|
||||
|
||||
<?php if ($product_group->getLabel()=='new_red_en.png'):?>
|
||||
<?php echo radiobutton_tag('product_group[label]', 'new_red_en.png', true) ?>
|
||||
<?php else: ?>
|
||||
<?php echo radiobutton_tag('product_group[label]', 'new_red_en.png', false) ?>
|
||||
<?php endif;?>
|
||||
<img src="/uploads/product_group/new_red_en.png" width="75" height="25" alt="" />
|
||||
|
||||
<?php if ($product_group->getLabel()=='new_yellow_en.png'):?>
|
||||
<?php echo radiobutton_tag('product_group[label]', 'new_yellow_en.png', true) ?>
|
||||
<?php else: ?>
|
||||
<?php echo radiobutton_tag('product_group[label]', 'new_yellow_en.png', false) ?>
|
||||
<?php endif;?>
|
||||
<img src="/uploads/product_group/new_yellow_en.png" width="75" height="25" alt="" />
|
||||
</div>
|
||||
|
||||
|
||||
<div class="pg_my_image">
|
||||
<div class="desc_label">
|
||||
<?php if ($product_group->getLabel()=='my_image'):?>
|
||||
<?php echo radiobutton_tag('product_group[label]', 'my_image', true) ?><?php echo __('Własny obrazek');?>
|
||||
<?php else: ?>
|
||||
<?php echo radiobutton_tag('product_group[label]', 'my_image', false) ?><?php echo __('Własny obrazek');?>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
|
||||
<?php if ($product_group->getImage()): ?>
|
||||
<div>
|
||||
<img src="/uploads/product_group/<?php echo $product_group->getImage();?>" />
|
||||
</div>
|
||||
<div class="clear" /></div>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
<div style="clear: both;" /></div>
|
||||
|
||||
<div style="padding-top: 5px;"><?php echo input_file_tag('product_group[image]') ?></div>
|
||||
<?php if ($product_group->getImage()): ?>
|
||||
<p><?php echo checkbox_tag('product_group[delete_image]', 1, false) ?> <?php echo __('usuń obrazek') ?></p>
|
||||
|
||||
<script type="text/javascript">
|
||||
$('product_group_delete_image').observe('click', function ()
|
||||
{
|
||||
var product_group_image = $('product_group_image');
|
||||
|
||||
product_group_image[this.checked ? 'disable' : 'enable']();
|
||||
});
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
$c = new Criteria();
|
||||
$c->add(ProductGroupHasProductPeer::PRODUCT_GROUP_ID, $forward_parameters['product_group_id']);
|
||||
$c->add(ProductGroupHasProductPeer::PRODUCT_ID, $product->getId());
|
||||
if (ProductGroupHasProductPeer::doCount($c)):
|
||||
?>
|
||||
<?php echo image_tag(sfConfig::get('sf_admin_web_dir').'/images/tick.png') ?>
|
||||
<?php else: ?>
|
||||
-
|
||||
<?php endif ?>
|
||||
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
/**
|
||||
* Szablon dla partial'a _list_price
|
||||
*
|
||||
* @package stProduct
|
||||
* @author Marcin Butlak <marcin.butlak@sote.pl>
|
||||
* @copyright SOTE
|
||||
* @license SOTE
|
||||
* @version $Id: _list_price.php 617 2009-04-09 13:02:31Z michal $
|
||||
*/
|
||||
?>
|
||||
|
||||
<?php use_helper('stCurrency') ?>
|
||||
<?php echo st_back_price($product->getPriceBrutto(), true,true); ?>
|
||||
21
apps/backend/modules/stProductGroup/templates/_new_type.php
Normal file
21
apps/backend/modules/stProductGroup/templates/_new_type.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
/**
|
||||
* @var ProductGroup $product_group
|
||||
*/
|
||||
echo select_tag($name, options_for_select([
|
||||
'manual' => __('przypisane produkty'),
|
||||
'date' => __('po dacie dodania')
|
||||
], $product_group->getNewType()));
|
||||
?>
|
||||
|
||||
<script>
|
||||
jQuery(function($) {
|
||||
$('#<?php echo get_id_from_name($name) ?>').change(function() {
|
||||
if ($(this).val() != 'date') {
|
||||
$('.row_new_product_date').hide();
|
||||
} else {
|
||||
$('.row_new_product_date').show();
|
||||
}
|
||||
}).change();
|
||||
});
|
||||
</script>
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php $product_group = $product_group_has_positioning->getProductGroup();?>
|
||||
|
||||
<?php echo input_tag('product_group_has_positioning[product_group_url]', $product_group->getFriendlyUrl(), array('size' => '40')) ?>
|
||||
|
||||
<?php list($culture) = explode('_', $product_group->getCulture()); ?>
|
||||
|
||||
<p>
|
||||
<?php echo st_link_to(null, 'stProduct/frontendGroupList?url=' . $product_group->getFriendlyUrl(), array(
|
||||
'absolute' => true,
|
||||
'for_app' => 'frontend',
|
||||
'for_lang' => $culture,
|
||||
'no_script_name' => true,
|
||||
'class' => 'st_admin_external_link',
|
||||
'target' => '_blank')) ?>
|
||||
</p>
|
||||
@@ -0,0 +1,3 @@
|
||||
<?php use_helper('stProgressBar'); ?>
|
||||
<?php echo progress_bar('stProductGroup_optimize', 'stProductGroupOptimize', 'updateOptimize', ProductGroupHasProductPeer::doCount(new Criteria())); ?>
|
||||
|
||||
Reference in New Issue
Block a user