@@ -18,6 +18,7 @@ use Thelia\Core\Template\Element\LoopResult;
|
|||||||
use Thelia\Core\Template\Element\LoopResultRow;
|
use Thelia\Core\Template\Element\LoopResultRow;
|
||||||
|
|
||||||
use Thelia\Core\Template\Element\PropelSearchLoopInterface;
|
use Thelia\Core\Template\Element\PropelSearchLoopInterface;
|
||||||
|
use Thelia\Core\Template\Element\SearchLoopInterface;
|
||||||
use Thelia\Core\Template\Loop\Argument\ArgumentCollection;
|
use Thelia\Core\Template\Loop\Argument\ArgumentCollection;
|
||||||
use Thelia\Core\Template\Loop\Argument\Argument;
|
use Thelia\Core\Template\Loop\Argument\Argument;
|
||||||
|
|
||||||
@@ -51,7 +52,7 @@ use Thelia\Model\ProductQuery;
|
|||||||
* @author Manuel Raynaud <mraynaud@openstudio.fr>
|
* @author Manuel Raynaud <mraynaud@openstudio.fr>
|
||||||
* @author Etienne Roudeix <eroudeix@openstudio.fr>
|
* @author Etienne Roudeix <eroudeix@openstudio.fr>
|
||||||
*/
|
*/
|
||||||
class Category extends BaseI18nLoop implements PropelSearchLoopInterface
|
class Category extends BaseI18nLoop implements PropelSearchLoopInterface, SearchLoopInterface
|
||||||
{
|
{
|
||||||
protected $timestampable = true;
|
protected $timestampable = true;
|
||||||
protected $versionable = true;
|
protected $versionable = true;
|
||||||
@@ -83,6 +84,23 @@ class Category extends BaseI18nLoop implements PropelSearchLoopInterface
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return array of available field to search in
|
||||||
|
*/
|
||||||
|
public function getSearchIn()
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
"title"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function doSearch(&$search, $searchTerm, $searchIn, $searchCriteria)
|
||||||
|
{
|
||||||
|
$search->_and();
|
||||||
|
|
||||||
|
$search->where("CASE WHEN NOT ISNULL(`requested_locale_i18n`.ID) THEN `requested_locale_i18n`.`TITLE` ELSE `default_locale_i18n`.`TITLE` END ".$searchCriteria." ?", $searchTerm, \PDO::PARAM_STR);
|
||||||
|
}
|
||||||
|
|
||||||
public function buildModelCriteria()
|
public function buildModelCriteria()
|
||||||
{
|
{
|
||||||
$search = CategoryQuery::create();
|
$search = CategoryQuery::create();
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ use Thelia\Core\Template\Element\LoopResult;
|
|||||||
use Thelia\Core\Template\Element\LoopResultRow;
|
use Thelia\Core\Template\Element\LoopResultRow;
|
||||||
|
|
||||||
use Thelia\Core\Template\Element\PropelSearchLoopInterface;
|
use Thelia\Core\Template\Element\PropelSearchLoopInterface;
|
||||||
|
use Thelia\Core\Template\Element\SearchLoopInterface;
|
||||||
use Thelia\Core\Template\Loop\Argument\ArgumentCollection;
|
use Thelia\Core\Template\Loop\Argument\ArgumentCollection;
|
||||||
use Thelia\Core\Template\Loop\Argument\Argument;
|
use Thelia\Core\Template\Loop\Argument\Argument;
|
||||||
|
|
||||||
@@ -37,7 +38,7 @@ use Thelia\Type\BooleanOrBothType;
|
|||||||
* @package Thelia\Core\Template\Loop
|
* @package Thelia\Core\Template\Loop
|
||||||
* @author Etienne Roudeix <eroudeix@openstudio.fr>
|
* @author Etienne Roudeix <eroudeix@openstudio.fr>
|
||||||
*/
|
*/
|
||||||
class Content extends BaseI18nLoop implements PropelSearchLoopInterface
|
class Content extends BaseI18nLoop implements PropelSearchLoopInterface, SearchLoopInterface
|
||||||
{
|
{
|
||||||
protected $timestampable = true;
|
protected $timestampable = true;
|
||||||
protected $versionable = true;
|
protected $versionable = true;
|
||||||
@@ -60,7 +61,20 @@ class Content extends BaseI18nLoop implements PropelSearchLoopInterface
|
|||||||
new Argument(
|
new Argument(
|
||||||
'order',
|
'order',
|
||||||
new TypeCollection(
|
new TypeCollection(
|
||||||
new Type\EnumListType(array('alpha', 'alpha-reverse', 'manual', 'manual_reverse', 'random', 'given_id', 'created', 'created_reverse', 'updated', 'updated_reverse'))
|
new Type\EnumListType(
|
||||||
|
array(
|
||||||
|
'alpha',
|
||||||
|
'alpha-reverse',
|
||||||
|
'manual',
|
||||||
|
'manual_reverse',
|
||||||
|
'random',
|
||||||
|
'given_id',
|
||||||
|
'created',
|
||||||
|
'created_reverse',
|
||||||
|
'updated',
|
||||||
|
'updated_reverse'
|
||||||
|
)
|
||||||
|
)
|
||||||
),
|
),
|
||||||
'alpha'
|
'alpha'
|
||||||
),
|
),
|
||||||
@@ -69,6 +83,23 @@ class Content extends BaseI18nLoop implements PropelSearchLoopInterface
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return array of available field to search in
|
||||||
|
*/
|
||||||
|
public function getSearchIn()
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
"title"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function doSearch(&$search, $searchTerm, $searchIn, $searchCriteria)
|
||||||
|
{
|
||||||
|
$search->_and();
|
||||||
|
|
||||||
|
$search->where("CASE WHEN NOT ISNULL(`requested_locale_i18n`.ID) THEN `requested_locale_i18n`.`TITLE` ELSE `default_locale_i18n`.`TITLE` END ".$searchCriteria." ?", $searchTerm, \PDO::PARAM_STR);
|
||||||
|
}
|
||||||
|
|
||||||
public function buildModelCriteria()
|
public function buildModelCriteria()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ use Thelia\Core\Template\Element\LoopResult;
|
|||||||
use Thelia\Core\Template\Element\LoopResultRow;
|
use Thelia\Core\Template\Element\LoopResultRow;
|
||||||
|
|
||||||
use Thelia\Core\Template\Element\PropelSearchLoopInterface;
|
use Thelia\Core\Template\Element\PropelSearchLoopInterface;
|
||||||
|
use Thelia\Core\Template\Element\SearchLoopInterface;
|
||||||
use Thelia\Core\Template\Loop\Argument\ArgumentCollection;
|
use Thelia\Core\Template\Loop\Argument\ArgumentCollection;
|
||||||
use Thelia\Core\Template\Loop\Argument\Argument;
|
use Thelia\Core\Template\Loop\Argument\Argument;
|
||||||
|
|
||||||
@@ -33,7 +34,7 @@ use Thelia\Type\BooleanOrBothType;
|
|||||||
* @package Thelia\Core\Template\Loop
|
* @package Thelia\Core\Template\Loop
|
||||||
* @author Etienne Roudeix <eroudeix@openstudio.fr>
|
* @author Etienne Roudeix <eroudeix@openstudio.fr>
|
||||||
*/
|
*/
|
||||||
class Folder extends BaseI18nLoop implements PropelSearchLoopInterface
|
class Folder extends BaseI18nLoop implements PropelSearchLoopInterface, SearchLoopInterface
|
||||||
{
|
{
|
||||||
protected $timestampable = true;
|
protected $timestampable = true;
|
||||||
protected $versionable = true;
|
protected $versionable = true;
|
||||||
@@ -62,6 +63,23 @@ class Folder extends BaseI18nLoop implements PropelSearchLoopInterface
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return array of available field to search in
|
||||||
|
*/
|
||||||
|
public function getSearchIn()
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
"title"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function doSearch(&$search, $searchTerm, $searchIn, $searchCriteria)
|
||||||
|
{
|
||||||
|
$search->_and();
|
||||||
|
|
||||||
|
$search->where("CASE WHEN NOT ISNULL(`requested_locale_i18n`.ID) THEN `requested_locale_i18n`.`TITLE` ELSE `default_locale_i18n`.`TITLE` END ".$searchCriteria." ?", $searchTerm, \PDO::PARAM_STR);
|
||||||
|
}
|
||||||
|
|
||||||
public function buildModelCriteria()
|
public function buildModelCriteria()
|
||||||
{
|
{
|
||||||
$search = FolderQuery::create();
|
$search = FolderQuery::create();
|
||||||
|
|||||||
@@ -60,13 +60,13 @@ class TemplateHelper
|
|||||||
$tplVar = 'active-front-template';
|
$tplVar = 'active-front-template';
|
||||||
break;
|
break;
|
||||||
case TemplateDefinition::BACK_OFFICE:
|
case TemplateDefinition::BACK_OFFICE:
|
||||||
$tplVar = 'active-front-template';
|
$tplVar = 'active-admin-template';
|
||||||
break;
|
break;
|
||||||
case TemplateDefinition::PDF:
|
case TemplateDefinition::PDF:
|
||||||
$tplVar = 'active-front-template';
|
$tplVar = 'active-pdf-template';
|
||||||
break;
|
break;
|
||||||
case TemplateDefinition::EMAIL:
|
case TemplateDefinition::EMAIL:
|
||||||
$tplVar = 'active-front-template';
|
$tplVar = 'active-mail-template';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -66,19 +66,15 @@ class OrderDelivery extends BaseForm
|
|||||||
public function verifyDeliveryModule($value, ExecutionContextInterface $context)
|
public function verifyDeliveryModule($value, ExecutionContextInterface $context)
|
||||||
{
|
{
|
||||||
$module = ModuleQuery::create()
|
$module = ModuleQuery::create()
|
||||||
->filterByType(BaseModule::DELIVERY_MODULE_TYPE)
|
->filterActivatedByTypeAndId(BaseModule::DELIVERY_MODULE_TYPE, $value)
|
||||||
->filterByActivate(1)
|
|
||||||
->filterById($value)
|
|
||||||
->findOne();
|
->findOne();
|
||||||
|
|
||||||
if (null === $module) {
|
if (null === $module) {
|
||||||
$context->addViolation(Translator::getInstance()->trans("Delivery module ID not found"));
|
$context->addViolation(Translator::getInstance()->trans("Delivery module ID not found"));
|
||||||
} else {
|
} elseif (! $module->isDeliveryModule()) {
|
||||||
if (! $module->isDeliveryModule()) {
|
$context->addViolation(
|
||||||
$context->addViolation(
|
sprintf(Translator::getInstance()->trans("delivery module %s is not a Thelia\Module\DeliveryModuleInterface"), $module->getCode())
|
||||||
sprintf(Translator::getInstance()->trans("delivery module %s is not a Thelia\Module\DeliveryModuleInterface"), $module->getCode())
|
);
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -66,16 +66,12 @@ class OrderPayment extends BaseForm
|
|||||||
public function verifyPaymentModule($value, ExecutionContextInterface $context)
|
public function verifyPaymentModule($value, ExecutionContextInterface $context)
|
||||||
{
|
{
|
||||||
$module = ModuleQuery::create()
|
$module = ModuleQuery::create()
|
||||||
->filterByType(BaseModule::PAYMENT_MODULE_TYPE)
|
->filterActivatedByTypeAndId(BaseModule::PAYMENT_MODULE_TYPE, $value)
|
||||||
->filterByActivate(1)
|
|
||||||
->filterById($value)
|
|
||||||
->findOne();
|
->findOne();
|
||||||
|
|
||||||
if (null === $module) {
|
if (null === $module) {
|
||||||
$context->addViolation("Payment module ID not found");
|
$context->addViolation("Payment module ID not found");
|
||||||
}
|
} elseif (! $module->isPayementModule()) {
|
||||||
|
|
||||||
if (! $module->isPayementModule()) {
|
|
||||||
$context->addViolation(
|
$context->addViolation(
|
||||||
sprintf(Translator::getInstance()->trans("payment module %s is not a Thelia\Module\PaymentModuleInterface"), $module->getCode())
|
sprintf(Translator::getInstance()->trans("payment module %s is not a Thelia\Module\PaymentModuleInterface"), $module->getCode())
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
namespace Thelia\Model;
|
namespace Thelia\Model;
|
||||||
|
|
||||||
use Thelia\Model\Base\ModuleQuery as BaseModuleQuery;
|
use Thelia\Model\Base\ModuleQuery as BaseModuleQuery;
|
||||||
|
use Thelia\Module\BaseModule;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Skeleton subclass for performing query and update operations on the 'module' table.
|
* Skeleton subclass for performing query and update operations on the 'module' table.
|
||||||
@@ -24,7 +25,7 @@ class ModuleQuery extends BaseModuleQuery
|
|||||||
{
|
{
|
||||||
if (null === self::$activated) {
|
if (null === self::$activated) {
|
||||||
self::$activated = self::create()
|
self::$activated = self::create()
|
||||||
->filterByActivate(1)
|
->filterByActivate(BaseModule::IS_ACTIVATED)
|
||||||
->orderByPosition()
|
->orderByPosition()
|
||||||
->find();
|
->find();
|
||||||
}
|
}
|
||||||
@@ -37,4 +38,17 @@ class ModuleQuery extends BaseModuleQuery
|
|||||||
self::$activated = null;
|
self::$activated = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param int $moduleType the module type : classic, payment or delivery. Use BaseModule constant here.
|
||||||
|
* @param int $id the module id
|
||||||
|
* @return ModuleQuery
|
||||||
|
*/
|
||||||
|
public function filterActivatedByTypeAndId($moduleType, $id)
|
||||||
|
{
|
||||||
|
return $this
|
||||||
|
->filterByType($moduleType)
|
||||||
|
->filterByActivate(BaseModule::IS_ACTIVATED)
|
||||||
|
->filterById($id);
|
||||||
|
}
|
||||||
|
|
||||||
} // ModuleQuery
|
} // ModuleQuery
|
||||||
|
|||||||
@@ -94,6 +94,7 @@ return array(
|
|||||||
'Catalog' => 'Catalogue',
|
'Catalog' => 'Catalogue',
|
||||||
'Categories' => 'Rubriques',
|
'Categories' => 'Rubriques',
|
||||||
'Categories in %cat' => 'Rubrique dans %cat',
|
'Categories in %cat' => 'Rubrique dans %cat',
|
||||||
|
'Category' => 'Rubrique',
|
||||||
'Category created on %date_create. Last modification: %date_change' => 'Rubrique créée le %date_create. Dernière modification le %date_change',
|
'Category created on %date_create. Last modification: %date_change' => 'Rubrique créée le %date_create. Dernière modification le %date_change',
|
||||||
'Category title' => 'Titre de la rubrique',
|
'Category title' => 'Titre de la rubrique',
|
||||||
'Cellular phone' => 'Téléphone portable',
|
'Cellular phone' => 'Téléphone portable',
|
||||||
@@ -140,6 +141,7 @@ return array(
|
|||||||
'Confirm' => 'Confirmer',
|
'Confirm' => 'Confirmer',
|
||||||
'Confirm changes' => 'Valider les modifications',
|
'Confirm changes' => 'Valider les modifications',
|
||||||
'Confirmation' => 'Confirmation',
|
'Confirmation' => 'Confirmation',
|
||||||
|
'Content' => 'Contenu',
|
||||||
'Content title' => 'Titre du contenu',
|
'Content title' => 'Titre du contenu',
|
||||||
'Contents in %fold' => 'Contenus dans %fold',
|
'Contents in %fold' => 'Contenus dans %fold',
|
||||||
'Copy source text in input field' => 'Copier la source dans le champs de traduction',
|
'Copy source text in input field' => 'Copier la source dans le champs de traduction',
|
||||||
@@ -283,6 +285,7 @@ return array(
|
|||||||
'Details' => 'Détails',
|
'Details' => 'Détails',
|
||||||
'Disabled' => 'Désactivé',
|
'Disabled' => 'Désactivé',
|
||||||
'Discount' => 'Remise',
|
'Discount' => 'Remise',
|
||||||
|
'Discount amount' => 'Montant de réduction',
|
||||||
'Do not use a product template' => 'Ne pas utiliser de gabarit',
|
'Do not use a product template' => 'Ne pas utiliser de gabarit',
|
||||||
'Do you really want to add this attribute to all product templates ?' => 'Voulez-vous vraiment ajouter cette déclinaison de tous les gabarits de produit ?',
|
'Do you really want to add this attribute to all product templates ?' => 'Voulez-vous vraiment ajouter cette déclinaison de tous les gabarits de produit ?',
|
||||||
'Do you really want to add this feature to all product templates ?' => 'Voulez-vous vraiment ajouter cette caractéristique à tous les gabarits de produit ?',
|
'Do you really want to add this feature to all product templates ?' => 'Voulez-vous vraiment ajouter cette caractéristique à tous les gabarits de produit ?',
|
||||||
@@ -488,6 +491,7 @@ return array(
|
|||||||
'Flush the Thelia internal cache' => 'Vider le cache interne de Thelia',
|
'Flush the Thelia internal cache' => 'Vider le cache interne de Thelia',
|
||||||
'Flush the assets cache directory' => 'Vider le cache des assets web',
|
'Flush the assets cache directory' => 'Vider le cache des assets web',
|
||||||
'Flush the images and documents cache' => 'Vider le caches des images et documents',
|
'Flush the images and documents cache' => 'Vider le caches des images et documents',
|
||||||
|
'Folder' => 'Dossier',
|
||||||
'Folder created on %date_create. Last modification: %date_change' => 'Dossier créé le %date_create. Dernière modification le %date_change',
|
'Folder created on %date_create. Last modification: %date_change' => 'Dossier créé le %date_create. Dernière modification le %date_change',
|
||||||
'Folder title' => 'Titre du dossier',
|
'Folder title' => 'Titre du dossier',
|
||||||
'Folders' => 'Dossiers',
|
'Folders' => 'Dossiers',
|
||||||
|
|||||||
@@ -94,7 +94,7 @@
|
|||||||
<td class="text-center">
|
<td class="text-center">
|
||||||
{admin_position_block
|
{admin_position_block
|
||||||
resource="admin.product"
|
resource="admin.product"
|
||||||
access="update"
|
access="UPDATE"
|
||||||
path={url path='/admin/product/update-content-position' product_id=$product_id current_tab="related"}
|
path={url path='/admin/product/update-content-position' product_id=$product_id current_tab="related"}
|
||||||
url_parameter="content_id"
|
url_parameter="content_id"
|
||||||
in_place_edit_class="contentPositionChange"
|
in_place_edit_class="contentPositionChange"
|
||||||
@@ -215,7 +215,7 @@
|
|||||||
<td class="text-center">
|
<td class="text-center">
|
||||||
{admin_position_block
|
{admin_position_block
|
||||||
resource="admin.product"
|
resource="admin.product"
|
||||||
access="update"
|
access="UPDATE"
|
||||||
path={url path='/admin/product/update-accessory-position' product_id=$product_id current_tab="related"}
|
path={url path='/admin/product/update-accessory-position' product_id=$product_id current_tab="related"}
|
||||||
url_parameter="accessory_id"
|
url_parameter="accessory_id"
|
||||||
in_place_edit_class="accessoryPositionChange"
|
in_place_edit_class="accessoryPositionChange"
|
||||||
|
|||||||
@@ -54,7 +54,7 @@
|
|||||||
<td class="text-center">
|
<td class="text-center">
|
||||||
{admin_position_block
|
{admin_position_block
|
||||||
resource="admin.configuration.template"
|
resource="admin.configuration.template"
|
||||||
access="update"
|
access="UPDATE"
|
||||||
path={url path="admin/template/update-attribute-position" template_id=$template_id}
|
path={url path="admin/template/update-attribute-position" template_id=$template_id}
|
||||||
url_parameter="attribute_id"
|
url_parameter="attribute_id"
|
||||||
in_place_edit_class="attributePositionChange"
|
in_place_edit_class="attributePositionChange"
|
||||||
|
|||||||
@@ -56,7 +56,7 @@
|
|||||||
<td class="text-center">
|
<td class="text-center">
|
||||||
{admin_position_block
|
{admin_position_block
|
||||||
resource="admin.configuration.template"
|
resource="admin.configuration.template"
|
||||||
access="update"
|
access="UPDATE"
|
||||||
path={url path="/admin/template/update-feature-position" template_id=$template_id}
|
path={url path="/admin/template/update-feature-position" template_id=$template_id}
|
||||||
url_parameter="feature_id"
|
url_parameter="feature_id"
|
||||||
in_place_edit_class="featurePositionChange"
|
in_place_edit_class="featurePositionChange"
|
||||||
|
|||||||
@@ -139,7 +139,7 @@
|
|||||||
<td class="text-center">
|
<td class="text-center">
|
||||||
{admin_position_block
|
{admin_position_block
|
||||||
resource="admin.configuration.attribute"
|
resource="admin.configuration.attribute"
|
||||||
access="update"
|
access="UPDATE"
|
||||||
path={url path='/admin/configuration/attributes-av/update-position' attribute_id=$attribute_id}
|
path={url path='/admin/configuration/attributes-av/update-position' attribute_id=$attribute_id}
|
||||||
url_parameter="attributeav_id"
|
url_parameter="attributeav_id"
|
||||||
in_place_edit_class="positionChange"
|
in_place_edit_class="positionChange"
|
||||||
|
|||||||
@@ -92,7 +92,7 @@
|
|||||||
<td class="text-center">
|
<td class="text-center">
|
||||||
{admin_position_block
|
{admin_position_block
|
||||||
resource="admin.configuration.attribute"
|
resource="admin.configuration.attribute"
|
||||||
access="update"
|
access="UPDATE"
|
||||||
path="/admin/configuration/attributes/update-position"
|
path="/admin/configuration/attributes/update-position"
|
||||||
url_parameter="attribute_id"
|
url_parameter="attribute_id"
|
||||||
in_place_edit_class="positionChange"
|
in_place_edit_class="positionChange"
|
||||||
|
|||||||
@@ -133,7 +133,7 @@
|
|||||||
<td>
|
<td>
|
||||||
{admin_position_block
|
{admin_position_block
|
||||||
resource="admin.category"
|
resource="admin.category"
|
||||||
access="update"
|
access="UPDATE"
|
||||||
path={url path='admin/categories/update-position' category_id=$ID}
|
path={url path='admin/categories/update-position' category_id=$ID}
|
||||||
url_parameter="category_id"
|
url_parameter="category_id"
|
||||||
in_place_edit_class="categoryPositionChange"
|
in_place_edit_class="categoryPositionChange"
|
||||||
@@ -304,7 +304,7 @@
|
|||||||
<td>
|
<td>
|
||||||
{admin_position_block
|
{admin_position_block
|
||||||
resource="admin.product"
|
resource="admin.product"
|
||||||
access="update"
|
access="UPDATE"
|
||||||
path={url path='/admin/products/update-position' product_id=$ID}
|
path={url path='/admin/products/update-position' product_id=$ID}
|
||||||
url_parameter="product_id"
|
url_parameter="product_id"
|
||||||
in_place_edit_class="productPositionChange"
|
in_place_edit_class="productPositionChange"
|
||||||
|
|||||||
@@ -143,7 +143,7 @@
|
|||||||
<td class="text-center">
|
<td class="text-center">
|
||||||
{admin_position_block
|
{admin_position_block
|
||||||
resource="admin.configuration.currency"
|
resource="admin.configuration.currency"
|
||||||
access="update"
|
access="UPDATE"
|
||||||
path="/admin/configuration/currencies/update-position"
|
path="/admin/configuration/currencies/update-position"
|
||||||
url_parameter="currency_id"
|
url_parameter="currency_id"
|
||||||
in_place_edit_class="currencyPositionChange"
|
in_place_edit_class="currencyPositionChange"
|
||||||
|
|||||||
@@ -139,7 +139,7 @@
|
|||||||
<td class="text-center">
|
<td class="text-center">
|
||||||
{admin_position_block
|
{admin_position_block
|
||||||
resource="admin.configuration.feature"
|
resource="admin.configuration.feature"
|
||||||
access="update"
|
access="UPDATE"
|
||||||
path={url path='/admin/configuration/features-av/update-position' feature_id=$feature_id}
|
path={url path='/admin/configuration/features-av/update-position' feature_id=$feature_id}
|
||||||
url_parameter="featureav_id"
|
url_parameter="featureav_id"
|
||||||
in_place_edit_class="positionChange"
|
in_place_edit_class="positionChange"
|
||||||
|
|||||||
@@ -92,7 +92,7 @@
|
|||||||
<td class="text-center">
|
<td class="text-center">
|
||||||
{admin_position_block
|
{admin_position_block
|
||||||
resource="admin.configuration.feature"
|
resource="admin.configuration.feature"
|
||||||
access="update"
|
access="UPDATE"
|
||||||
path="/admin/configuration/features/update-position"
|
path="/admin/configuration/features/update-position"
|
||||||
url_parameter="feature_id"
|
url_parameter="feature_id"
|
||||||
in_place_edit_class="positionChange"
|
in_place_edit_class="positionChange"
|
||||||
|
|||||||
@@ -133,7 +133,7 @@
|
|||||||
<td>
|
<td>
|
||||||
{admin_position_block
|
{admin_position_block
|
||||||
resource="admin.folder"
|
resource="admin.folder"
|
||||||
access="update"
|
access="UPDATE"
|
||||||
path={url path='admin/folders/update-position' folder_id=$ID}
|
path={url path='admin/folders/update-position' folder_id=$ID}
|
||||||
url_parameter="folder_id"
|
url_parameter="folder_id"
|
||||||
in_place_edit_class="folderPositionChange"
|
in_place_edit_class="folderPositionChange"
|
||||||
@@ -291,7 +291,7 @@
|
|||||||
<td>
|
<td>
|
||||||
{admin_position_block
|
{admin_position_block
|
||||||
resource="admin.content"
|
resource="admin.content"
|
||||||
access="update"
|
access="UPDATE"
|
||||||
path={url path='/admin/content/update-position' content_id=$ID}
|
path={url path='/admin/content/update-position' content_id=$ID}
|
||||||
url_parameter="content_id"
|
url_parameter="content_id"
|
||||||
in_place_edit_class="contentPositionChange"
|
in_place_edit_class="contentPositionChange"
|
||||||
|
|||||||
@@ -170,6 +170,44 @@
|
|||||||
</div>
|
</div>
|
||||||
{* end order search *}
|
{* end order search *}
|
||||||
|
|
||||||
|
{* category search *}
|
||||||
|
<div class="general-block-decorator">
|
||||||
|
<div class="table-responsive">
|
||||||
|
<table class="table table-striped table-condensed table-left-aligned">
|
||||||
|
<caption class="clearfix">
|
||||||
|
{intl l='Category'}
|
||||||
|
</caption>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>{intl l="ID"}</th>
|
||||||
|
<th></th>
|
||||||
|
<th>{intl l="Category title"}</th>
|
||||||
|
|
||||||
|
<th class="actions">{intl l="Actions"}</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
|
||||||
|
<tbody>
|
||||||
|
{loop type="category" name="category-search" visible="*" search_mode="sentence" search_term=trim($smarty.get.search_term) search_in="title"}
|
||||||
|
<tr>
|
||||||
|
<td>{$ID}</td>
|
||||||
|
<td></td>
|
||||||
|
<td class="object-title"><a href="{url path="/admin/categories/update" category_id={$ID}}">{$TITLE}</a></td>
|
||||||
|
<td class="actions">
|
||||||
|
<div class="btn-group">
|
||||||
|
{loop type="auth" name="can_change" role="ADMIN" resource="admin.category" access="UPDATE"}
|
||||||
|
<a class="btn btn-default btn-xs" title="{intl l='Edit this category'}" href="{url path="/admin/categories/update" category_id={$ID}}"><i class="glyphicon glyphicon-edit"></i></a>
|
||||||
|
{/loop}
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{/loop}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{* end category search *}
|
||||||
|
|
||||||
{* product search *}
|
{* product search *}
|
||||||
<div class="general-block-decorator">
|
<div class="general-block-decorator">
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
@@ -222,6 +260,92 @@
|
|||||||
</div>
|
</div>
|
||||||
{* end product search *}
|
{* end product search *}
|
||||||
|
|
||||||
|
{* folder search *}
|
||||||
|
<div class="general-block-decorator">
|
||||||
|
<div class="table-responsive">
|
||||||
|
<table class="table table-striped table-condensed table-left-aligned">
|
||||||
|
<caption class="clearfix">
|
||||||
|
{intl l='Folder'}
|
||||||
|
</caption>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>{intl l="ID"}</th>
|
||||||
|
<th></th>
|
||||||
|
<th>{intl l="Folder title"}</th>
|
||||||
|
|
||||||
|
<th class="actions">{intl l="Actions"}</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
|
||||||
|
<tbody>
|
||||||
|
{loop type="folder" name="folder-search" visible="*" search_mode="sentence" search_term=trim($smarty.get.search_term) search_in="title"}
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td>{$ID}</td>
|
||||||
|
<td></td>
|
||||||
|
|
||||||
|
<td class="object-title"><a href="{url path="/admin/folders/update/{$ID}"}">{$TITLE}</a></td>
|
||||||
|
|
||||||
|
|
||||||
|
<td class="actions">
|
||||||
|
<div class="btn-group">
|
||||||
|
{loop type="auth" name="can_change" role="ADMIN" resource="admin.folder" access="UPDATE"}
|
||||||
|
<a class="btn btn-default btn-xs" title="{intl l='Edit this folder'}" href="{url path="/admin/folders/update/{$ID}"}"><i class="glyphicon glyphicon-edit"></i></a>
|
||||||
|
{/loop}
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
{/loop}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{* end folder search *}
|
||||||
|
|
||||||
|
{* content search *}
|
||||||
|
<div class="general-block-decorator">
|
||||||
|
<div class="table-responsive">
|
||||||
|
<table class="table table-striped table-condensed table-left-aligned">
|
||||||
|
<caption class="clearfix">
|
||||||
|
{intl l='Content'}
|
||||||
|
</caption>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>{intl l="ID"}</th>
|
||||||
|
<th></th>
|
||||||
|
<th>{intl l="Content title"}</th>
|
||||||
|
|
||||||
|
<th class="actions">{intl l="Actions"}</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
|
||||||
|
<tbody>
|
||||||
|
{loop type="content" name="content-search" visible="*" search_mode="sentence" search_term=trim($smarty.get.search_term) search_in="title"}
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td>{$ID}</td>
|
||||||
|
<td></td>
|
||||||
|
|
||||||
|
<td class="object-title"><a href="{url path="/admin/content/update/{$ID}"}">{$TITLE}</a></td>
|
||||||
|
|
||||||
|
|
||||||
|
<td class="actions">
|
||||||
|
<div class="btn-group">
|
||||||
|
{loop type="auth" name="can_change" role="ADMIN" resource="admin.content" access="UPDATE"}
|
||||||
|
<a class="btn btn-default btn-xs" title="{intl l='Edit this content'}" href="{url path="/admin/content/update/{$ID}"}"><i class="glyphicon glyphicon-edit"></i></a>
|
||||||
|
{/loop}
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
{/loop}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{* end content search *}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -111,15 +111,11 @@
|
|||||||
{loop name="combi_meta" type="attribute_combination" product_sale_elements="$ID"}
|
{loop name="combi_meta" type="attribute_combination" product_sale_elements="$ID"}
|
||||||
{if $LOOP_COUNT == 0}
|
{if $LOOP_COUNT == 0}
|
||||||
{if $QUANTITY == 0}
|
{if $QUANTITY == 0}
|
||||||
|
|
||||||
{assign var="current_stock_class" value = "out-of-stock"}
|
{assign var="current_stock_class" value = "out-of-stock"}
|
||||||
{assign var="current_stock_href" value = "http://schema.org/OutOfStock"}
|
{assign var="current_stock_href" value = "http://schema.org/OutOfStock"}
|
||||||
|
{else}
|
||||||
{else}
|
{assign var="current_stock_class" value = "in-stock"}
|
||||||
|
{assign var="current_stock_href" value = "http://schema.org/InStock"}
|
||||||
{assign var="current_stock_class" value = "out-of-stock"}
|
|
||||||
{assign var="current_stock_href" value = "http://schema.org/OutOfStock"}
|
|
||||||
|
|
||||||
{/if}
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
{/loop}
|
{/loop}
|
||||||
|
|||||||
Reference in New Issue
Block a user