Please fill out the following fields to submit the new contact person:
If your contact person is from a new institution, you first need to enter the new institution. = Html::a('New Institution', ['validation/new'], ['class'=> 'btn btn-success']);?>
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($model, 'name')?>
= $form->field($model, 'email')?>
= $form->field($model, 'phone')?>
= $form->field($model, 'shoppingSystem')->radioList(['1'=>'yes', '0'=>'no'])?>
= $form->field($model, 'role')->dropDownList(['primary contact'=>'primary contact', 'director'=>'director'])?>
parentInstitution;
$inst =DBInterface::getInstitutions();
$instlist = ArrayHelper::map($inst, 'parentInstitutionID', 'institutionFullName');
echo $form->field($model, 'parentInstitution')
->dropDownList(
$instlist,
['prompt' => '--Please select an institution --'],
['options' =>
[
$selectedValue => ['selected' => true]
]
]
);
?>
= $form->field($model, 'notes')->textarea()?>
= Html::submitButton('Create', ['class' => 'btn btn-primary', 'name' => 'create-button'])?>