summaryrefslogtreecommitdiff
path: root/views/mods
diff options
context:
space:
mode:
Diffstat (limited to 'views/mods')
-rw-r--r--views/mods/mod_produktbilder/produkt_addedit_content.phtml (renamed from views/mods/mod_produktbilder/produkt_edit_content.phtml)51
-rw-r--r--views/mods/mod_produktbilder/produkt_edit_list.phtml3
-rw-r--r--views/mods/mod_produktbilder/produktbild.phtml8
3 files changed, 32 insertions, 30 deletions
diff --git a/views/mods/mod_produktbilder/produkt_edit_content.phtml b/views/mods/mod_produktbilder/produkt_addedit_content.phtml
index 20435b8..b5b5029 100644
--- a/views/mods/mod_produktbilder/produkt_edit_content.phtml
+++ b/views/mods/mod_produktbilder/produkt_addedit_content.phtml
@@ -6,13 +6,32 @@
*/
?>
-<div class="postbox" id="wpsg_produktbilder">
- <h3 class="wpsg_handlediv">
- <span title="<?php echo __('Zum Ein/Ausklappen hier klicken', 'wpsg'); ?>" class="handlediv"><br /></span>
- <span><?php echo __('Produktbilder', 'wpsg'); ?></span>
- </h3>
- <div class="inside">
-
+
+<!-- Modal für FTP Pfad anzeige -->
+<div class="modal fade" id="wpsg_mod_produktbilder_ftppath" tabindex="-1" role="dialog">
+ <div class="modal-dialog" role="document">
+ <div class="modal-content">
+ <div class="modal-header">
+ <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
+ <h4 class="modal-title" id="myModalLabel"><?php echo __('FTP Pfad für Bilderupload', 'wpsg'); ?></h4>
+ </div>
+ <div class="modal-body">
+ <?php echo wpsg_hspc($this->callMod('wpsg_mod_produktbilder', 'getPicPath', array($this->view['data']['id']))); ?>
+ </div>
+ <div class="modal-footer">
+ <button type="button" class="btn btn-default" data-dismiss="modal"><?php echo __('Schließen', 'wpsg'); ?></button>
+ </div>
+ </div>
+ </div>
+</div>
+
+
+<div class="panel panel-default">
+ <div class="panel-heading clearfix">
+ <h3 class="panel-title"><?php echo __('Produktbilder', 'wpsg'); ?></h3>
+ </div>
+ <div class="panel-body">
+
<?php if ($this->view['data']['id'] > 0) { ?>
<div id="produktbilder_target"><?php echo $this->view['ProduktList']; ?></div>
@@ -23,7 +42,7 @@
<div><?php echo __("Um ein Bild zu löschen klicken Sie einfach auf das Bild.", "wpsg"); ?></div>
<div class="wpsg_clear"></div><br />
- <input type="file" name="wpsg_mod_produktbilder_file" />
+ <input type="file" multiple="multiple" name="wpsg_mod_produktbilder_file[]" />
<?php } else { ?>
@@ -82,7 +101,7 @@
jQuery.ajax( {
url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_produktbilder&cmd=remove&noheader=1&edit_id=<?php echo $this->view['data']['id']; ?>',
- async: false,
+ async: true,
data: {
file: strBild
},
@@ -106,18 +125,8 @@
<?php } ?>
<br /><br />
-
- <div class="wpsg_form_field">
- <div class="wpsg_form_left">
- <label for="feinheit"><?php echo __('FTP Pfad', 'wpsg'); ?>:</label>
- </div>
- <div class="wpsg_form_right">
- <p>
- <a href="#" onclick="alert('<?php echo addslashes($this->callMod('wpsg_mod_produktbilder', 'getPicPath', array($this->view['data']['id']))); ?>'); return false;"><?php echo __('Anzeigen', 'wpsg'); ?></a>
- </p>
- </div>
- <div class="wpsg_clear"></div>
- </div>
+ <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>
+
</div>
</div> \ No newline at end of file
diff --git a/views/mods/mod_produktbilder/produkt_edit_list.phtml b/views/mods/mod_produktbilder/produkt_edit_list.phtml
index 7250933..d0aaf12 100644
--- a/views/mods/mod_produktbilder/produkt_edit_list.phtml
+++ b/views/mods/mod_produktbilder/produkt_edit_list.phtml
@@ -11,7 +11,8 @@
<div class="wpsg_mod_produktbilder_admin_bild">
<a onclick="return wpsg_remove_bild('<?php echo $b; ?>');" href="#" title="<?php echo __('Dieses Bild löschen.', 'wpsg'); ?>">
- <img src="<?php echo $this->view['modul']->makeTn($this->view['data']['id'], $b, 75, 75, 's'); ?>" alt="<?php echo wpsg_hspc($b); ?>" />
+ <img src="<?php echo $this->view['modul']->makeTn($this->view['data']['id'], $b, 75, 75, 'c'); ?>" alt="<?php echo wpsg_hspc($b); ?>" />
+ <span><span class="glyphicon glyphicon-trash"></span></span>
</a>
</div>
diff --git a/views/mods/mod_produktbilder/produktbild.phtml b/views/mods/mod_produktbilder/produktbild.phtml
deleted file mode 100644
index 91737b1..0000000
--- a/views/mods/mod_produktbilder/produktbild.phtml
+++ /dev/null
@@ -1,8 +0,0 @@
-<?php
-
- /**
- * Template für ein Produktbild
- */
-
-?>
-<a href="<?php echo $this->view['url_orginal']; ?>" class="wpsg_imagelink thickbox" rel="<?php echo $this->view['rel']; ?>-<?php echo $this->view['produkt']['id']; ?>" title="<?php echo wpsg_hspc($this->view['produkt']['name']); ?>"><img src="<?php echo $this->view['url_tn']; ?>" alt="<?php echo htmlspecialchars($this->view['produkt']['name']); ?>" /></a> \ No newline at end of file