?> <?php echo Html::dropDownList('url', $model->getThumbUrl($strictThumb), $model->getImagesList($this->context->module), ['class' => 'form-control input-sm']); ?> <div class="help-block"></div> </div> <?php } else { ?> <?php echo Html::hiddenInput('url', $model->url); } ?> <?php echo Html::hiddenInput('id', $model->id); ?> <?php if (User::hasPermission('editMedia') && $mode != 'modal') { ?> <?php echo Html::submitButton(Yii::t('yee', 'Save'), ['class' => 'btn btn-primary']); } ?> <?php if ($mode == 'modal') { ?> <?php echo Html::button(Yii::t('yee', 'Insert'), ['id' => 'insert-btn', 'class' => 'btn btn-primary']);