Skip to content

Commit

Permalink
disable autocomplete on player form
Browse files Browse the repository at this point in the history
  • Loading branch information
proditis committed Nov 18, 2024
1 parent 3ecfb1e commit 3c562b8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions backend/modules/frontend/views/player/_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@

<?php $form=ActiveForm::begin();?>

<?= $form->field($model, 'username')->textInput(['maxlength' => true])->hint('The username of the player') ?>
<?= $form->field($model, 'username')->textInput(['maxlength' => true,'autocomplete'=>"off"])->hint('The username of the player') ?>

<?= $form->field($model, 'fullname')->textInput(['maxlength' => true])->hint('The fullname of the player') ?>
<?= $form->field($model, 'fullname')->textInput(['maxlength' => true,'autocomplete'=>"off"])->hint('The fullname of the player') ?>

<?php if (\Yii::$app->sys->academic_grouping !== false): ?>
<?= $form->field($model, 'academic')->dropDownList((new \app\components\columns\AcademicColumn(['attribute'=>'academic']))->filter)->hint('Academic grouping number for the player (if any)') ?>
<?php else:?>
<?= $form->field($model, 'academic')->textInput()->hint('Academic grouping number for the player (if any)') ?>
<?php endif;?>
<?= $form->field($model, 'email')->textInput(['maxlength' => true])->hint('The email address of the player') ?>
<?= $form->field($model, 'email')->textInput(['maxlength' => true,'autocomplete'=>"off"])->hint('The email address of the player') ?>

<?= $form->field($model, 'type')->dropDownList(['offense' => 'Offense', 'defense' => 'Defense', ], ['prompt' => 'Choose player type'])->hint('Choose the type of the player. Either offense or defense') ?>

<?= $form->field($model, 'new_password')->textInput(['maxlength' => true])->hint('Choose a password for the player') ?>
<?= $form->field($model, 'new_password')->textInput(['maxlength' => true,'autocomplete'=>"off"])->hint('Choose a password for the player') ?>

<?= $form->field($model, 'activkey')->textInput(['maxlength' => true])->hint('The activation key, generated automatically by the application. TODO') ?>

Expand Down

0 comments on commit 3c562b8

Please sign in to comment.