Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LQDN Adminsys
don
Commits
c599ab5f
Commit
c599ab5f
authored
Dec 17, 2018
by
Okhin
Browse files
Split admin commands in two
parent
36f0ff61
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/controller/admin.php
View file @
c599ab5f
...
...
@@ -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
);
}
...
...
app/routes.ini
View file @
c599ab5f
...
...
@@ -29,7 +29,8 @@ GET @edit_support:/admin/support/edit/@id=Controller\Admin->support
POST
@modify_support:/admin/support/
edit
=
Controller
\A
dmin->support
GET
@invalidate_support:/admin/support/invalidate/@
id
=
Controller
\A
dmin->invalidate
GET
@validate_support:/admin/support/validate/@
id
=
Controller
\A
dmin->validate
GET
@recompute:/admin/
recompute
=
Controller
\A
dmin->recompute
GET
@recompute_total:/admin/recompute/
total
=
Controller
\A
dmin->recompute_total
GET
@recompute_cumul:/admin/recompute/
cumul
=
Controller
\A
dmin->recompute_cumul
GET|POST
@admin_accounts:/admin/
accounts
=
Controller
\A
dmin->accounts
...
...
app/view/backend/dons.html
View file @
c599ab5f
...
...
@@ -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
/>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment