summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2016-03-29 09:31:43 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2016-03-29 09:31:43 +0000
commitcfc854a91c6683870cdbec8c7dd67082e07e03f1 (patch)
treecf50ca59eeae6bcd0ed5662f480546d2b603079e
parent0915da0a21acca9a6c6331b53e15e50398bca957 (diff)
- Feature - Produktbilder - Bilder unter /wpsg verschoben (!)
- Feature - Produktbilder - Einzelnes löschen des Bildercaches für ein Produkt git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5449 0d5edaf7-2b12-4e95-93f4-047927463d4b
-rw-r--r--views/admin/form/adminbox.phtml6
-rw-r--r--views/css/admin.css2
-rw-r--r--views/mods/mod_produktbilder/produkt_addedit_content.phtml22
-rw-r--r--views/mods/mod_produktbilder/settings_edit.phtml2
-rw-r--r--views/produkt/addedit_general.phtml15
5 files changed, 42 insertions, 5 deletions
diff --git a/views/admin/form/adminbox.phtml b/views/admin/form/adminbox.phtml
new file mode 100644
index 0000000..a8328e0
--- /dev/null
+++ b/views/admin/form/adminbox.phtml
@@ -0,0 +1,6 @@
+<div class="panel panel-default">
+ <div class="panel-heading clearfix">
+ <h3 class="panel-title"><?php $this->view['title']; ?></h3>
+ </div>
+ <div class="panel-body"><?php echo $this->view['content']; ?></div>
+</div> \ No newline at end of file
diff --git a/views/css/admin.css b/views/css/admin.css
index fc3ef9b..b8ae3d3 100644
--- a/views/css/admin.css
+++ b/views/css/admin.css
@@ -80,7 +80,7 @@
/* Produktverwaltung */
.wpsg_pic_col { width:50px; }
-.wpsg_admin_submenu input { width:100%; margin-bottom:10px !important; }
+.wpsg_admin_submenu input[type="submit"], .wpsg_admin_submenu input[type="button"] { width:100%; margin-bottom:10px !important; }
/* Modulverwaltung */
.wpsg_admin_submenu .list-group-item.modul_akt { color:#3c763d; font-weight:bold; }
diff --git a/views/mods/mod_produktbilder/produkt_addedit_content.phtml b/views/mods/mod_produktbilder/produkt_addedit_content.phtml
index b5b5029..25607fd 100644
--- a/views/mods/mod_produktbilder/produkt_addedit_content.phtml
+++ b/views/mods/mod_produktbilder/produkt_addedit_content.phtml
@@ -90,6 +90,22 @@
<script type="text/javascript">/* <![CDATA[ */
/**
+ * Löscht den Bildercache dieses Produktes
+ */
+ function wpsg_clearImageCache()
+ {
+
+ jQuery.ajax( {
+ url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_produktbilder&cmd=clearProductCache&noheader=1&edit_id=<?php echo $this->view['data']['id']; ?>',
+ async: true,
+ success: function(data) { alert(data); }
+ } );
+
+ return false;
+
+ } // function wpsg_clearImageCache()
+
+ /**
* Wird beim löschen eines Bilds (anklicken) aufgerufen
*/
function wpsg_remove_bild(strBild)
@@ -126,7 +142,9 @@
<br /><br />
- <a href="#" data-toggle="modal" data-target="#wpsg_mod_produktbilder_ftppath"><span class="wpsg-glyphicon glyphicon glyphicon-folder-open"></span><?php echo __('FTP Pfad anzeigen', 'wpsg'); ?></a>
-
+ <a href="#" data-toggle="modal" data-target="#wpsg_mod_produktbilder_ftppath"><span class="wpsg-glyphicon glyphicon glyphicon-folder-open"></span><?php echo __('FTP Pfad anzeigen', 'wpsg'); ?></a><br />
+ <a href="#" onclick="return wpsg_clearImageCache();"><span class="wpsg-glyphicon glyphicon glyphicon-trash"></span><?php echo __('Bildercache dieses Produktes löschen', 'wpsg'); ?></a><br />
+ <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_produktbilder"><span class="wpsg-glyphicon glyphicon glyphicon-wrench"></span><?php echo __('Zur Konfiguration der Produktbilder', 'wpsg'); ?></a>
+
</div>
</div> \ No newline at end of file
diff --git a/views/mods/mod_produktbilder/settings_edit.phtml b/views/mods/mod_produktbilder/settings_edit.phtml
index 2b7ace8..1c035ef 100644
--- a/views/mods/mod_produktbilder/settings_edit.phtml
+++ b/views/mods/mod_produktbilder/settings_edit.phtml
@@ -10,4 +10,4 @@
<?php echo wpsg_drawForm_Select('wpsg_mod_produktbilder_mode', __('Bildmodus (Vorschau)', 'wpsg'), $this->callMod('wpsg_mod_produktbilder', 'getImageModes'), $this->get_option('wpsg_mod_produktbilder_mode'), array('help' => 'wpsg_mod_produktbilder')); ?>
<?php echo wpsg_drawForm_Input('wpsg_mod_produktbilder_quality', __('Bildqualität (PNG/JPG)', 'wpsg'), $this->get_option('wpsg_mod_produktbilder_quality'), array('help' => 'wpsg_mod_produktbilder_quality','hint' => __('0 = Schlechte Qualität, 100 = Gute Qualität', 'wpsg'))); ?>
-<a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_produktbilder&wpsg_mod_produktbilder_clearcache=1&noheader=1"><?php echo __('Bildercache löschen', 'wpsg'); ?></a> \ No newline at end of file
+<a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_produktbilder&wpsg_mod_produktbilder_clearcache=1&noheader=1"><span class="wpsg-glyphicon glyphicon glyphicon-trash"></span><?php echo __('Bildercache löschen', 'wpsg'); ?></a> \ No newline at end of file
diff --git a/views/produkt/addedit_general.phtml b/views/produkt/addedit_general.phtml
index 5f1897a..2b2613c 100644
--- a/views/produkt/addedit_general.phtml
+++ b/views/produkt/addedit_general.phtml
@@ -4,4 +4,17 @@
* Template für den Reiter "Allgemein" der Produktverwaltung
*/
-?>TODO \ No newline at end of file
+?>
+
+<?php if (!isset($_REQUEST['wpsg_lang'])) { ?>
+
+ <?php echo wpsg_drawForm_AdminboxStart(); ?>
+ <?php echo wpsg_drawForm_Select('mwst_key', __('Steuergruppe', 'wpsg'), wpsg_tax_groups(true), @$this->view['data']['mwst_key']); ?>
+ <?php echo wpsg_drawForm_Input('preis', wpsg_translate(__('Preis (#1#)', 'wpsg'), (($this->getBackendTaxview() === WPSG_NETTO)?'NETTO':'BRUTTO')), wpsg_ff($this->view['data']['preis'])); ?>
+ <?php echo wpsg_drawForm_Input('oldprice', wpsg_translate(__('Alter Preis (#1#)', 'wpsg'), (($this->getBackendTaxview() === WPSG_NETTO)?'NETTO':'BRUTTO')), wpsg_ff($this->view['data']['oldprice'])); ?>
+ <?php echo wpsg_drawForm_Input('', __('Steueranteil', 'wpsg'), wpsg_ff(@$this->view['data']['tax_sum_value'], $this->get_option('wpsg_currency')).' / '.$this->getDefaultCountry()->kuerzel, array('text' => true)); ?>
+ <?php echo wpsg_drawForm_Checkbox('euleistungsortregel', __('Produkt unterliegt den EU-Leistungsortregeln', 'wpsg'), @$this->view['data']['euleistungsortregel'], array('fullrow' => true, 'help' => 'EU-Leistungsortregel')); ?>
+ <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=laender"><span class="glyphicon glyphicon-globe wpsg-glyphicon"></span><?php echo __('Länderverwaltung', 'wpsg'); ?></a>
+ <?php echo wpsg_drawForm_AdminboxEnd(__('Preis / Steuer', 'wpsg')); ?>
+
+<?php } ?> \ No newline at end of file