summaryrefslogtreecommitdiff
path: root/views/admin
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2016-08-13 13:40:36 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2016-08-13 13:40:36 +0000
commitf4d68ae74cdcd77e40de63fdbe5ee8ab4c63920c (patch)
tree3acd256706ae6e9f5578e5afd3fcff17832d9458 /views/admin
parent5dc953f0c42207bf8276812e19315ccd40592c74 (diff)
- Bestellansicht Umbau der Moduleinbindung in Reiter
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5720 0d5edaf7-2b12-4e95-93f4-047927463d4b
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">