1327 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* Template für die Eingabe der Widerrufsbelehrung im Backend
|
|
|
5 |
*/
|
|
|
6 |
|
|
|
7 |
?>
|
|
|
8 |
<div class="wpsg_admin_submenu">
|
|
|
9 |
|
5455 |
thomas |
10 |
<div class="list-group">
|
|
|
11 |
<span class="list-group-head list-group-item"><?php echo __('Konfiguration'); ?></span>
|
|
|
12 |
<?php foreach ($this->view['arSubAction'] as $k => $v) { ?>
|
|
|
13 |
<a class="list-group-item <?php echo (($k == $this->view['subAction'])?'active':''); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=<?php echo $k; ?>"><?php echo $v['Menutext']; ?></a>
|
1327 |
daniel |
14 |
<?php } ?>
|
5455 |
thomas |
15 |
</div>
|
1327 |
daniel |
16 |
|
|
|
17 |
</div>
|
|
|
18 |
|
5532 |
daniel |
19 |
<div class="wpsg_admin_content form-horizontal">
|
1327 |
daniel |
20 |
<form name="form1" method="post" enctype="multipart/form-data" action="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=<?php echo $_REQUEST['subaction']; ?>&noheader=1">
|
7049 |
daniel |
21 |
|
7535 |
daniel |
22 |
<?php \wp_nonce_field('wpsg-save-revocation'); ?>
|
7049 |
daniel |
23 |
|
5532 |
daniel |
24 |
<?php echo wpsg_drawForm_AdminboxStart(__('Widerruf', 'wpsg')); ?>
|
|
|
25 |
|
3884 |
daniel |
26 |
<?php echo wpsg_drawForm_Textarea('wpsg_ps_mailwiderruf', __('Widerrufsbelehrung', 'wpsg'), $this->get_option('wpsg_ps_mailwiderruf'), array(
|
3657 |
daniel |
27 |
'hint' => 'nohspc_'.__('Dieser Text wird in die Mail eingebunden, die der Kunde als Bestellbestätigung erhält.', 'wpsg').'<br />'.__('Das Template für die Mail finden Sie unter: <b>views/mailtemplates/kundenmail.phtml</b> bzw. <b>views/mailtemplates/html/kundenmail.phtml</b>.', 'wpsg')
|
5532 |
daniel |
28 |
)); ?>
|
3652 |
daniel |
29 |
<?php echo wpsg_drawForm_Upload('wpsg_widerrufsformular', __('Widerrufsformular', 'wpsg')); ?>
|
5532 |
daniel |
30 |
|
|
|
31 |
<?php echo wpsg_drawForm_TextStart(); ?>
|
|
|
32 |
<?php if (wpsg_isSizedString($this->view['revocationform'])) { ?>
|
3652 |
daniel |
33 |
|
7558 |
daniel |
34 |
<a target="_blank" href="<?php
|
|
|
35 |
|
|
|
36 |
echo wp_nonce_url(WPSG_URL_WP.'wp-admin/admin.php/?page=wpsg-Admin&subaction=widerrufsbelehrung&download&noheader=1', 'wpsg-admin-widerrufsbelehrung-download');
|
|
|
37 |
|
|
|
38 |
?>"><?php echo $this->view['revocationform']; ?></a>
|
|
|
39 |
<a onclick="if (!confirm('<?php echo __('Sind Sie sich sicher, dass Sie das Widerrufsformular löschen möchten?', 'wpsg'); ?>')) return false;" style="float:right;" href="<?php
|
|
|
40 |
|
|
|
41 |
echo wp_nonce_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=widerrufsbelehrung&noheader=1&do=removeWiderrufsformular', 'wpsg-admin-widerrufsbelehrung-delete');
|
|
|
42 |
|
|
|
43 |
?>"><?php echo __('Widerrufsformular löschen', 'wpsg'); ?></a>
|
5532 |
daniel |
44 |
|
|
|
45 |
<?php } else { ?>
|
|
|
46 |
|
|
|
47 |
<p><?php echo __('Bisher wurde kein Widerrufsformular hinterlegt.', 'wpsg'); ?></p>
|
|
|
48 |
|
|
|
49 |
<?php } ?>
|
|
|
50 |
|
|
|
51 |
<br /><br />
|
7558 |
daniel |
52 |
<a href="<?php
|
|
|
53 |
|
|
|
54 |
echo wp_nonce_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=widerrufsbelehrung&noheader=1&do=generateWiderrufsformular', 'wpsg-admin-widerrufsbelehrung-generate');
|
|
|
55 |
|
|
|
56 |
?>" class="button"><?php echo __('Standardformular aus Shopinfo erstellen', 'wpsg'); ?></a>
|
5532 |
daniel |
57 |
<br /><br />
|
|
|
58 |
|
|
|
59 |
<?php echo wpsg_drawForm_TextEnd(); ?>
|
|
|
60 |
|
3659 |
daniel |
61 |
<?php echo wpsg_drawForm_Checkbox('wpsg_widerrufsformular_kundenmail', __('Anhang an Bestellbestätigung', 'wpsg'), $this->get_option('wpsg_widerrufsformular_kundenmail')); ?>
|
3652 |
daniel |
62 |
|
|
|
63 |
<?php if ($this->hasMod('wpsg_mod_rechnungen')) { ?>
|
|
|
64 |
<?php echo wpsg_drawForm_Checkbox('wpsg_widerrufsformular_invoice', __('Anhang an Rechnung', 'wpsg'), $this->get_option('wpsg_widerrufsformular_invoice')); ?>
|
|
|
65 |
<?php } ?>
|
|
|
66 |
|
|
|
67 |
<?php if ($this->hasMod('wpsg_mod_auftragsbestaetigung')) { ?>
|
|
|
68 |
<?php echo wpsg_drawForm_Checkbox('wpsg_widerrufsformular_orderconfirm', __('Anhang an Auftragsbestätigung', 'wpsg'), $this->get_option('wpsg_widerrufsformular_orderconfirm')); ?>
|
|
|
69 |
<?php } ?>
|
5532 |
daniel |
70 |
|
|
|
71 |
<?php echo wpsg_drawForm_AdminboxEnd(); ?>
|
|
|
72 |
|
1327 |
daniel |
73 |
<p class="submit"><input type="submit" value="<?php echo __('Einstellungen speichern', 'wpsg'); ?>" class="button-primary" id="submit" name="submit" /></p>
|
5532 |
daniel |
74 |
|
1327 |
daniel |
75 |
</form>
|
6283 |
hartmut |
76 |
</div>
|