Form->create($sponsor, ['role' => 'form', 'enctype' => 'multipart/form-data']); ?>
Form->control('name', ['disabled' => 'disabled']);
echo $this->Form->control('description', ['type' => 'textarea']);
echo $this->Form->control('image', ['type' => 'file', 'class' => 'sponsor-img']);
?>
Html->image($sponsor->image, ['alt' => 'Sponsor Image', 'width' => '100', 'height' => '60', 'class' => 'mb-3', 'id' => 'imagePreview']); ?>
Form->submit(__('Submit')); ?>
Form->end(); ?>