[TikiWiki-commits] [Git][tikiwiki/tiki][master] [ENH] File Gallery: enhance delete confirmation popup with file name and description
"Bruno Kambere \(@kambereBr\) via TikiWiki-cvs" <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <6a1afc8dcedd7_38194bb4498b2@gitlab-sidekiq-low-urgency-cpu-bound-v2-985c55b68-qq9ks.mail> |
Bruno Kambere pushed to branch master at Tiki Wiki CMS Groupware / Tiki
Commits:
8151e3a8 by Alvin Bauma at 2026-05-30T17:46:53+03:00
[ENH] File Gallery: enhance delete confirmation popup with file name and description
---
* [ENH] File Gallery: enhance delete confirmation popup with file name and description
See merge request tikiwiki/tiki!10391
- - - - -
1 changed file:
- templates/fgal_context_menu.tpl
Changes:
=====================================
templates/fgal_context_menu.tpl
=====================================
@@ -275,6 +275,8 @@
or (!$file.lockedby and (($user and $user eq $file.user)
or ($file.perms.tiki_p_edit_gallery_file eq 'y'
and $file.perms.tiki_p_remove_files eq 'y')))}
+ {$delete_file_name=$file.name|default:$file.filename|default:$file.fileId}
+ {$delete_file_description=$file.description|default:''|strip_tags}
<form action="tiki-list_file_gallery.php" method="post">
{ticket}
<input type="hidden" name="remove" value="{$file.fileId}">
@@ -282,7 +284,12 @@
<input type="hidden" name="detach" value="1">
{/if}
<input type="hidden" name="galleryId" value="{$file.galleryId}">
- <button type="submit" class="btn btn-link px-0 pt-0" onclick="confirmPopup('{tr}Delete file?{/tr}')" aria-label="{tr}Delete file{/tr}">
+ <button
+ type="submit"
+ class="btn btn-link px-0 pt-0"
+ onclick="confirmPopup('{if $delete_file_description neq ''}{tr _0=$delete_file_name|escape:'javascript' _1=$delete_file_description|escape:'javascript'}Delete file %0?\nDescription: %1{/tr}{else}{tr _0=$delete_file_name|escape:'javascript'}Delete file %0?{/tr}{/if}')"
+ aria-label="{tr _0=$delete_file_name|escape:'html'}Delete file %0{/tr}"
+ >
{icon _menu_text=$menu_text _menu_icon=$menu_icon name='remove' alt="{tr}Delete{/tr}"}
</button>
</form>
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/8151e3a825ac54d33730a4283a053ac4e21ea9d3
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/8151e3a825ac54d33730a4283a053ac4e21ea9d3
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help
_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs