summaryrefslogtreecommitdiff
path: root/views/admin
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2016-09-24 12:57:13 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2016-09-24 12:57:13 +0000
commitb86cb23caa3e47091cb04b8c74e8630ff233cc2a (patch)
tree00b6a8f1d82a5662e7f2d70a15395b73ba29452f /views/admin
parent4f2436675e55eda244c1d66a4b33a8fd1643e085 (diff)
- Backend Rabatt schön
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5792 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/admin')
-rw-r--r--views/admin/form/checkbox.phtml18
-rw-r--r--views/admin/form/input.phtml2
-rw-r--r--views/admin/module.phtml2
3 files changed, 14 insertions, 8 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>
diff --git a/views/admin/form/input.phtml b/views/admin/form/input.phtml
index 2af7457..82ea89e 100644
--- a/views/admin/form/input.phtml
+++ b/views/admin/form/input.phtml
@@ -47,7 +47,7 @@
jQuery(document).ready(function() {
- jQuery('#<?php echo $this->view['field_id']; ?>').datepicker();
+ jQuery('#<?php echo $this->view['field_id']; ?>').datepicker( { dateFormat: 'dd.mm.yy' } );
} );
diff --git a/views/admin/module.phtml b/views/admin/module.phtml
index 5c56e73..f7be96c 100644
--- a/views/admin/module.phtml
+++ b/views/admin/module.phtml
@@ -69,7 +69,7 @@
<?php } ?>
- <?php if (!isset($this->arAllModule[$_REQUEST['modul']]->version) || (($this->arAllModule[$_REQUEST['modul']]->free === true || (is_array($this->arLizenz) && in_array($_REQUEST['modul'], (array)$this->arLizenz['mods'])) || $this->arAllModule[$_REQUEST['modul']]->getDemoDays() > 0))) { ?>
+ <?php if (!isset($this->arAllModule[$_REQUEST['modul']]->version) || ((wpsg_isTrue($this->arAllModule[$_REQUEST['modul']]->free) || (is_array($this->arLizenz) && in_array($_REQUEST['modul'], (array)$this->arLizenz['mods'])) || $this->arAllModule[$_REQUEST['modul']]->getDemoDays() > 0))) { ?>
<?php if ($this->arAllModule[$_REQUEST['modul']]->inline === true) { ?>
<p class="submit"><input type="submit" value="<?php echo __('Einstellungen speichern', 'wpsg'); ?>" class="button-primary" id="submit" name="submit"></p>
<?php } ?>