element('GalleryImages/dropzone', ['foreignKey' => $cause->id, 'model' => $model]); ?>
|
Html->image($this->Custom->generateUrlHdy(
[
'model_name' => $image->model,
'uuid' => $image->foreign_uuid,
'image_name' => $image->image_path,
],
true,
400,
300,
true
), ['class' => 'img-fluid']) ?>
|
name); ?> | description); ?> | Form->postLink(($image->is_featured) ? __('Is featured') : __('Set featured'), ['prefix' => 'Dashboard', 'controller' => 'GalleryImages', 'action' => 'setFeaturedImage', $cause->id, $model, $image->id], ['confirm' => __('Are you sure you want to change featured image?'), 'class' => ($image->is_featured) ? 'btn btn-success btn-xs disabled' : 'btn btn-info btn-xs']); ?> Form->postLink(__('Delete'), ['controller' => 'GalleryImages', 'action' => 'delete', $image->id], ['confirm' => __('Are you sure you want to delete # {0}?', $image->title), 'class' => 'btn btn-danger btn-xs']); ?> |