summaryrefslogtreecommitdiff
path: root/views/mods/mod_productvariants
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2016-05-27 12:43:25 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2016-05-27 12:43:25 +0000
commitec56d4ca7ecc5e38d705ac6a3386ea140ae3038e (patch)
tree43856683bf86b1a3e30773e89cb5f298068248d9 /views/mods/mod_productvariants
parent5d4eb81fd2fc62275386470656da7ab2148c0828 (diff)
- Filter Frontend/Backend
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5521 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods/mod_productvariants')
-rw-r--r--views/mods/mod_productvariants/admin_edit.phtml11
-rw-r--r--views/mods/mod_productvariants/produkt_addedit_content.phtml2
2 files changed, 11 insertions, 2 deletions
diff --git a/views/mods/mod_productvariants/admin_edit.phtml b/views/mods/mod_productvariants/admin_edit.phtml
index ef11894..d491b74 100644
--- a/views/mods/mod_productvariants/admin_edit.phtml
+++ b/views/mods/mod_productvariants/admin_edit.phtml
@@ -15,12 +15,13 @@
<thead>
<tr>
- <?php $colspan = 1; if (wpsg_isSizedInt($this->view['product_id'])) { $colspan ++; ?>
+ <?php $colspan = 2; if (wpsg_isSizedInt($this->view['product_id'])) { $colspan ++; ?>
<th class="col_active"></th>
<?php } ?>
<th class="col_id"><?php echo __('Id', 'wpsg'); ?></th>
<th class="col1"><?php echo __('Name', 'wpsg'); ?></th>
+ <th class="col_shortname"><?php echo __('Kurzname'); ?></th>
<?php if (wpsg_isSizedInt($this->view['product_id'])) { $colspan += 3; ?>
<th class="col_artnr"><?php echo __('Artikelnummer', 'wpsg'); ?></th>
@@ -52,6 +53,13 @@
field: 'vari_name',
field_id: '<?php echo $vari['id']; ?>'
}
+ });
+
+ jQuery('#productvariation_shortname_<?php echo $vari['id']; ?>').wspg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_productvariants&subaction=admin_inlineEdit&noheader=1', {
+ submitdata: {
+ field: 'vari_shortname',
+ field_id: '<?php echo $vari['id']; ?>'
+ }
});
<?php } else { ?>
@@ -100,6 +108,7 @@
/* ]]> */</script>
</td>
<td class="col1"><span class="wpsg_editable" id="productvariation_name_<?php echo $vari['id']; ?>"><?php echo wpsg_hspc($vari['name']); ?></span></td>
+ <td class="col_shortname"><span class="wpsg_editable" id="productvariation_shortname_<?php echo $vari['id']; ?>"><?php echo wpsg_hspc($vari['shortname']); ?></span></td>
<?php if (wpsg_isSizedInt($this->view['product_id'])) { ?>
<td class="col_artnr"><span class="wpsg_editable" id="productvariation_anr_<?php echo $vari['id']; ?>"><?php echo wpsg_hspc($vari['anr']); ?></span></td>
diff --git a/views/mods/mod_productvariants/produkt_addedit_content.phtml b/views/mods/mod_productvariants/produkt_addedit_content.phtml
index 21b3e43..aa8012a 100644
--- a/views/mods/mod_productvariants/produkt_addedit_content.phtml
+++ b/views/mods/mod_productvariants/produkt_addedit_content.phtml
@@ -24,7 +24,7 @@
<?php } else { ?>
- <?php echo __('Bitte speichern Sie das Produkt zuerst.', 'wpsg'); ?>
+ <p><?php echo __('Bitte speichern Sie das Produkt zuerst.', 'wpsg'); ?></p>
<?php } ?>