summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2019-09-04 06:59:55 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2019-09-04 06:59:55 +0000
commit3959d8314b5c3986a96af74da164b2bd83255eab (patch)
treef6dff4f6342b59a05f5d52275bfb5d1f869330ee /views
parentcc475ee2aa169f31a3be595e72890170f077ad9d (diff)
- Produktgruppen
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7549 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views')
-rw-r--r--views/mods/mod_kundenverwaltung/index.phtml4
-rw-r--r--views/mods/mod_productgroups/add.phtml12
-rw-r--r--views/mods/mod_productgroups/index.phtml11
-rw-r--r--views/mods/mod_productgroups/productgroups_addedit_sidebar.phtml2
4 files changed, 22 insertions, 7 deletions
diff --git a/views/mods/mod_kundenverwaltung/index.phtml b/views/mods/mod_kundenverwaltung/index.phtml
index 05cf2f9..aa89735 100644
--- a/views/mods/mod_kundenverwaltung/index.phtml
+++ b/views/mods/mod_kundenverwaltung/index.phtml
@@ -115,7 +115,9 @@
</nav>
<div class="wpsg_msg_wrap"><hr class="wp-header-end wpsg-wp-header-end"></div>
-
+
+ <div class="wpsg_clear"></div>
+
<?php $this->render(WPSG_PATH_VIEW.'/admin/pager.phtml'); ?>
<div class="wpsg_clear"></div>
diff --git a/views/mods/mod_productgroups/add.phtml b/views/mods/mod_productgroups/add.phtml
index f0d1c1c..06857f3 100644
--- a/views/mods/mod_productgroups/add.phtml
+++ b/views/mods/mod_productgroups/add.phtml
@@ -26,9 +26,13 @@
</nav>
- <div class="wpsg_clear"></div>
+ <div class="wpsg_msg_wrap"><hr class="wp-header-end wpsg-wp-header-end"/></div>
+ <div class="wpsg_clear"></div>
<form method="POST" action="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Productgroups&wpsg_mod_action=save&noheader=1" enctype="multipart/form-data">
+
+ <?php echo \wp_nonce_field('wpsg-productgroup-save-'.wpsg_getInt($_REQUEST['edit_id'])); ?>
+
<div class="content form-horizontal">
<div class="row">
@@ -36,7 +40,7 @@
<?php echo wpsg_drawForm_AdminboxStart(__('Allgemein', 'wpsg')); ?>
- <?php echo wpsg_drawForm_Input('wpsg_mod_productgroups_name', __('Produktgruppenname', 'wpsg'), $this->view['data']['name']); ?>
+ <?php echo wpsg_drawForm_Input('name', __('Produktgruppenname', 'wpsg'), $this->view['data']['name']); ?>
<?php if (wpsg_isSizedArray($this->view['languages'])) { ?>
<?php foreach ($this->view['languages'] as $l) { if ($l['locale'] != $this->getDefaultLanguageLocale()) { ?>
@@ -50,8 +54,8 @@
<?php } } ?>
<?php } ?>
- <?php echo wpsg_drawForm_Select('wpsg_mod_productgroups_template', __('Template', 'wpsg'), $this->view['templates'], $this->view['data']['template_file']); ?>
- <?php echo wpsg_drawForm_Select('wpsg_mod_productgroups_infopage', __('Info Seite', 'wpsg'), $this->view['pages'], $this->view['data']['infopage']); ?>
+ <?php echo wpsg_drawForm_Select('template_file', __('Template', 'wpsg'), $this->view['templates'], $this->view['data']['template_file']); ?>
+ <?php echo wpsg_drawForm_Select('infopage', __('Info Seite', 'wpsg'), $this->view['pages'], $this->view['data']['infopage']); ?>
<?php echo wpsg_drawForm_AdminboxEnd(); ?>
diff --git a/views/mods/mod_productgroups/index.phtml b/views/mods/mod_productgroups/index.phtml
index 826c9b3..6336955 100644
--- a/views/mods/mod_productgroups/index.phtml
+++ b/views/mods/mod_productgroups/index.phtml
@@ -45,7 +45,10 @@
</div>
</nav>
-
+
+ <div class="wpsg_msg_wrap"><hr class="wp-header-end wpsg-wp-header-end"/></div>
+ <div class="wpsg_clear"></div>
+
<?php if ($this->view['pages'] > 1) { ?>
<nav class="pagination_wrap">
<ul class="pagination">
@@ -84,7 +87,11 @@
<div class="row-actions">
<span class="edit"><a title="<?php echo __("Diese Produktgruppe bearbeiten", "wpsg"); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Productgroups&wpsg_mod_action=edit&edit_id=<?php echo $pg->id; ?>"><?php echo __("Bearbeiten", "wpsg"); ?></a>
|
- <span class="del"><a onclick="if (!confirm('<?php echo __("Sind Sie sich sicher?", "wpsg"); ?>')) return false;" title="<?php echo __("Diese Produktgruppe löschen", "wpsg"); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Productgroups&wpsg_mod_action=del&noheader=1&edit_id=<?php echo $pg->id; ?>"><?php echo __("Löschen", "wpsg"); ?></a>
+ <span class="del"><a onclick="if (!confirm('<?php echo __("Sind Sie sich sicher?", "wpsg"); ?>')) return false;" title="<?php echo __("Diese Produktgruppe löschen", "wpsg"); ?>" href="<?php
+
+ echo \wp_nonce_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Productgroups&wpsg_mod_action=del&noheader=1&edit_id='.$pg->id, 'wpsg-productgroup-del-'.$pg->id);
+
+ ?>"><?php echo __("Löschen", "wpsg"); ?></a>
<?php if ($pg->countProducts() > 0) { ?>
|
<span class="edit"><a title="<?php echo __("Zur Produktliste", "wpsg"); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&search[pgruppe]=<?php echo $pg->id; ?>"><?php echo __("Zur Produktliste", "wpsg"); ?></a>
diff --git a/views/mods/mod_productgroups/productgroups_addedit_sidebar.phtml b/views/mods/mod_productgroups/productgroups_addedit_sidebar.phtml
index 7dc10a7..d37e654 100644
--- a/views/mods/mod_productgroups/productgroups_addedit_sidebar.phtml
+++ b/views/mods/mod_productgroups/productgroups_addedit_sidebar.phtml
@@ -7,12 +7,14 @@
?>
<?php /* Lagerbestand START */ ?>
+<?php if ($this->hasMod('wpsg_mod_stock')) { ?>
<?php echo wpsg_drawForm_AdminboxStart(__('Produktgruppen Lagerbestand')); ?>
<?php echo wpsg_drawForm_Input('wpsg_mod_productgroups[stock_value]', __('Bestand', 'wpsg'), wpsg_hspc(@$this->view['wpsg_mod_productgroups']['data']['stock_value']), array()); ?>
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_productgroups[stock_aktiv]', __('Lagerbestand zählen', 'wpsg'), @$this->view['wpsg_mod_productgroups']['data']['stock_aktiv'], array()); ?>
<?php echo wpsg_drawForm_AdminboxEnd(); ?>
+<?php } ?>
<?php /* Lagerbestand ENDE */ ?>
<?php /* Rabatt START ?>