diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2016-09-24 12:57:13 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2016-09-24 12:57:13 +0000 |
| commit | b86cb23caa3e47091cb04b8c74e8630ff233cc2a (patch) | |
| tree | 00b6a8f1d82a5662e7f2d70a15395b73ba29452f /views/admin/form/checkbox.phtml | |
| parent | 4f2436675e55eda244c1d66a4b33a8fd1643e085 (diff) | |
- Backend Rabatt schön
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5792 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/admin/form/checkbox.phtml')
| -rw-r--r-- | views/admin/form/checkbox.phtml | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/views/admin/form/checkbox.phtml b/views/admin/form/checkbox.phtml index 6abc56c..fcf63e6 100644 --- a/views/admin/form/checkbox.phtml +++ b/views/admin/form/checkbox.phtml @@ -1,11 +1,17 @@ <div class="form-group form-group-sm form-checkbox <?php echo ((wpsg_isSizedString($this->view['field_config']['help']))?'has-feedback':''); ?>">
- <div class="<?php
-
- if (wpsg_isTrue($this->view['field_config']['fullWidth'])) echo 'col-sm-12';
- else echo 'col-sm-offset-6 col-sm-6';
-
- ?>">
+ <?php if (wpsg_isSizedString($this->view['field_config']['label'])) { $value_class = 'col-sm-6'; ?>
+ <label class="col-sm-6 control-label">
+ <?php echo wpsg_hspc($this->view['field_config']['label']); ?>
+ </label>
+ <?php } else {
+
+ if (wpsg_isTrue($this->view['field_config']['fullWidth'])) $value_class = 'col-sm-12';
+ else $value_class = 'col-sm-offset-6 col-sm-6';
+
+ } ?>
+
+ <div class="<?php echo $value_class; ?>">
<div class="checkbox">
<label>
|
