';
if($attachment->private)
{
$htmlCode = '';
}
?>
| = $htmlCode ?>= $htmlCode;?> |
= h($attachment->original_file_name) ?> |
= $attachment->relevant ? '' : '' ?> |
= h($attachment->human_original_file_size) ?> |
= h($attachment->mimetype) ?> |
= h($attachment->upload_date) ?> |
= h($attachment->controllable_object->creator) ?> |
Html->link(__('Visualizza'), ['controller' => 'attachments', 'action' => 'view', $attachment->file_name], ['target' => '_blank', 'class' => 'btn btn-info btn-xs', 'style' => 'margin-right: 5px;', 'data-mimetype' => $attachment->mimetype]);
if (isset($removecurrentfiles) && $removecurrentfiles == "true") {
echo $this->Html->link(__('Segna da eliminare'), ['controller' => 'attachments', 'action' => 'markAsDeleted', $attachment->controllable_object_id], ['target' => '_blank', 'class' => 'btn btn-danger btn-xs', 'style' => 'margin-right: 5px;']);
} else {
echo $this->Html->link($attachment->relevant ? __('Segna come non rilevante') : __('Segna come rilevante'), ['controller' => 'attachments', 'action' => 'markAsRelevant', $attachment->file_name], ['id' => $attachment->controllable_object_id, 'target' => '_blank', 'class' => 'btn btn-warning btn-xs', 'style' => 'margin-right: 5px;']);
}
?>
|