Filter and pagination is still set after saving Order

This commit is contained in:
Frank Schubert
2022-05-31 15:38:48 +02:00
parent b0fe713d0d
commit 4d4bf81e2a
7 changed files with 121 additions and 49 deletions

View File

@@ -32,7 +32,11 @@
<form method="post" action="<?=$this->getUrl("User","save")?>">
<?php if(is_array($group->items) && count($group->items)): ?>
<?php foreach($group->items as $item): ?>
<?php $i = 0; foreach($group->items as $item): ?>
<div class="card">
<div class="card-body">
<div class="p-2 <?=($i % 2 == 0) ? "bg-light" : ""?>">
<div class="row">
@@ -40,7 +44,7 @@
<h4 class="header-title">Attribut <span class="text-monospace text-pink"><?=$item->name?></span></h4>
</div>
<div class="col-md-1 float-right">
<small><a class="text-danger" href="<?=self::getUrl("ProducttechAttribute", "delete", ['id' => $item->id])?>" onclick="if(!confirm('Attribut wirklich löschen?')) return false;"><i class="fas fa-trash-alt"></i> löschen</a></small>
<small><a class="text-danger" href="<?=self::getUrl("Contractconfig", "delete", ['id' => $item->id])?>" onclick="if(!confirm('Attribut wirklich löschen?')) return false;"><i class="fas fa-trash-alt"></i> löschen</a></small>
</div>
</div>
<div class="row">
@@ -93,8 +97,10 @@
</div>
</div>
</div>
</div>
</div>
<?php endforeach; ?>
<?php $i++; endforeach; ?>
<?php endif; ?>
<?php endforeach; ?>