diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2019-07-31 18:54:21 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2019-07-31 18:54:21 +0000 |
| commit | e96b183e33afb4038b2e39868f32ebf94a59ba83 (patch) | |
| tree | 92e15cdbff9e5929b98c4efce24a041b6cd253c8 /views/mods/mod_gutschein/add.phtml | |
| parent | 1a8f06b6cf1bfd781c236f44d42a13166fbeac36 (diff) | |
- Gutschein/Coupon
- Task #681
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7490 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods/mod_gutschein/add.phtml')
| -rw-r--r-- | views/mods/mod_gutschein/add.phtml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/views/mods/mod_gutschein/add.phtml b/views/mods/mod_gutschein/add.phtml index b6b4b6a..3166f21 100644 --- a/views/mods/mod_gutschein/add.phtml +++ b/views/mods/mod_gutschein/add.phtml @@ -4,6 +4,16 @@ * Template für die Maske eines neuen Gutscheins
*/
+ $used = 0;
+
+ if (wpsg_isSizedInt($_REQUEST['voucher_id'])) {
+
+ $oVoucher = wpsg_voucher::getInstance($_REQUEST['voucher_id']);
+
+ $used = $oVoucher->getUsedAmount();
+
+ }
+
?>
<div class="content form-horizontal">
@@ -13,6 +23,7 @@ <?php wpsg_drawForm_AdminboxStart(); ?>
<?php echo wpsg_drawForm_Input('wpsg_mod_gutschein_value', __('Betrag', 'wpsg'), wpsg_ff($this->view['mod_gutschein']['value'])); ?>
+ <?php echo wpsg_drawForm_Input(false, __('Bereits verwendet'), wpsg_ff($used), ['field_id' => 'wpsg_voucher_used', 'readonly' => true]); ?>
<div style="margin-top:-15px;">
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_gutschein_coupon', __('Als Wertgutschein behandeln', 'wpsg'), $this->view['mod_gutschein']['coupon']); ?>
|
