Skip to content

Commit

Permalink
Update _form.php
Browse files Browse the repository at this point in the history
Fix url
  • Loading branch information
evgenmil committed May 26, 2015
1 parent e90416e commit 6472c35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/news/views/a/_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<?php if($this->context->module->settings['enableThumb']) : ?>
<?php if($model->image) : ?>
<img src="<?= Image::thumb($model->image, 240) ?>">
<a href="'<?= Url::to(['/admin/'.$module.'/a/clear-image', 'id' => $model->news_id]) ?>" class="text-danger confirm-delete" title="<?= Yii::t('easyii', 'Clear image')?>"><?= Yii::t('easyii', 'Clear image')?></a>
<a href="<?= Url::to(['/admin/'.$module.'/a/clear-image', 'id' => $model->news_id]) ?>" class="text-danger confirm-delete" title="<?= Yii::t('easyii', 'Clear image')?>"><?= Yii::t('easyii', 'Clear image')?></a>
<?php endif; ?>
<?= $form->field($model, 'image')->fileInput() ?>
<?php endif; ?>
Expand Down Expand Up @@ -46,4 +46,4 @@
<?php endif; ?>

<?= Html::submitButton(Yii::t('easyii', 'Save'), ['class' => 'btn btn-primary']) ?>
<?php ActiveForm::end(); ?>
<?php ActiveForm::end(); ?>

0 comments on commit 6472c35

Please sign in to comment.