Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
systems:yii2:file_upload [2018/03/01 15:24]
smayr [View]
systems:yii2:file_upload [2018/03/01 16:22] (current)
smayr [View]
Line 844: Line 844:
         echo "<img class='img-thumbnail' src='data:image/png;base64," . base64_encode(\app\models\Tool::generateEmptyPng()) . "'/>";         echo "<img class='img-thumbnail' src='data:image/png;base64," . base64_encode(\app\models\Tool::generateEmptyPng()) . "'/>";
     }     }
 +    
 +    echo Html::a('<i class="fa fa-plus" aria-hidden="true"></i> ' . Yii::t('app', 'Add Image'), 
 +        ['upload-image', 'id' => $model->id], 
 +        ['class' => 'btn btn-default']
 +    );
  
     // Modal Window     // Modal Window