Hello my question is this I have this view
and when creating an assistance, this other view is displayed
There I can choose the date and the name of just a mechanic and a checkbox goes down to see if he attended or not
my question is the following one can do that instead of that I have to choose the name of the mechanic I will instantly display all the mechanics and next to them the checkbox and so when I save, I will keep the date and if press "see" all the mechanics will be displayed with their respective assistance
this is the code of the form to look for a mechanic
<?= $form->field($model, 'mecanico_id')
->dropDownList(
ArrayHelper::map(Mecanico::find()->all(), 'id_mecanico', 'nombre'),['prompt'=>'Escoja el Mecánico'])
?>