summaryrefslogtreecommitdiff
path: root/views/mods
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2016-05-18 17:30:03 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2016-05-18 17:30:03 +0000
commitf59c23ed800fdd0ec0dcadcff8e87e5e74e98cac (patch)
tree6007ff7574d55aae875e275a5c210aa4a3046352 /views/mods
parent290552dd2f9d49663a552d63acfc844560db7303 (diff)
- Aufgeräumt
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5490 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods')
-rw-r--r--views/mods/mod_productvariants/admin_edit.phtml13
-rw-r--r--views/mods/mod_stock/produkt_edit_sidebar.phtml12
2 files changed, 8 insertions, 17 deletions
diff --git a/views/mods/mod_productvariants/admin_edit.phtml b/views/mods/mod_productvariants/admin_edit.phtml
index 4896638..ef11894 100644
--- a/views/mods/mod_productvariants/admin_edit.phtml
+++ b/views/mods/mod_productvariants/admin_edit.phtml
@@ -15,18 +15,18 @@
<thead>
<tr>
- <?php if (wpsg_isSizedInt($this->view['product_id'])) { ?>
+ <?php $colspan = 1; 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>
- <?php if (wpsg_isSizedInt($this->view['product_id'])) { ?>
+ <?php if (wpsg_isSizedInt($this->view['product_id'])) { $colspan += 3; ?>
<th class="col_artnr"><?php echo __('Artikelnummer', 'wpsg'); ?></th>
<th class="col_price"><?php echo __('Preis', 'wpsg'); ?></th>
<th class="col_stock"><?php echo __('Lagerbestand', 'wpsg'); ?></th>
- <?php } else { ?>
+ <?php } else { $colspan ++; ?>
<th class="col_action"></th>
<?php } ?>
@@ -114,15 +114,14 @@
<?php } ?>
</tr>
-
- <?php /* ?>
+
<tr>
<td class="col_id">&nbsp;</td>
- <td class="col_image" colspan="5">
+ <td class="col_image" colspan="<?php echo $colspan; ?>">
TODO: Bilder
</td>
</tr>
- */ ?>
+
</tbody>
<?php } ?>
diff --git a/views/mods/mod_stock/produkt_edit_sidebar.phtml b/views/mods/mod_stock/produkt_edit_sidebar.phtml
index b0d97bc..d9ad1cb 100644
--- a/views/mods/mod_stock/produkt_edit_sidebar.phtml
+++ b/views/mods/mod_stock/produkt_edit_sidebar.phtml
@@ -5,14 +5,6 @@
*/
?>
-<div class="form-group form-group-sm">
- <label class="col-sm-6 control-label" for="wpsg_mod_stock_stock"><?php echo __('Lagerbestand', 'wpsg'); ?>:</label>
- <div class="col-sm-6">
- <input id="wpsg_mod_stock_stock" type="text" name="wpsg_mod_stock_stock" value="<?php echo $this->view['data']['stock']; ?>" />
- </div>
- <label class="col-sm-6 control-label" for="wpsg_mod_stock_stock_count"><?php echo __('Lagerbestand zählen', 'wpsg'); ?>:</label>
- <div class="col-sm-6">
- <input id="wpsg_mod_stock_stock_count" type="checkbox" class="checkbox" name="wpsg_mod_stock_stock_count" value="1" <?php echo (($this->view['data']['stock_count'] == '1')?'checked="checked"':''); ?> />
- </div>
-</div>
+<?php echo wpsg_drawForm_Input('wpsg_mod_stock_stock', __('Lagerbestand', 'wpsg'), wpsg_getStr($this->view['data']['stock'], '0')); ?>
+<?php echo wpsg_drawForm_Checkbox('wpsg_mod_stock_stock_count', __('Lagerbestand zählen', 'wpsg'), wpsg_getStr($this->view['data']['stock_count'], '0')); ?>