diff options
| author | hartmut <noreply@maennchen1.de> | 2016-12-21 15:13:25 +0000 |
|---|---|---|
| committer | hartmut <noreply@maennchen1.de> | 2016-12-21 15:13:25 +0000 |
| commit | 1a5382bd8186a4a41eb3d7ff032d7f34784ac61e (patch) | |
| tree | d35c8f342d10d8229f4d9796396878b248200fc3 /views/mods/mod_stock/settings_edit.phtml | |
| parent | 07d2750b65a9e0ed21061d6e3acd2501083a48a3 (diff) | |
Korrektur Notizen und Warnungen
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5997 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods/mod_stock/settings_edit.phtml')
| -rw-r--r-- | views/mods/mod_stock/settings_edit.phtml | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/views/mods/mod_stock/settings_edit.phtml b/views/mods/mod_stock/settings_edit.phtml index 92e2194..b384b79 100644 --- a/views/mods/mod_stock/settings_edit.phtml +++ b/views/mods/mod_stock/settings_edit.phtml @@ -5,25 +5,12 @@ */
?>
-<div class="wpsg_form_field">
- <div class="wpsg_form_left">
- <label for="wpsg_mod_stock_template"><?php echo __('Template für ausverkaufte Produkte', 'wpsg'); ?>:</label>
- </div>
- <div class="wpsg_form_right">
- <?php if (!is_array($this->view['arTemplates']) || sizeof($this->view['arTemplates']) <= 0) { ?>
- <p class="wpsg_error"><?php echo __('Keine Templatedatein gefunden!', 'wpsg'); ?></p>
- <?php } else { ?>
- <input type="hidden" name="wpsg_mod_stock_template" value="<?php echo $this->get_option('wpsg_mod_stock_template'); ?>" />
- <select name="wpsg_mod_stock_template" id="wpsg_mod_stock_template">
- <option value="-1"><?php echo __('Wie Produkttemplate', 'wpsg'); ?></option>
- <?php foreach ($this->view['arTemplates'] as $t) { ?>
- <option <?php echo (($t == $this->get_option('wpsg_mod_stock_template'))?'selected="selected"':''); ?> value="<?php echo wpsg_hspc($t); ?>"><?php echo wpsg_hspc($t); ?></option>
- <?php } ?>
- </select>
- <?php } ?>
- </div>
- <div class="wpsg_clear"></div>
-</div>
+<?php
+ $arTemp = wpsg_array_merge(array('-1' => __('Wie Produkttemplate', 'wpsg')), $this->view['arTemplates']);
+?>
+<?php echo wpsg_drawForm_Select('wpsg_mod_stock_template', __('Template für ausverkaufte Produkte', 'wpsg'),
+ $arTemp, @$this->get_option('wpsg_mod_stock_template')); ?>
+
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_stock_notemplateswitch', __('Template nicht wechseln', 'wpsg'), $this->get_option('wpsg_mod_stock_notemplateswitch'), array('help' => 'wpsg_mod_stock_notemplateswitch')); ?>
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_stock_allow', __('Bestellungen bei negativen Bestand verhindern', 'wpsg'), $this->get_option('wpsg_mod_stock_allow'), array('help' => 'wpsg_mod_stock_allow')); ?>
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_stock_showBackendStock', __('Bestand in Produktübersicht (Backend) anzeigen', 'wpsg'), $this->get_option('wpsg_mod_stock_showBackendStock'), array('help' => 'wpsg_mod_stock_showBackendStock')); ?>
|
