summaryrefslogtreecommitdiff
path: root/views/mods/mod_stock
diff options
context:
space:
mode:
Diffstat (limited to 'views/mods/mod_stock')
-rw-r--r--views/mods/mod_stock/produkt_edit_sidebar.phtml12
1 files changed, 2 insertions, 10 deletions
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')); ?>