Please fill out the following fields to submit the new institution:
Institution
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, 'institutionShort')?>
= $form->field($modal, 'institutionFullName')?>
= $form->field($modal, 'city')?>
country;
$countries = DBInterface::getCountries();
$countrylist = ArrayHelper::map($countries, 'iso', 'country');
echo $form->field($modal, 'country')
->dropDownList(
$countrylist,
['prompt' => '--Please select a country--'],
['options' =>
[
$selectedValue => ['selected' => 'selected']
]
]
)->label('Country');
?>
= $form->field($modal, 'Latitude')->textInput( ['placeholder'=>"Minus for South America, Africa and Australia please :)"])?>
= $form->field($modal, 'Longitude')->textInput( ['placeholder'=>"Minus for North and South America please :)"])?>
= $form->field($modal, 'logoURL')?>
= $form->field($modal, 'urlLoanPolicies')?>
= $form->field($modal, 'isMember')->checkbox()?>
= $form->field($modal, 'memberStatus')->radioList(["Core"=>"Core","Associate"=>"Associate","Observer"=>"Observer","Consortium"=>"Consortium"])?>
= $form->field($modal, 'votingMember')->radioList(["1"=>"Yes","0"=>"No"])?>
isMemberOfConsortium;
$consortia = DBInterface::getConsortia();
$consortialist = ArrayHelper::map($consortia, 'parentInstitutionID', 'institutionFullName');
echo $form->field($modal, 'isMemberOfConsortium')
->dropDownList(
$consortialist,
['prompt' => '--Please select a consortium--'],
['options' =>
[
$selectedValue => ['selected' => 'selected']
]
]
)->label('Member of Consortium');
?>
= $form->field($modal, 'dateOfJoining')?>
= $form->field($modal, 'onlineSince')?>
= $form->field($modal, 'CITES_code')->textInput( ['placeholder'=>"Check https://cites.org/eng/cms/index.php/component/cp/country/US/"])?>
= Html::submitButton('Create', ['class' => 'btn btn-lg btn-success', 'name' => 'create-button'])?>