ContractConfig ausgebaut
This commit is contained in:
@@ -33,8 +33,8 @@
|
||||
|
||||
<table class="table table-sm table-striped view-table">
|
||||
<tr>
|
||||
<th>ID:</th>
|
||||
<td><a href="<?=self::getUrl("Address", "View", ["id" => $contract->owner->id])?>"><?=$contract->owner->id?></a></td>
|
||||
<th style="max-width: 50vw;">ID:</th>
|
||||
<td style="width: 50vw;"><a href="<?=self::getUrl("Address", "View", ["id" => $contract->owner->id])?>"><?=$contract->owner->id?></a></td>
|
||||
</tr><tr>
|
||||
<th>Kundennummer:</th>
|
||||
<td><?=$contract->owner->customer_number?></td>
|
||||
@@ -101,8 +101,8 @@
|
||||
<h4>Vertrag</h4>
|
||||
<table class="table table-sm table-striped view-table">
|
||||
<tr>
|
||||
<th>Matchcode:</th>
|
||||
<td><?=$contract->matchcode?></td>
|
||||
<th style="max-width: 50vw;">Matchcode:</th>
|
||||
<td style="width: 50vw;"><?=$contract->matchcode?></td>
|
||||
</tr><tr>
|
||||
<th>Produkt:</th>
|
||||
<td><?=$contract->product_name?></td>
|
||||
@@ -165,6 +165,30 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4>Konfiguration</h4>
|
||||
|
||||
<table class="table table-sm table-striped view-table">
|
||||
<?php foreach($contract->configgroups as $group): ?>
|
||||
<tr>
|
||||
<th style="max-width: 50vw;"><h4><?=$group->name?></h4></th>
|
||||
<td style="width: 50vw;"></td>
|
||||
</tr>
|
||||
<?php foreach($group->items as $item): ?>
|
||||
<tr>
|
||||
<th style="max-width: 50vw;"><?=$item->displayname?>:</th>
|
||||
<td style="width: 50vw;">
|
||||
<?=$item->value->string?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<a href="<?=self::getUrl("Contract","Index", ['filter' => $filter, 's' => $s])?>" class="btn btn-secondary mr-1"><i class="fas fa-list"></i> Zurück zur Vertragsübersicht</a>
|
||||
|
||||
Reference in New Issue
Block a user