From 8904e0b77c9cd896fa0b0f75987a6d22be59c7de Mon Sep 17 00:00:00 2001 From: Daniel Schmitzer Date: Thu, 17 Nov 2016 10:21:15 +0000 Subject: - Zubehörprodukte Produktauswahl in Produktverwaltung schön gemacht MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5916 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/admin/form/select.phtml | 6 +- views/mods/mod_relatedproducts/list.phtml | 11 +-- .../produkt_addedit_sidebar.phtml | 92 +++++++++++++--------- views/produkt/select.phtml | 5 +- 4 files changed, 61 insertions(+), 53 deletions(-) (limited to 'views') diff --git a/views/admin/form/select.phtml b/views/admin/form/select.phtml index 1816945..89a811e 100644 --- a/views/admin/form/select.phtml +++ b/views/admin/form/select.phtml @@ -1,4 +1,4 @@ -
+
@@ -83,6 +83,10 @@ + view['field_config']['icon'])) { ?> + + +
diff --git a/views/mods/mod_relatedproducts/list.phtml b/views/mods/mod_relatedproducts/list.phtml index e123559..9299683 100644 --- a/views/mods/mod_relatedproducts/list.phtml +++ b/views/mods/mod_relatedproducts/list.phtml @@ -11,16 +11,7 @@ view['wpsg_mod_relatedproducts']['data'] as $p) { ?> - get_option('wpsg_mod_relatedproducts_template')) || $this->get_option('wpsg_mod_relatedproducts_template') == '0') { ?> - view['wpsg_mod_relatedproducts']['arTemplates'], $p['template'], array('remove' => __('Zuordnung löschen', 'wpsg'), 'labellink' => WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Produkt&action=edit&edit_id='.$p['id'])); ?> - - - - - - - - + view['wpsg_mod_relatedproducts']['arTemplates'], $p['template'], array('icon' => 'wpsg_icon_remove glyphicon glyphicon-trash')); ?>
diff --git a/views/mods/mod_relatedproducts/produkt_addedit_sidebar.phtml b/views/mods/mod_relatedproducts/produkt_addedit_sidebar.phtml index 96c4b6f..ed87073 100644 --- a/views/mods/mod_relatedproducts/produkt_addedit_sidebar.phtml +++ b/views/mods/mod_relatedproducts/produkt_addedit_sidebar.phtml @@ -5,54 +5,70 @@ */ ?> + +

-
- -
+
callMod('wpsg_mod_relatedproducts', 'drawList', array($this->view['data']['id'])); ?>
- - -

+ /** + * Wird aufgerufen wenn ein Produkt zugeordnet werden soll + */ + function wpsg_relatedproducts_add() + { + + jQuery('#wpsg_mod_relatedproducts_dialog .modal-body').html('<?php echo __('Bitte warten ...', 'wpsg'); ?>'); + jQuery('#wpsg_mod_relatedproducts_dialog').modal( { } ).modal('show'); + + jQuery.ajax( { + url: 'admin.php?page=wpsg-Produkt&action=select&noheader=1&wpsg_mode=wpsg_mod_relatedproducts&edit_id=view['data']['id']; ?>', + success: function(data) { + + jQuery('#wpsg_mod_relatedproducts_dialog .modal-body').html(data); + + } + } ); + + return false; + + } // function wpsg_relatedproducts_add() + + + +
+ + + +

- +
\ No newline at end of file diff --git a/views/produkt/select.phtml b/views/produkt/select.phtml index 4fd93b5..1edac16 100644 --- a/views/produkt/select.phtml +++ b/views/produkt/select.phtml @@ -138,10 +138,7 @@ view['arProdukte'], false); ?> view['arTemplates'], false); ?> - - - - + -- cgit v1.2.3