Added js validation to Order Form
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
|
||||
<table class="table table-striped table-hover">
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>Kunde</th>
|
||||
<th>Adresse</th>
|
||||
<th>Anschlussadresse</th>
|
||||
@@ -40,6 +41,17 @@
|
||||
</tr>
|
||||
<?php foreach($orders as $order): ?>
|
||||
<tr>
|
||||
<td>
|
||||
<?php if(is_array($order->terminations) && count($order->terminations)): ?>
|
||||
<?php if($order->terminations[0]->status->code >= TT_TERMSTATUS_CONNECTED): ?>
|
||||
<span class="status connected" title="Anschluss connected">CON</span>
|
||||
<?php elseif($order->terminations[0]->building->status->code >= TT_BUILDINGSTATUS_CONNECTED): ?>
|
||||
<span class="status building-connected" title="Tiefbau erledigt">B-C</span>
|
||||
<?php else: ?>
|
||||
<span class="status not-connected" title="Tiefbau ausständig">BNC</span>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td><?=nl2br($order->owner->getCompanyOrName())?></td>
|
||||
<td>
|
||||
<?=$order->owner->street?><br />
|
||||
|
||||
Reference in New Issue
Block a user