preorder count in Adressdb/View is now link
This commit is contained in:
@@ -184,7 +184,13 @@
|
||||
</td>
|
||||
<td><?=((string)$unit) ? "<strong>".(string)$unit."</strong>" : ""?></td>
|
||||
<td><?=($unit->extref) ? "[".$unit->extref."]" : ""?></td>
|
||||
<td title="Anzahl Bestellungen"><?=PreorderModel::countActive(["adb_wohneinheit_id" => $unit->id])?></td>
|
||||
<td title="Anzahl Bestellungen">
|
||||
<?php if(is_array($unit->active_preorders) && count($unit->active_preorders)): ?>
|
||||
<a href="<?=self::getUrl("Preorder", "", [ "filter" => ["adb_wohneinheit_id" => $unit->id]])?>" target="_blank"><?=count($unit->preorders)?></a>
|
||||
<?php else: ?>
|
||||
0
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user