Added icons in quick contract view
This commit is contained in:
@@ -255,21 +255,28 @@
|
||||
</div>
|
||||
<?php if(is_array($address->contracts) && count($address->contracts)): ?>
|
||||
<ul class="list-group list-group-flush">
|
||||
<?php foreach($address->contracts as $contract): ?>
|
||||
<?php if($contract->owner_id != $address->id) continue; ?>
|
||||
<li class="list-group-item">
|
||||
<a href="<?=self::getUrl("Contract", "View", ["id" => $contract->id])?>" class="<?=($contract->price < 0) ? "text-danger" : ""?>">
|
||||
<?=$contract->product_name?> <?=($contract->matchcode) ? "[".$contract->matchcode."]" : ""?>
|
||||
</a>
|
||||
<?php if(is_array($contract->voicenumbers)): ?>
|
||||
<span class="text-pink">
|
||||
(<?=implode(", ", $contract->voicenumbers)?>)
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
<span class='text-secondary'>
|
||||
<?=($contract->finish_date) ? "Fertigstellung: ".date('d.m.Y', $contract->finish_date) : "in Herstellung"?>
|
||||
</span>
|
||||
</li>
|
||||
<?php foreach($address->contracts as $contract): ?>
|
||||
<?php if($contract->owner_id != $address->id) continue; ?>
|
||||
<li class="list-group-item <?=$contract->isCancelled() ? "canceled" : ""?>">
|
||||
<?php if($contract->billingaddress_id && $contract->owner_id != $contract->billingaddress_id): ?>
|
||||
<i class="far fa-fw fa-money-bill-simple-wave" title="Hat separate Rechungsadresse"></i>
|
||||
<?php endif; ?>
|
||||
<?php if($contract->cancel_date && $contract->cancel_date > date("U")): ?>
|
||||
<i class="far fa-fw fa-eraser text-danger" title="Kündigungsdatum <?=date("d.m.Y", $contract->cancel_date)?>"></i>
|
||||
<?php endif; ?>
|
||||
<a href="<?=self::getUrl("Contract", "View", ["id" => $contract->id])?>" class="<?=($contract->price < 0) ? "text-danger" : ""?>">
|
||||
<?=$contract->product_name?> <?=($contract->matchcode) ? "[".$contract->matchcode."]" : ""?>
|
||||
</a>
|
||||
<?php if(is_array($contract->voicenumbers)): ?>
|
||||
<span class="text-pink">
|
||||
(<?=implode(", ", $contract->voicenumbers)?>)
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
<span class='text-secondary'>
|
||||
<?=($contract->finish_date) ? "Fertigstellung: ".date('d.m.Y', $contract->finish_date) : "in Herstellung"?>
|
||||
<?=($contract->cancel_date) ? "Kündigung: ".date('d.m.Y', $contract->cancel_date) : ""?>
|
||||
</span>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
|
||||
Reference in New Issue
Block a user