Edit contact
Please fill out the following fields to change the details of the contact person:
Contact Information
ActiveForm::TYPE_VERTICAL, 'options' => ['class' => 'form-row'], 'fieldConfig' =>['options' => ['class' => 'complete_field searchfields col-lg-6 col-md-5 col-sm-3 col-2']]]); ?>
= $form->field($modal, 'name')?>
= $form->field($modal, 'email')?>
= $form->field($modal, 'phone')?>
= $form->field($modal, 'shoppingSystem')->radioList(['1'=>'yes', '0'=>'no'])?>
= $form->field($modal, 'role')->dropDownList(['primary contact'=>'primary contact', 'director'=>'director'])?>
parentInstitution;
$parent = DBInterface::getAllInstitutions();
$parentlist = ArrayHelper::map($parent, 'parentInstitutionID', 'institutionFullName');
echo $form->field($modal, 'parentInstitution')
->dropDownList(
$parentlist,
['prompt' => '--Please select a parent institution--'],
['options' =>
[
$selectedValue => ['selected' => 'selected']
]
]
)->label('Parent Institution');
?>
= $form->field($modal, 'notes')->textarea()?>
= Html::submitButton('Update', ['class' => 'btn btn-success', 'name' => 'create-button'])?>
= $form->field($modal, 'contactID')->hiddenInput ()->label ( '' )?>