Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
don
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
25
Issues
25
List
Boards
Labels
Service Desk
Milestones
Merge Requests
5
Merge Requests
5
Operations
Operations
Incidents
Environments
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
LQDN Adminsys
don
Commits
16f3caad
Commit
16f3caad
authored
Dec 17, 2018
by
okhin
🚴
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'preprod' into 'master'
Split admin commands in two See merge request
!93
parents
0fc87ff4
c599ab5f
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
app/controller/admin.php
app/controller/admin.php
+6
-1
app/routes.ini
app/routes.ini
+2
-1
app/view/backend/dons.html
app/view/backend/dons.html
+2
-1
No files found.
app/controller/admin.php
View file @
16f3caad
...
...
@@ -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 @
16f3caad
...
...
@@ -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 @
16f3caad
...
...
@@ -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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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