diff --git a/plugins/box/menu/views/backend/add.view.php b/plugins/box/menu/views/backend/add.view.php
index 20f9bfc..a071a86 100644
--- a/plugins/box/menu/views/backend/add.view.php
+++ b/plugins/box/menu/views/backend/add.view.php
@@ -17,11 +17,11 @@
(isset($errors['menu_item_name_empty']) || isset($errors['menu_item_name_empty'])) ? 'form-control error-field' : 'form-control'));
+ if (isset($errors['menu_item_name_empty'])) echo '
'.$errors['menu_item_name_empty'].'
';
?>
'.$errors['menu_item_name_empty'].'';
echo (
Form::label('menu_item_link', __('Item link', 'menu')).
Form::input('menu_item_link', $menu_item_link, array('class' => 'form-control'))
diff --git a/plugins/box/menu/views/backend/index.view.php b/plugins/box/menu/views/backend/index.view.php
index bc14ebb..e789ec9 100644
--- a/plugins/box/menu/views/backend/index.view.php
+++ b/plugins/box/menu/views/backend/index.view.php
@@ -10,8 +10,8 @@
__('Create New Item', 'menu'), 'class' => 'btn btn-primary'))
- );
+ Html::anchor(__('Create New Item', 'menu'), 'index.php?id=menu&action=add', array('title' => __('Create New Item', 'menu'), 'class' => 'btn btn-primary'))
+ );
?>
@@ -21,16 +21,11 @@
select('[category="'.$category.'"]', 'all', null, array('id', 'name', 'link', 'target', 'order', 'category'), 'order', 'ASC');
-
$category_to_add = ($category == '') ? '' : '&category='.$category;
-
?>
-
:
@@ -39,8 +34,8 @@
__('Create New Item', 'menu'), 'class' => 'btn btn-primary'))
- );
+ Html::anchor(__('Create New Item', 'menu'), 'index.php?id=menu&action=add'.$category_to_add , array('title' => __('Create New Item', 'menu'), 'class' => 'btn btn-primary'))
+ );
?>
@@ -52,7 +47,7 @@
|
- |
+ |
|