registerCssFile('@web/css/admin-system.css', ['depends' => [BootstrapAsset::class]]); $this->title = '系统设置'; ?>
' . $siteConfig->attributeLabels()[$attribute] . ' | ';
if ($attribute == 'registrationEnabled' || $attribute == 'enableIpinfo' || $attribute == 'clarityEnabled' || $attribute == 'gaEnabled') {
echo '' . $form->field($siteConfig, $attribute)->checkbox(['class' => 'form-check-input'], false)->label(false) . ' | '; } elseif ($attribute == 'verifyProvider') { echo '' . $form->field($siteConfig, $attribute)->dropDownList(['None' => 'None', 'reCAPTCHA' => 'reCAPTCHA', 'hCaptcha' => 'hCaptcha', 'Turnstile' => 'Turnstile'], ['class' => 'form-select form-select-sm', 'style' => 'width:25em'])->label(false) . ' | '; } else { echo '' . $form->field($siteConfig, $attribute)->textInput(['class' => 'form-control form-control-sm', 'style' => 'width:25em'])->label(false) . ' | '; } echo ''; echo ''; } ?> |
---|