Added max char to the hotel short description textarea
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user