Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue #18593: Float attributes are not supported anymore (#3411)
Co-authored-by: lapiudevgit <devgit@lapiu.biz>
- Loading branch information
1 parent
ecef134
commit 1a5abb1
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
application/extensions/AdvancedSettingWidget/views/float.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<div class="input-group col-12"> | ||
<?php if (isset($this->setting['aFormElementOptions']['inputGroup']['prefix'])) : ?> | ||
<div class="input-group-addon"> | ||
<?= $this->setting['aFormElementOptions']['inputGroup']['prefix']; ?> | ||
</div> | ||
<?php endif; ?> | ||
<input | ||
type="number" | ||
class="form-control" | ||
name="<?= $inputBaseName ?>" | ||
id="<?= CHtml::getIdByName($inputBaseName); ?>" | ||
<?= ($this->setting['help']) ? 'aria-describedby="help-' . CHtml::getIdByName($inputBaseName) . '"' : "" ?> | ||
value="<?= CHtml::encode($this->setting['value']); ?>" | ||
<?= isset($this->setting['min']) ? 'min="' . $this->setting['min'] . '"' : '' ?> | ||
<?= isset($this->setting['max']) ? 'max="' . $this->setting['max'] . '"' : '' ?> | ||
/> | ||
<?php if (isset($this->setting['aFormElementOptions']['inputGroup']['suffix'])) : ?> | ||
<div class="input-group-addon"> | ||
<?= $this->setting['aFormElementOptions']['inputGroup']['suffix']; ?> | ||
</div> | ||
<?php endif; ?> | ||
</div> |