Skip to content

Commit

Permalink
Merge pull request #1155 from proditis/issue-1134
Browse files Browse the repository at this point in the history
fixes #1134
  • Loading branch information
proditis authored Apr 19, 2024
2 parents d01c606 + 0fb59f7 commit acfa2ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions frontend/modules/challenge/models/AnswerForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public function rules()
{
return [
[['answer'], 'required'],
[['answer'], 'string','max'=>128],
[['answer'], 'exist',
'targetClass' => Question::class,
'targetAttribute' => ['answer'=>'code']]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
//'labelOptions' => ['class' => 'control-label col-lg-2'],
],
]);?>
<?=$form->field($answer, 'answer')->textInput(['placeholder'=>$model->maskedCode,'autofocus' => false, 'autocomplete'=>'off', 'style'=>"width: 100%;margin: 0; padding: 0; border: 0;",'id'=>'question'.$model->id])->label(false) ?>
<?=$form->field($answer, 'answer')->textInput(['placeholder'=>$model->maskedCode,'autofocus' => false, 'autocomplete'=>'off', 'style'=>"width: 100%;margin: 0; padding: 0; border: 0;",'id'=>'question'.$model->id,'maxlength'=>128])->label(false) ?>
<?php ActiveForm::end();?>
<?php endif;?>
</div>
Expand Down

0 comments on commit acfa2ae

Please sign in to comment.