secretKeyText.php 688 B

1234567891011121314151617181920212223
  1. <?php
  2. use common\helpers\Html;
  3. use common\enums\StatusEnum;
  4. use common\widgets\input\SecretKeyInput;
  5. ?>
  6. <div class="form-group">
  7. <?= Html::label($row['title'], $row['name'], ['class' => 'control-label demo']); ?>
  8. <?php if ($row['is_hide_remark'] != StatusEnum::ENABLED) { ?>
  9. <small><?= \yii\helpers\HtmlPurifier::process($row['remark']) ?></small>
  10. <?php } ?>
  11. <?= SecretKeyInput::widget([
  12. 'name' => 'config[' . $row['name'] . ']',
  13. 'value' => $row['value']['data'] ?? $row['default_value'],
  14. 'options' => [
  15. 'id' => $row['id'],
  16. 'class' => 'form-control',
  17. ],
  18. 'number' => $row['extra'],
  19. ])?>
  20. </div>
粤ICP备19079148号