diff options
| author | thomas <noreply@maennchen1.de> | 2017-09-13 15:11:43 +0000 |
|---|---|---|
| committer | thomas <noreply@maennchen1.de> | 2017-09-13 15:11:43 +0000 |
| commit | 903c9b5f368012a75fee3a0128464a5884826381 (patch) | |
| tree | 951de6455b74d4d7623a82cf408bb2fb9e402a6a | |
| parent | a769e8f480dc8fa6296c04798556a5f6b3974e17 (diff) | |
- Backenddarstellungen
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6499 0d5edaf7-2b12-4e95-93f4-047927463d4b
| -rw-r--r-- | views/mods/mod_fuellmenge/produkt_edit_sidebar.phtml | 12 | ||||
| -rw-r--r-- | views/mods/mod_voucherproduct/settings_edit.phtml | 55 |
2 files changed, 29 insertions, 38 deletions
diff --git a/views/mods/mod_fuellmenge/produkt_edit_sidebar.phtml b/views/mods/mod_fuellmenge/produkt_edit_sidebar.phtml index 3db54c8..5bc5efa 100644 --- a/views/mods/mod_fuellmenge/produkt_edit_sidebar.phtml +++ b/views/mods/mod_fuellmenge/produkt_edit_sidebar.phtml @@ -1,7 +1,7 @@ <?php
/**
- * Template für den Adminbereich des Füllmengenmoduls innerhalb des Produktes
+ * Template für die Konfiguration der Füllmenge innerhalb der Produktverwaltung
*/
?>
@@ -12,17 +12,9 @@ </h3>
</div>
<div class="panel-body">
- <?php echo wpsg_drawForm_Select('feinheit', __('Einheit', 'wpsg'), $this->view['data']['arFeinheiten'], wpsg_getStr($this->view['data']['feinheit'])); ?>
<?php echo wpsg_drawForm_Input('fmenge', __('Füllmenge', 'wpsg'), wpsg_tf(wpsg_getFloat($this->view['data']['fmenge']))); ?>
+ <?php echo wpsg_drawForm_Select('feinheit', __('Einheit', 'wpsg'), $this->view['data']['arFeinheiten'], wpsg_getStr($this->view['data']['feinheit'])); ?>
- <?php echo wpsg_drawForm_Input('wpsg_mod_fuellmenge_einheit', __('Mögliche Einheiten (Kommagetrennt)', 'wpsg'), $this->get_option('wpsg_mod_fuellmenge_einheit'), array('help' => 'wpsg_mod_fuellmenge_einheit')); ?>
- <?php echo wpsg_drawForm_Input('wpsg_mod_fuellmenge_bezug', __('Bezugsgröße', 'wpsg'), $this->get_option('wpsg_mod_fuellmenge_bezug'), array('help' => 'wpsg_mod_fuellmenge_bezug')); ?>
- <?php echo wpsg_drawForm_Checkbox('wpsg_mod_fuellmenge_showAjaxDialog', __('In der Warenkorb-Lightbox anzeigen', 'wpsg'), $this->get_option('wpsg_mod_fuellmenge_showAjaxDialog'), array('help' => 'wpsg_mod_fuellmenge_showAjaxDialog')); ?>
- <?php if ($this->hasMod('wpsg_mod_productindex')) { ?>
- <?php echo wpsg_drawForm_Checkbox('wpsg_mod_fuellmenge_showProductindex_fmenge', __('Füllmenge auf Produktübersichtsseiten anzeigen', 'wpsg'), $this->get_option('wpsg_mod_fuellmenge_showProductindex_fmenge'), array('help' => 'wpsg_mod_fuellmenge_showProductindex_fmenge')); ?>
- <?php echo wpsg_drawForm_Checkbox('wpsg_mod_fuellmenge_showProductindex_grundpreis', __('Grundpreis auf Produktübersichtsseiten anzeigen', 'wpsg'), $this->get_option('wpsg_mod_fuellmenge_showProductindex_grundpreis'), array('help' => 'wpsg_mod_fuellmenge_showProductindex_grundpreis')); ?>
- <?php } ?>
-
<br /><br />
<a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_fuellmenge"><span class="wpsg-glyphicon glyphicon glyphicon-wrench"></span><?php echo __('Zur Konfiguration des Füllmengenmoduls', 'wpsg'); ?></a>
diff --git a/views/mods/mod_voucherproduct/settings_edit.phtml b/views/mods/mod_voucherproduct/settings_edit.phtml index b06fad4..5662918 100644 --- a/views/mods/mod_voucherproduct/settings_edit.phtml +++ b/views/mods/mod_voucherproduct/settings_edit.phtml @@ -52,46 +52,36 @@ <table class="table table-body-striped wpsg_mod_voucher_fieldtable">
<thead>
<tr>
- <th class="col_bezeichnung"></th>
+ <th class="col_bezeichnung"></th>
+ <th class="col_freitext_label"><?php echo __('Freitext', 'wpsg'); ?></th>
<th class="col_x"><?php echo __('X', 'wpsg'); ?></th>
<th class="col_y"><?php echo __('Y', 'wpsg'); ?></th>
- <th class="col_align"><?php echo __('Zentriert', 'wpsg'); ?></th>
- <th class="col_bg"><?php echo __('Hintergrund', 'wpsg'); ?></th>
<th class="col_color"><?php echo __('Farbe', 'wpsg'); ?></th>
+ <th class="col_groesse"><?php echo __('Größe', 'wpsg'); ?></th>
+ <th class="col_align"><?php echo __('Zentriert', 'wpsg'); ?></th>
+ <th class="col_bg"><?php echo __('Hintergrund', 'wpsg'); ?></th>
<th class="col_alpha"><?php echo __('Deckkraft', 'wpsg'); ?></th>
<th class="col_angle"><?php echo __('Winkel', 'wpsg'); ?></th>
- <th class="col_groesse"><?php echo __('Größe', 'wpsg'); ?></th>
- <th class="col_action"></th>
+ <th class="col_action"><?php echo __('Aktiv', 'wpsg'); ?></th>
</tr>
</thead>
<tbody>
<?php for ($i = 0; $i < 10; $i ++) { ?>
<tr>
- <td><?php echo '#'.($i + 1); ?></td>
+ <td><?php echo '#'.($i + 1); ?></td>
+ <td>
+ <input type="text" style="width:100%;" name="text[<?php echo $i; ?>][text]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['arTexte'][$i]['text'])); ?>" />
+ </td>
<td>
<input type="text" style="width:100%;" name="text[<?php echo $i; ?>][x]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['arTexte'][$i]['x'])); ?>" />
</td>
<td>
<input type="text" style="width:100%;" name="text[<?php echo $i; ?>][y]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['arTexte'][$i]['y'])); ?>" />
</td>
- <td class="col_align">
- <input type="hidden" name="text[<?php echo $i; ?>][align]" value="0" />
- <input type="checkbox" name="text[<?php echo $i; ?>][align]" value="1" <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['align']))?'checked="checked"':''); ?> />
- </td>
- <td class="col_bg">
- <input type="hidden" name="text[<?php echo $i; ?>][bg]" value="0" />
- <input type="checkbox" name="text[<?php echo $i; ?>][bg]" value="1" <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['bg']))?'checked="checked"':''); ?> />
- </td>
<td>
<input type="text" style="width:100%;" name="text[<?php echo $i; ?>][color]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['arTexte'][$i]['color'])); ?>" />
</td>
<td>
- <input type="text" style="width:100%;" name="text[<?php echo $i; ?>][alpha]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['arTexte'][$i]['alpha'])); ?>" />
- </td>
- <td>
- <input type="text" style="width:100%;" name="text[<?php echo $i; ?>][angle]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['arTexte'][$i]['angle'])); ?>" />
- </td>
- <td>
<select name="text[<?php echo $i; ?>][fontsize]" style="width:100%;">
<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 4))?'selected="selected"':''); ?> value="4">4</option>
<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 5))?'selected="selected"':''); ?> value="5">5</option>
@@ -116,18 +106,27 @@ <option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 34))?'selected="selected"':''); ?> value="34">34</option>
</select>
</td>
+ <td class="col_align">
+ <input type="hidden" name="text[<?php echo $i; ?>][align]" value="0" />
+ <input type="checkbox" name="text[<?php echo $i; ?>][align]" value="1" <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['align']))?'checked="checked"':''); ?> />
+ </td>
+ <td class="col_bg">
+ <input type="hidden" name="text[<?php echo $i; ?>][bg]" value="0" />
+ <input type="checkbox" name="text[<?php echo $i; ?>][bg]" value="1" <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['bg']))?'checked="checked"':''); ?> />
+ </td>
+
+ <td>
+ <input type="text" style="width:100%;" name="text[<?php echo $i; ?>][alpha]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['arTexte'][$i]['alpha'])); ?>" />
+ </td>
+ <td>
+ <input type="text" style="width:100%;" name="text[<?php echo $i; ?>][angle]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['arTexte'][$i]['angle'])); ?>" />
+ </td>
+
<td>
- <label><input type="checkbox" value="1" name="text[<?php echo $i; ?>][aktiv]" <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['aktiv']))?'checked="checked"':''); ?> /> <?php echo __("Aktiv", "wpsg"); ?></label>
+ <input type="checkbox" value="1" name="text[<?php echo $i; ?>][aktiv]" <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['aktiv']))?'checked="checked"':''); ?> />
<a style="float:right; position:relative;" class="glyphicon glyphicon-question-sign" data-wpsg-tip="mod_voucherproduct_fieldconfig" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_voucherproduct_fieldconfig" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_voucherproduct_fieldconfig"></a>
</td>
</tr>
- <tr>
- <td></td>
- <td class="col_freitext_label"><?php echo __('Freitext', 'wpsg'); ?>:</td>
- <td colspan="8" class="col_freitext">
- <input type="text" style="width:100%;" name="text[<?php echo $i; ?>][text]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['arTexte'][$i]['text'])); ?>" />
- </td>
- </tr>
<?php } ?>
</tbody>
</table>
|
