<div
id="<?= $this->zoneconfig['conf']['id'] ?>"
data-melisKey="<?= $this->zoneconfig['conf']['melisKey'] ?>"
class="tab-pane container-level-a"
>
<div class="border-bottom" style="margin-bottom: 20px;padding-bottom: 20px">
<div class="row">
<div class="col-xs-12 col-md-6 col-lg-6">
<h3><?= $this->translate('tr_meliscms_page_tab_properties_Properties') ?></h3>
</div>
<div class="col-xs-12 col-md-6 col-lg-6">
<div class="form-group pull-right">
<div id="mtpl-category-status" class="make-switch mtpl-switch-width" data-on-label="<?= $this->translate('tr_meliscms_tool_style_page_status_on')?>" data-off-label="<?= $this->translate('tr_meliscms_tool_style_page_status_off')?>" data-text-label="<?= $this->translate('tr_meliscore_common_status') ?>">
<input type="checkbox" name="mtpl-cat-status" id="mtpl-cat-status" <?= ($this->status) ? 'checked' : '' ?>>
</div>
</div>
<script type="text/javascript">
$("#mtpl-category-status").bootstrapSwitch();
</script>
</div>
</div>
</div>
<!-- Header - Save button END -->
<!-- Body - Form -->
<div class="row">
<!-- Languages tab -->
<div class="col-xs-12 col-md-6 col-lg-2">
<div class="pdc-heading clearfix" style="padding-bottom: 20px; padding-right: 10px;">
<h4>
<i class="fa fa-cog"></i> <?= $this->translate('tr_meliscms_mini_template_menu_manager_tool_add_category_texts')?>
</h4>
</div>
<div class="product-text-tab-container">
<ul class="nav-tabs product-text-tab menu-manager-tab">
<?php foreach ($this->languages as $language) { ?>
<li class="">
<a
class="clearfix"
data-toggle="tab"
href="#<?= $language['lang_cms_id'].'-mini-template-menu-manager-category' ?>"
aria-expanded="false"
>
<span class="float-right">
<img
src="/MelisCms/images/lang-flags/<?= $language['lang_cms_locale'] ?>.png"
class="imgDisplay float-right"
/>
</span>
<span class="mm-lang-name"><?= $language['lang_cms_name']?></span>
</a>
</li>
<?php } ?>
</ul>
</div>
</div>
<!-- Languages tab END -->
<!-- Form -->
<div class="col-xs-12 col-md-5 col-lg-3">
<div class="tab-content">
<?php foreach ($this->languages as $language): ?>
<div id="<?php echo $language['lang_cms_id'].'-mini-template-menu-manager-category' ?>" class="tab-pane product-text-tab-content">
<div class="me-heading bg-white ">
<h3 class=""><i class="fa fa-language" aria-hidden="true"></i> <?php echo $language['lang_cms_name'] ?></h3>
</div>
<div class="product-text-tab-form-content" style="padding-bottom: 0px; padding-right: 0px;">
<?php
$form = clone $this->form;
$form->setAttribute('id', $language['lang_cms_id'] . '_' . $form->getAttribute('id'));
$input = $form->get('category_name');
$input->setName($language['lang_cms_id'] . '_category_name');
$input->setValue($this->texts[$language['lang_cms_id']] ?? '');
$input->setAttribute('id', $input->getName());
$input->setAttribute('data-input-locale', $language['lang_cms_locale']);
echo $this->form()->openTag($form);
echo $this->melisFieldCollection($form);
echo $this->form()->closeTag();
?>
</div>
</div>
<?php endforeach; ?>
</div>
</div>
<!-- Form END -->
</div>
<!-- Body - Form END -->
</div>
|