From 43efe21f03d30b2a5b1eed412a89ee0e21e9bb68 Mon Sep 17 00:00:00 2001 From: Daniel Schmitzer Date: Wed, 10 Feb 2021 08:44:56 +0000 Subject: - Feature: Globale Bilder in globalen Variationen git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7841 0d5edaf7-2b12-4e95-93f4-047927463d4b --- .../mod_downloadplus/settings_edit_templates.phtml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'views/mods/mod_downloadplus') diff --git a/views/mods/mod_downloadplus/settings_edit_templates.phtml b/views/mods/mod_downloadplus/settings_edit_templates.phtml index 498aed4..a3e97ee 100644 --- a/views/mods/mod_downloadplus/settings_edit_templates.phtml +++ b/views/mods/mod_downloadplus/settings_edit_templates.phtml @@ -46,7 +46,10 @@
- +
@@ -179,6 +182,8 @@ #wpsg_dp_templates_app .file_wrap { display:flex; justify-content:space-between; align-items:center; } #wpsg_dp_templates_app .file_wrap .file { display:flex; gap:1rem; justify-content:flex-end; align-items:center; } #wpsg_dp_templates_app .file_wrap .file .wpsg-glyphicon { margin-right:8px; } + #wpsg_dp_templates_app .label-copy { display:flex; justify-content:space-between; } + #wpsg_dp_templates_app .label-copy .glyphicon { font-size:14px; } @@ -220,6 +225,19 @@ }, + copyTemplate: function() { + + if (!confirm('')) return false; + + let new_template = JSON.parse(JSON.stringify(this.template)); + + new_template.name += ' (Kopie)'; + + this.arTemplates.push(new_template); + this.template = new_template; + + }, + removeTemplate: function() { if (!confirm('')) return; -- cgit v1.2.3