Showing user-friendly names in order form file name

This commit is contained in:
Frank Schubert
2022-06-21 19:07:50 +02:00
parent 26b0a67d09
commit a6652c5ab8

View File

@@ -666,7 +666,15 @@
</tr>
<?php foreach($order->files as $file): ?>
<tr>
<td><a href="<?=self::getUrl("File", "Download", ['id' => $file->file->id])?>"><?=$file->name?></a></td>
<td>
<a href="<?=self::getUrl("File", "Download", ['id' => $file->file->id])?>">
<?php if(defined("TT_ORDER_FILE_TYPES") && array_key_exists($file->name, TT_ORDER_FILE_TYPES)): ?>
<?=TT_ORDER_FILE_TYPES[$file->name]?>
<?php else: ?>
<?=$file->name?>
<?php endif; ?>
</a>
</td>
<td><?=nl2br(htmlentities($file->description))?></td>
<td><?=$file->file->filename?></td>
<td class="text-monospace"><?=date("d.m.Y", $file->create)?> (<?=$file->creator->name?>)</td>