diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2016-05-18 17:17:39 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2016-05-18 17:17:39 +0000 |
| commit | 290552dd2f9d49663a552d63acfc844560db7303 (patch) | |
| tree | a56e401bb87622de93283766c78554ede3f20598 /views/mods | |
| parent | fa949a5f112cc861fb518f6459f2bd4c7a22159b (diff) | |
- InlineEdit neu mit Select auswahl
- Type Auswahl für neue Varianten
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5489 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods')
| -rw-r--r-- | views/mods/mod_productvariants/admin_show.phtml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/views/mods/mod_productvariants/admin_show.phtml b/views/mods/mod_productvariants/admin_show.phtml index 099d8a2..780dc53 100644 --- a/views/mods/mod_productvariants/admin_show.phtml +++ b/views/mods/mod_productvariants/admin_show.phtml @@ -15,6 +15,7 @@ <tr>
<th class="col_id"><?php echo __('Id', 'wpsg'); ?></th>
<th class="col1"><?php echo __('Name', 'wpsg'); ?></th>
+ <th class="col_type"><?php echo __('Typ', 'wpsg'); ?></th>
<th class="col_vari"><?php echo __('Variationen', 'wpsg'); ?></th>
<?php if (!wpsg_isSizedInt($this->view['product_id'])) { ?>
@@ -34,6 +35,7 @@ <span class="wpsg_mod_productvariants_info"><?php echo __('(Produktbezogen)', 'wpsg'); ?></span>
<?php } ?>
</td>
+ <td class="col_type"><span class="wpsg_editable" id="productvariants_type_<?php echo $var['id']; ?>"><?php echo $var['type_label']; ?></span></td>
<td class="col_vari"><?php
if (wpsg_isSizedInt($this->view['product_id'])) echo $var['count_active'].'/'.$var['count_variation'];
@@ -48,12 +50,23 @@ <script type="text/javascript">/* <![CDATA[ */
<?php if ((wpsg_isSizedInt($this->view['product_id']) && $this->view['product_id'] == $var['product_id']) || (!wpsg_isSizedInt($var['product_id']) && !wpsg_isSizedInt($this->view['product_id']))) { ?>
+
jQuery('#productvariants_name_<?php echo $var['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: 'name',
field_id: '<?php echo $var['id']; ?>'
}
});
+
+ jQuery('#productvariants_type_<?php echo $var['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: 'type',
+ field_id: '<?php echo $var['id']; ?>'
+ },
+ data: '<?php echo json_encode(wpsg_mod_productvariants::$arTypeLabel); ?>',
+ type: 'select'
+ });
+
<?php } ?>
/* ]]> */</script>
|
