From 34e934fb8fdfbf2201a65dc81f44a542b54ec9d8 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 29 Nov 2018 06:27:53 +0100 Subject: [PATCH] use sam layout as for managing categories --- views/bootstrap/class.DefaultKeywords.php | 60 +++++++++++++---------- 1 file changed, 34 insertions(+), 26 deletions(-) diff --git a/views/bootstrap/class.DefaultKeywords.php b/views/bootstrap/class.DefaultKeywords.php index bdac1fbeb..5aa4e4198 100644 --- a/views/bootstrap/class.DefaultKeywords.php +++ b/views/bootstrap/class.DefaultKeywords.php @@ -117,6 +117,23 @@ $(document).ready( function() { params['dms']; + $user = $this->params['user']; + $selcategoryid = $this->params['selcategoryid']; + + if($selcategoryid && $selcategoryid > 0) { +?> +
+ + + + +
+params['dms']; $user = $this->params['user']; @@ -129,30 +146,27 @@ $(document).ready( function() { if(!$category) { ?> -
+ - : - "> +formField( + getMLText("name"), + array( + 'element'=>'input', + 'type'=>'text', + 'name'=>'name', + 'value'=>'' + ) + ); + $this->formSubmit(" ".getMLText('new_default_keyword_category')); +?>
getOwner(); if ((!$user->isAdmin()) && ($owner->getID() != $user->getID())) return; ?> - -
- -
-
- - - - -
-
-
-
@@ -229,14 +243,10 @@ $(document).ready( function() { ?>
-contentContainerStart(); ?>
-
- -
- +
-
-contentContainerEnd(); ?> +
>