From 10b299d8ed0239e020758b424ccb4003db85d4f6 Mon Sep 17 00:00:00 2001 From: Shreesh Arora Date: Mon, 5 Aug 2024 17:05:07 +0530 Subject: [PATCH] Updated helper tree| created new helper tree for generating tree --- admin/themes/default/sass/partials/_tree.sass | 5 + .../normal_products/helpers/tree/tree.tpl | 39 ++ .../normal_products/informations.tpl | 4 +- .../default/template/helpers/tree/tree.tpl | 121 +++--- .../helpers/tree/tree_node_folder.tpl | 6 + .../tree/tree_node_folder_checkbox.tpl | 13 +- .../helpers/tree/tree_node_folder_radio.tpl | 12 +- .../template/helpers/tree/tree_node_item.tpl | 6 + .../helpers/tree/tree_node_item_checkbox.tpl | 6 + .../helpers/tree/tree_node_item_radio.tpl | 6 + classes/helper/HelperTree.php | 21 +- classes/tree/Tree.php | 23 +- .../admin/AdminNormalProductsController.php | 6 +- .../classes/HotelHelper.php | 356 ++++++++++++------ 14 files changed, 430 insertions(+), 194 deletions(-) create mode 100644 admin/themes/default/template/controllers/normal_products/helpers/tree/tree.tpl diff --git a/admin/themes/default/sass/partials/_tree.sass b/admin/themes/default/sass/partials/_tree.sass index 897c29f85..9d382680e 100644 --- a/admin/themes/default/sass/partials/_tree.sass +++ b/admin/themes/default/sass/partials/_tree.sass @@ -7,6 +7,7 @@ font-size: $icon-size-base .tree list-style: none + overflow: auto @include padding(0, 0, 0, 20px) input vertical-align: baseline @@ -42,6 +43,10 @@ &:hover color: #ccc background-color: none + .node-hint + font-style: italic + color: #959595 + margin-left: 30px .tree-actions display: inline-block diff --git a/admin/themes/default/template/controllers/normal_products/helpers/tree/tree.tpl b/admin/themes/default/template/controllers/normal_products/helpers/tree/tree.tpl new file mode 100644 index 000000000..ce2479919 --- /dev/null +++ b/admin/themes/default/template/controllers/normal_products/helpers/tree/tree.tpl @@ -0,0 +1,39 @@ +{* +* Since 2010 Webkul. +* +* NOTICE OF LICENSE +* +* All right is reserved, +* Please go through this link for complete license : https://store.webkul.com/license.html +* +* DISCLAIMER +* +* Do not edit or add to this file if you wish to upgrade this module to newer +* versions in the future. If you wish to customize this module for your +* needs please refer to https://store.webkul.com/customisation-guidelines/ for more information. +* +* @author Webkul IN +* @copyright Since 2010 Webkul IN +* @license https://store.webkul.com/license.html +*} +{extends file="helpers/tree/tree.tpl"} + \ No newline at end of file diff --git a/admin/themes/default/template/controllers/normal_products/informations.tpl b/admin/themes/default/template/controllers/normal_products/informations.tpl index 49537d7dd..81088a6b0 100644 --- a/admin/themes/default/template/controllers/normal_products/informations.tpl +++ b/admin/themes/default/template/controllers/normal_products/informations.tpl @@ -234,13 +234,13 @@
service_product_type == Product::SERVICE_PRODUCT_WITHOUT_ROOMTYPE}style="display:none;"{/if}>
{include file="controllers/products/multishop/checkbox.tpl" field="category_box" type="category_box"}
-