Commit 16f3caad authored by okhin's avatar okhin 🚴

Merge branch 'preprod' into 'master'

Split admin commands in two

See merge request !93
parents 0fc87ff4 c599ab5f
Pipeline #2343 passed with stages
in 1 minute and 25 seconds
......@@ -1518,9 +1518,14 @@ class Admin extends Controller
$f3->set('block_content', 'backend/stats.html');
}
public function recompute($f3, $args)
public function recompute_cumul($f3, $args)
{
$f3->get('container')['command_handler']->handle(new AdminUpdateParentCommand());
$this->show($f3, $args);
}
public function recompute_total($f3, $args)
{
$f3->get('container')['command_handler']->handle(new AdminUpdateTotalUsersCommand());
$this->show($f3, $args);
}
......
......@@ -29,7 +29,8 @@ GET @edit_support:/admin/support/edit/@id=Controller\Admin->support
POST @modify_support:/admin/support/edit=Controller\Admin->support
GET @invalidate_support:/admin/support/invalidate/@id=Controller\Admin->invalidate
GET @validate_support:/admin/support/validate/@id=Controller\Admin->validate
GET @recompute:/admin/recompute=Controller\Admin->recompute
GET @recompute_total:/admin/recompute/total=Controller\Admin->recompute_total
GET @recompute_cumul:/admin/recompute/cumul=Controller\Admin->recompute_cumul
GET|POST @admin_accounts:/admin/accounts=Controller\Admin->accounts
......
......@@ -45,7 +45,8 @@
<input type="submit" value="Filtrer" />
</form>
<a href="{{ 'recompute' | alias }}">Recalculer les totaux et cumuls de toute la base de donnée</a>
<a href="{{ 'recompute' | alias }}">Recalculer les totaux de toute la base de donnée</a>
<a href="{{ 'recompute' | alias }}">Recalculer les cumuls de toute la base de donnée</a>
<br />
<check if="{{ @row_count }}"><b>{{ @row_count }} résultats</b>
<br />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment