summaryrefslogtreecommitdiff
path: root/views/admin/form/checkbox.phtml
diff options
context:
space:
mode:
Diffstat (limited to 'views/admin/form/checkbox.phtml')
-rw-r--r--views/admin/form/checkbox.phtml22
1 files changed, 17 insertions, 5 deletions
diff --git a/views/admin/form/checkbox.phtml b/views/admin/form/checkbox.phtml
index c183513..e20ddea 100644
--- a/views/admin/form/checkbox.phtml
+++ b/views/admin/form/checkbox.phtml
@@ -1,14 +1,26 @@
-<div class="form-group form-group-sm form-checkbox">
+<div class="form-group form-group-sm form-checkbox <?php echo ((wpsg_isSizedString($this->view['field_config']['help']))?'has-feedback':''); ?>">
- <div class="col-sm-offset-6 col-sm-6">
+ <div class="<?php
+
+ if (wpsg_isTrue($this->view['field_config']['fullWidth'])) echo 'col-sm-12';
+ else echo 'col-sm-offset-6 col-sm-6';
+
+ ?>">
<div class="checkbox">
<label>
- <input type="hidden" name="<?php echo $this->view['field_name']; ?>" value="0" />
- <input type="checkbox" name="<?php echo $this->view['field_name']; ?>" value="1" <?php echo (($this->view['field_checked'] > 0)?'checked="checked"':''); ?> />
+ <div class="wpsg_field_wrap">
+ <input type="hidden" name="<?php echo $this->view['field_name']; ?>" value="0" />
+ <input type="checkbox" id="<?php echo $this->view['field_id']; ?>" name="<?php echo $this->view['field_name']; ?>" value="1" <?php echo (($this->view['field_checked'] > 0)?'checked="checked"':''); ?> />
- <?php echo $this->view['field_label']; ?>
+ <?php echo $this->view['field_label']; ?>
+
+ <?php if (wpsg_isSizedString($this->view['field_config']['help'])) { ?>
+ <a href="#" data-wpsg-tip="<?php echo $this->view['field_config']['help']; ?>" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=<?php echo $this->view['field_config']['help']; ?>" class="glyphicon glyphicon glyphicon-info-sign form-control-feedback" aria-hidden="true"></a>
+ <?php } ?>
+
+ </div>
</label>
</div>