summaryrefslogtreecommitdiff
path: root/views/admin
diff options
context:
space:
mode:
Diffstat (limited to 'views/admin')
-rw-r--r--views/admin/form/text.phtml21
-rw-r--r--views/admin/form/textarea.phtml10
2 files changed, 27 insertions, 4 deletions
diff --git a/views/admin/form/text.phtml b/views/admin/form/text.phtml
index a9eb9fd..450c2ea 100644
--- a/views/admin/form/text.phtml
+++ b/views/admin/form/text.phtml
@@ -6,9 +6,9 @@
<div class="wpsg_field_wrap">
<?php if (wpsg_isTrue($this->view['field_config']['noP'])) { ?>
- <?php echo $this->view['field_value']; ?>
+ <span <?php echo ((wpsg_isSizedString($this->view['field_id']))?' id="'.$this->view['field_id'].'" ':''); ?>><?php echo $this->view['field_value']; ?></span>
<?php } else { ?>
- <p class="form-control-static" style="padding-left:0px;"><?php echo $this->view['field_value']; ?></p>
+ <p <?php echo ((wpsg_isSizedString($this->view['field_id']))?' id="'.$this->view['field_id'].'" ':''); ?> class="form-control-static" style="padding-left:0px;"><?php echo $this->view['field_value']; ?></p>
<?php } ?>
<?php if (wpsg_isSizedString($this->view['field_config']['help'])) { ?>
@@ -16,5 +16,22 @@
<?php } ?>
</div>
</div>
+
+ <?php if (isset($this->view['field_config']['inlineEdit']) && $this->view['field_config']['inlineEdit']) { ?>
+ <script type="text/javascript">/* <![CDATA[ */
+
+ jQuery(document).ready(function() {
+
+ jQuery('#<?php echo $this->view['field_id']; ?>').wspg_editable('<?php echo $this->view['field_config']['inlineEdit_url']; ?>', {
+ <?php if (wpsg_isSizedString($this->view['field_config']['inlineEdit_type'])) { ?>
+ 'type': '<?php echo $this->view['field_config']['inlineEdit_type']; ?>',
+ 'placement': 'bottom'
+ <?php } ?>
+ } );
+
+ } );
+
+ /* ]]> */</script>
+ <?php } ?>
</div> \ No newline at end of file
diff --git a/views/admin/form/textarea.phtml b/views/admin/form/textarea.phtml
index fabe0de..d016766 100644
--- a/views/admin/form/textarea.phtml
+++ b/views/admin/form/textarea.phtml
@@ -1,8 +1,14 @@
<div class="form-group form-group-sm form-textarea <?php echo ((wpsg_isSizedString($this->view['field_config']['help']))?'has-feedback':''); ?>">
+ <?php if (!isset($this->view['field_config']['noLabel']) || $this->view['field_config']['noLabel'] != true) { ?>
<label class="col-sm-6 control-label" for="<?php echo $this->view['field_id']; ?>"><?php echo $this->view['field_label']; ?></label>
-
- <div class="col-sm-6">
+ <?php } ?>
+
+ <?php if (isset($this->view['field_config']['noLabel']) && $this->view['field_config']['noLabel'] == true) { ?>
+ <div class="col-sm-12">
+ <?php } else { ?>
+ <div class="col-sm-6">
+ <?php } ?>
<div class="wpsg_field_wrap">