ソースを参照

Fix for issue #5

Apply the template to the checkbox, not the field.
BlueZED 10 年 前
コミット
8ed0dfbdeb
1 ファイル変更3 行追加3 行削除
  1. 3 3
      views/site/login.php

+ 3 - 3
views/site/login.php

@@ -27,9 +27,9 @@ $this->params['breadcrumbs'][] = $this->title;
 
     <?= $form->field($model, 'password')->passwordInput() ?>
 
-    <?= $form->field($model, 'rememberMe', [
-        'template' => "<div class=\"col-lg-offset-1 col-lg-3\">{input}</div>\n<div class=\"col-lg-8\">{error}</div>",
-    ])->checkbox() ?>
+    <?= $form->field($model, 'rememberMe')->checkbox([
+        'template' => "<div class=\"col-lg-offset-1 col-lg-3\">{input} {label}</div>\n<div class=\"col-lg-8\">{error}</div>",
+    ]) ?>
 
     <div class="form-group">
         <div class="col-lg-offset-1 col-lg-11">