mirror of
https://github.com/okxlin/appstore.git
synced 2026-11-18 08:07:15 +00:00
* Update lovasoa/sqlpage Docker tag to v0.48.0 * Update app version [skip ci] --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: github-action update-app-version <githubaction@githubaction.com>
17 lines
488 B
SQL
17 lines
488 B
SQL
delete from todos
|
|
where id = $todo_id and $confirm = 'yes'
|
|
returning
|
|
'redirect' as component,
|
|
'/' as link;
|
|
|
|
select 'dynamic' as component, sqlpage.run_sql('shell.sql') as properties;
|
|
|
|
select
|
|
'alert' as component,
|
|
'red' as color,
|
|
'Confirm deletion' as title,
|
|
'Are you sure you want to delete the following todo item?\n\n> ' || title as description_md,
|
|
'?todo_id=' || $todo_id || '&confirm=yes' as link,
|
|
'Delete' as link_text
|
|
from todos where id = $todo_id;
|