added Voicenumber form and save

This commit is contained in:
Frank Schubert
2022-01-18 22:23:01 +01:00
parent f2a33a02ef
commit 39d07f948e
7 changed files with 440 additions and 1 deletions
@@ -12,6 +12,7 @@
<th>Portierungsstatus</th>
<th>Sperre</th>
<th>Entsperrung</th>
<th></th>
</tr>
<?php $i = 0; foreach(range($block->getFirst(), $block->getLast()) as $number): ?>
<?php $num = null; $num = VoicenumberModel::getFirst(['voicenumberblock_id' => $block_id, 'number' => ($block->number_prepend_zero) ? "0$number" : $number]) ?>
@@ -29,13 +30,19 @@
<td>
<?php if($num->ported_out): ?>
Exportiert
<small class="text-monospace">(<?=($num->id) ? date("d.m.Y H:i:s", $num->port_out_date) : ""?>)</small>
<small class="text-monospace">(<?=($num->id) ? date("d.m.Y", $num->port_out_date) : ""?>)</small>
<?php elseif($num->ported_in): ?>
Importiert
<small class="text-monospace">(<?=($num->id) ? date("d.m.Y", $num->port_in_date) : ""?>)</small>
<?php else: ?>
Lokal
<?php endif; ?>
</td>
<td><?=$num->disabled_reason?></td>
<td><?=($num->id && $num->enable_on_date) ? date("d.m.Y", $num->enable_on_date) : ""?></td>
<td>
<a href="<?=self::getUrl("Voicenumber", "edit", ["block_id" => $block->id, "number" => $number])?>"><i class="fas fa-edit"></i></a>
</td>
</tr>
<?php $i++; if($i >= 100) break; ?>
<?php endforeach; ?>