Skip to content
GitLab
Menu
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
fb1ef070
Commit
fb1ef070
authored
Nov 03, 2019
by
Guinness
Browse files
Regeneration of the PDF
parent
e0fa8dff
Changes
3
Show whitespace changes
Inline
Side-by-side
app/controller/admin.php
View file @
fb1ef070
...
@@ -252,6 +252,13 @@ class Admin extends Controller
...
@@ -252,6 +252,13 @@ class Admin extends Controller
$f3
->
reroute
(
"/admin/users/"
.
$result
[
'user_id'
]);
$f3
->
reroute
(
"/admin/users/"
.
$result
[
'user_id'
]);
}
}
public
function
regenerate_pdf
(
$f3
,
$args
)
{
$f3
->
get
(
'container'
)[
'command_handler'
]
->
handle
(
new
DonationResetPdfCommand
(
$f3
->
get
(
'POST.id'
)));
$f3
->
push
(
'SESSION.message'
,
'Régénération effectuée avec succès.'
);
$f3
->
reroute
(
"/admin/"
);
}
public
function
support
(
$f3
,
$args
)
public
function
support
(
$f3
,
$args
)
{
{
$id
=
''
;
$id
=
''
;
...
...
app/routes.ini
View file @
fb1ef070
...
@@ -30,6 +30,7 @@ GET @edit_support:/admin/support/edit/@id=Controller\Admin->support
...
@@ -30,6 +30,7 @@ GET @edit_support:/admin/support/edit/@id=Controller\Admin->support
POST
@modify_support:/admin/support/
edit
=
Controller
\A
dmin->support
POST
@modify_support:/admin/support/
edit
=
Controller
\A
dmin->support
GET
@invalidate_support:/admin/support/invalidate/@
id
=
Controller
\A
dmin->invalidate
GET
@invalidate_support:/admin/support/invalidate/@
id
=
Controller
\A
dmin->invalidate
GET
@validate_support:/admin/support/validate/@
id
=
Controller
\A
dmin->validate
GET
@validate_support:/admin/support/validate/@
id
=
Controller
\A
dmin->validate
GET
@regenerate_pdf:/admin/support/regenerate_pdf/@
id
=
Controller
\A
dmin->regenerate_pdf
GET
@recompute_total:/admin/recompute/
total
=
Controller
\A
dmin->recompute_total
GET
@recompute_total:/admin/recompute/
total
=
Controller
\A
dmin->recompute_total
GET
@recompute_cumul:/admin/recompute/
cumul
=
Controller
\A
dmin->recompute_cumul
GET
@recompute_cumul:/admin/recompute/
cumul
=
Controller
\A
dmin->recompute_cumul
...
...
app/view/backend/dons.html
View file @
fb1ef070
...
@@ -88,7 +88,7 @@
...
@@ -88,7 +88,7 @@
<false>
<false>
<a
href=
"{{ 'invalidate_support', 'id='.@row.id | alias }}"
>
Invalider
</a>
<a
href=
"{{ 'invalidate_support', 'id='.@row.id | alias }}"
>
Invalider
</a>
-
-
<a
href=
"{{ '
validate_support
', 'id='.@row.id | alias }}"
>
PDF
</a>
<a
href=
"{{ '
regenerate_pdf
', 'id='.@row.id | alias }}"
>
Regénérer le
PDF
</a>
</false>
</false>
</check>
</check>
</td>
</td>
...
...
Write
Preview
Supports
Markdown
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