diff options
Diffstat (limited to 'views/mods')
| -rw-r--r-- | views/mods/mod_productvariants/admin_edit.phtml | 13 | ||||
| -rw-r--r-- | views/mods/mod_stock/produkt_edit_sidebar.phtml | 12 |
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"> </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')); ?>
|
