Added max char to the hotel short description textarea

This commit is contained in:
vishalsingh.qlo325
2025-04-25 12:58:14 +05:30
parent 054b62557f
commit abfadf76bf
2 changed files with 2 additions and 0 deletions

View File

@@ -123,6 +123,7 @@ class AdminAddHotelController extends ModuleAdminController
$smartyVars['currentLang'] = Language::getLanguage((int) $currentLangId);
$smartyVars['defaultCurrency'] = Configuration::get('PS_CURRENCY_DEFAULT');
$smartyVars['PS_SHORT_DESC_LIMIT'] = Configuration::get('PS_SHORT_DESC_LIMIT');
$countries = Country::getCountries($this->context->language->id, true);
$smartyVars['country_var'] = $countries;

View File

@@ -150,6 +150,7 @@
<textarea
name="short_description_{$language.id_lang}"
id="short_description_{$language.id_lang}"
{if isset($PS_SHORT_DESC_LIMIT) && $PS_SHORT_DESC_LIMIT} maxlength="{$PS_SHORT_DESC_LIMIT|intval}"{/if}
cols="2" rows="3"
class="form-control">{if isset($smarty.post.$short_desc_name)}{$smarty.post.$short_desc_name}{elseif isset($edit)}{$hotel_info.short_description[{$language.id_lang}]}{/if}</textarea>
</div>