Added voicenumber list to Voicenumberblock
This commit is contained in:
@@ -123,19 +123,25 @@
|
||||
<th></th>
|
||||
</tr>
|
||||
<?php foreach($blocks as $block): ?>
|
||||
<tr>
|
||||
<td><?=$block->name?></td>
|
||||
<td><?=$block->countrycode?></td>
|
||||
<td><?=$block->areacode?></td>
|
||||
<td><?=$block->base?></td>
|
||||
<td><?=$block->getFirst()?></td>
|
||||
<td><?=$block->getLast()?></td>
|
||||
<td><?=$block->comment?></td>
|
||||
<tr class="building-list-tr" id="block-<?=$block->id?>">
|
||||
<td onclick="toggleBlock(<?=$block->id?>)"><?=$block->name?></td>
|
||||
<td onclick="toggleBlock(<?=$block->id?>)"><?=$block->countrycode?></td>
|
||||
<td onclick="toggleBlock(<?=$block->id?>)"><?=$block->areacode?></td>
|
||||
<td onclick="toggleBlock(<?=$block->id?>)"><?=$block->base?></td>
|
||||
<td onclick="toggleBlock(<?=$block->id?>)"><?=$block->getFirst()?></td>
|
||||
<td onclick="toggleBlock(<?=$block->id?>)"><?=$block->getLast()?></td>
|
||||
<td onclick="toggleBlock(<?=$block->id?>)"><?=$block->comment?></td>
|
||||
<td style="text-align: left; letter-spacing: 4px; font-size: 1.1em;">
|
||||
<a href="<?=self::getUrl("Voicenumberblock", "edit", ["id" => $block->id])?>"><i class="far fa-edit" title="Bearbeiten"></i></a>
|
||||
<a href="<?=self::getUrl("Voicenumberblock", "delete", ["id" => $block->id])?>" onclick="if(!confirm('Rufnummernblock wirklich löschen?')) return false;" class="text-danger" title="Löschen"><i class="fas fa-trash"></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="block-detail-<?=$block->id?>" style="display:none; background-color:#fff">
|
||||
<td colspan="8">
|
||||
<?php include(realpath(dirname(__FILE__)."/include")."/block-detail.php"); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="display:none;"></tr>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
|
||||
@@ -175,4 +181,16 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
function toggleBlock(id) {
|
||||
$('#block-detail-' + id).toggle();
|
||||
if($('#block-detail-' + id).is(":hidden")) {
|
||||
$('#block-' + id).removeClass("table-info");
|
||||
$('#block-' + id).removeClass("text-info");
|
||||
} else {
|
||||
$('#block-' + id).addClass("text-info");
|
||||
$('#block-' + id).addClass("table-info");
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<?php include(realpath(dirname(__FILE__)."/../")."/footer.php"); ?>
|
||||
Reference in New Issue
Block a user