From a4ab089f509cc76fcd994cb0163347fadae7f534 Mon Sep 17 00:00:00 2001 From: Iglocska Date: Fri, 24 Jul 2015 18:26:21 +0200 Subject: [PATCH] Slightly better looks --- app/View/Servers/add.ctp | 18 ++++++++++++++++-- app/View/Servers/edit.ctp | 20 ++++++++++---------- 2 files changed, 26 insertions(+), 12 deletions(-) diff --git a/app/View/Servers/add.ctp b/app/View/Servers/add.ctp index 034361815..b08fa1444 100755 --- a/app/View/Servers/add.ctp +++ b/app/View/Servers/add.ctp @@ -62,8 +62,22 @@ 'type' => 'file', 'div' => 'clear' )); - echo $this->Form->input('push_rules', array('type' => 'textarea', 'label' => 'Push filters (in JSON format)', 'div' => 'clear', 'class' => 'input-xxlarge')); - echo $this->Form->input('pull_rules', array('type' => 'textarea', 'label' => 'Pull filters (in JSON format)', 'div' => 'clear', 'class' => 'input-xxlarge')); + ?> +
Push rules:
+ + + + + Modify

+ Pull rules:
+ + + + + Modify

+ Form->input('push_rules', array('style' => 'display:none;', 'label' => false, 'div' => false)); + echo $this->Form->input('pull_rules', array('style' => 'display:none;', 'label' => false, 'div' => false)); echo $this->Form->input('json', array('style' => 'display:none;', 'label' => false, 'div' => false)); ?> diff --git a/app/View/Servers/edit.ctp b/app/View/Servers/edit.ctp index 4d3eb1d67..ec8956f38 100755 --- a/app/View/Servers/edit.ctp +++ b/app/View/Servers/edit.ctp @@ -75,17 +75,17 @@ )); ?>
Push rules:
- - - - - Modify

+ + + + + Modify

Pull rules:
- - - - - Modify

+ + + + + Modify

Form->input('push_rules', array('style' => 'display:none;', 'label' => false, 'div' => false)); echo $this->Form->input('pull_rules', array('style' => 'display:none;', 'label' => false, 'div' => false));