/
layout.php
26 lines (26 loc) · 1.18 KB
/
layout.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
$labelAttr = in_array($this->generalOption->inputType, GeneralOptionWidget::SINGLEINPUTTYPE) ? 'for="' : 'id="label-';
$labelAttr .= CHtml::getIdByName($this->generalOption->name) . '"';
?>
<div class="mb-3">
<div class="question-option-general-setting-block">
<div class="col-12">
<label <?= $labelAttr; ?>>
<?= $this->generalOption->title; ?>
</label>
<?php if ($this->generalOption->formElement->help): ?>
<a
role="button"
data-bs-toggle="collapse"
href="#help-<?= CHtml::getIdByName($this->generalOption->name); ?>"
><i
class="ri-information-fill"
data-bs-toggle="tooltip"
title="<?= CHtml::encode(strip_tags((string) $this->generalOption->formElement->help)) ?>"
> </i><span class="visually-hidden"><?= gT("Show help"); ?></span> </a>
<div class="help-block collapse" id="help-<?= CHtml::getIdByName($this->generalOption->name); ?>" aria-expanded="false"><?= $this->generalOption->formElement->help; ?></div>
<?php endif; ?>
</div>
<?= $content; ?>
</div>
</div>