From 26f1abd717e8d129b9c3858c9b4386a6cb8b9b0d Mon Sep 17 00:00:00 2001 From: Awilum Date: Thu, 9 Jan 2014 00:11:19 +0200 Subject: [PATCH] UI Improvements - Admin - Cancel Button Added #194 --- plugins/box/blocks/languages/en.lang.php | 1 + plugins/box/blocks/views/backend/add.view.php | 3 ++- plugins/box/blocks/views/backend/edit.view.php | 3 ++- plugins/box/menu/languages/en.lang.php | 1 + plugins/box/menu/views/backend/add.view.php | 3 ++- plugins/box/menu/views/backend/edit.view.php | 3 ++- plugins/box/pages/languages/en.lang.php | 1 + plugins/box/pages/views/backend/add.view.php | 3 ++- plugins/box/pages/views/backend/edit.view.php | 3 ++- plugins/box/snippets/languages/en.lang.php | 1 + plugins/box/snippets/views/backend/add.view.php | 3 ++- plugins/box/snippets/views/backend/edit.view.php | 3 ++- plugins/box/users/languages/en.lang.php | 1 + plugins/box/users/views/backend/add.view.php | 3 ++- plugins/box/users/views/backend/edit.view.php | 3 ++- 15 files changed, 25 insertions(+), 10 deletions(-) diff --git a/plugins/box/blocks/languages/en.lang.php b/plugins/box/blocks/languages/en.lang.php index 261f1f7..a77b8ee 100644 --- a/plugins/box/blocks/languages/en.lang.php +++ b/plugins/box/blocks/languages/en.lang.php @@ -25,5 +25,6 @@ 'Embed Code' => 'Embed Code', 'Shortcode' => 'Shortcode', 'PHP Code' => 'PHP Code', + 'Cancel' => 'Cancel', ) ); diff --git a/plugins/box/blocks/views/backend/add.view.php b/plugins/box/blocks/views/backend/add.view.php index f1ab79f..1adc75e 100644 --- a/plugins/box/blocks/views/backend/add.view.php +++ b/plugins/box/blocks/views/backend/add.view.php @@ -25,7 +25,8 @@ echo ( Html::br(). Form::submit('add_blocks_and_exit', __('Save and Exit', 'blocks'), array('class' => 'btn btn-primary')).Html::nbsp(2). - Form::submit('add_blocks', __('Save', 'blocks'), array('class' => 'btn btn-default')). + Form::submit('add_blocks', __('Save', 'blocks'), array('class' => 'btn btn-primary')).Html::nbsp(2). + Html::anchor(__('Cancel', 'blocks'), 'index.php?id=blocks', array('title' => __('Cancel', 'blocks'), 'class' => 'btn btn-default')). Form::close() ); diff --git a/plugins/box/blocks/views/backend/edit.view.php b/plugins/box/blocks/views/backend/edit.view.php index 8ae2307..402b72d 100644 --- a/plugins/box/blocks/views/backend/edit.view.php +++ b/plugins/box/blocks/views/backend/edit.view.php @@ -29,7 +29,8 @@ echo ( Html::br(). Form::submit('edit_blocks_and_exit', __('Save and Exit', 'blocks'), array('class' => 'btn btn-primary')).Html::nbsp(2). - Form::submit('edit_blocks', __('Save', 'blocks'), array('class' => 'btn btn-default')). Html::nbsp(). + Form::submit('edit_blocks', __('Save', 'blocks'), array('class' => 'btn btn-primary')). Html::nbsp(2). + Html::anchor(__('Cancel', 'blocks'), 'index.php?id=blocks', array('title' => __('Cancel', 'blocks'), 'class' => 'btn btn-default')). Form::close() ); diff --git a/plugins/box/menu/languages/en.lang.php b/plugins/box/menu/languages/en.lang.php index d80fc7f..b2138b5 100644 --- a/plugins/box/menu/languages/en.lang.php +++ b/plugins/box/menu/languages/en.lang.php @@ -23,5 +23,6 @@ 'Category' => 'Category', 'Select category' => 'Select category', 'Required field' => 'Required field', + 'Cancel' => 'Cancel', ) ); diff --git a/plugins/box/menu/views/backend/add.view.php b/plugins/box/menu/views/backend/add.view.php index dff1198..20f9bfc 100644 --- a/plugins/box/menu/views/backend/add.view.php +++ b/plugins/box/menu/views/backend/add.view.php @@ -55,7 +55,8 @@
'btn btn-primary')). + Form::submit('menu_add_item', __('Save', 'menu'), array('class' => 'btn btn-primary')).Html::nbsp(2). + Html::anchor(__('Cancel', 'menu'), 'index.php?id=menu', array('title' => __('Cancel', 'menu'), 'class' => 'btn btn-default')). Form::close() ); ?> diff --git a/plugins/box/menu/views/backend/edit.view.php b/plugins/box/menu/views/backend/edit.view.php index f034b19..d64a855 100644 --- a/plugins/box/menu/views/backend/edit.view.php +++ b/plugins/box/menu/views/backend/edit.view.php @@ -57,7 +57,8 @@
'btn btn-primary')). + Form::submit('menu_add_item', __('Save', 'menu'), array('class' => 'btn btn-primary')).Html::nbsp(2). + Html::anchor(__('Cancel', 'menu'), 'index.php?id=menu', array('title' => __('Cancel', 'menu'), 'class' => 'btn btn-default')). Form::close() ); ?> diff --git a/plugins/box/pages/languages/en.lang.php b/plugins/box/pages/languages/en.lang.php index 08fd0e5..5f131d4 100644 --- a/plugins/box/pages/languages/en.lang.php +++ b/plugins/box/pages/languages/en.lang.php @@ -50,5 +50,6 @@ 'Access' => 'Access', 'Public' => 'Public', 'Registered' => 'Registered', + 'Cancel' => 'Cancel', ) ); diff --git a/plugins/box/pages/views/backend/add.view.php b/plugins/box/pages/views/backend/add.view.php index 0c3f6ac..02e3a64 100644 --- a/plugins/box/pages/views/backend/add.view.php +++ b/plugins/box/pages/views/backend/add.view.php @@ -114,7 +114,8 @@ 'btn btn-primary')).Html::nbsp(2). - Form::submit('add_page', __('Save', 'pages'), array('class' => 'btn btn-default')) + Form::submit('add_page', __('Save', 'pages'), array('class' => 'btn btn-primary')).Html::nbsp(2). + Html::anchor(__('Cancel', 'pages'), 'index.php?id=pages', array('title' => __('Cancel', 'pages'), 'class' => 'btn btn-default')) ); ?> diff --git a/plugins/box/pages/views/backend/edit.view.php b/plugins/box/pages/views/backend/edit.view.php index 754cf39..47011a0 100644 --- a/plugins/box/pages/views/backend/edit.view.php +++ b/plugins/box/pages/views/backend/edit.view.php @@ -147,7 +147,8 @@ 'btn btn-primary')).Html::nbsp(2). - Form::submit('edit_page', __('Save', 'pages'), array('class' => 'btn btn-default')) + Form::submit('edit_page', __('Save', 'pages'), array('class' => 'btn btn-primary')).Html::nbsp(2). + Html::anchor(__('Cancel', 'pages'), 'index.php?id=pages', array('title' => __('Cancel', 'pages'), 'class' => 'btn btn-default')) ); ?> diff --git a/plugins/box/snippets/languages/en.lang.php b/plugins/box/snippets/languages/en.lang.php index 3ac63a1..38667bf 100644 --- a/plugins/box/snippets/languages/en.lang.php +++ b/plugins/box/snippets/languages/en.lang.php @@ -25,5 +25,6 @@ 'Embed Code' => 'Embed Code', 'Shortcode' => 'Shortcode', 'PHP Code' => 'PHP Code', + 'Cancel' => 'Cancel', ) ); diff --git a/plugins/box/snippets/views/backend/add.view.php b/plugins/box/snippets/views/backend/add.view.php index 579aba2..90ea9f3 100644 --- a/plugins/box/snippets/views/backend/add.view.php +++ b/plugins/box/snippets/views/backend/add.view.php @@ -31,7 +31,8 @@ echo ( Html::br(2). Form::submit('add_snippets_and_exit', __('Save and Exit', 'snippets'), array('class' => 'btn btn-primary')).Html::nbsp(2). - Form::submit('add_snippets', __('Save', 'snippets'), array('class' => 'btn btn-default')). + Form::submit('add_snippets', __('Save', 'snippets'), array('class' => 'btn btn-primary')).Html::nbsp(2). + Html::anchor(__('Cancel', 'snippets'), 'index.php?id=snippets', array('title' => __('Cancel', 'snippets'), 'class' => 'btn btn-default')). Form::close() ); ?> diff --git a/plugins/box/snippets/views/backend/edit.view.php b/plugins/box/snippets/views/backend/edit.view.php index 91c5b5c..7a637dd 100644 --- a/plugins/box/snippets/views/backend/edit.view.php +++ b/plugins/box/snippets/views/backend/edit.view.php @@ -34,7 +34,8 @@ Form::textarea('content', Html::toText($content), array('style' => 'width:100%;height:400px;', 'class' => 'source-editor form-control')). Html::br(2). Form::submit('edit_snippets_and_exit', __('Save and Exit', 'snippets'), array('class' => 'btn btn-primary')).Html::nbsp(2). - Form::submit('edit_snippets', __('Save', 'snippets'), array('class' => 'btn btn-default')). Html::nbsp(). + Form::submit('edit_snippets', __('Save', 'snippets'), array('class' => 'btn btn-primary')). Html::nbsp(2). + Html::anchor(__('Cancel', 'snippets'), 'index.php?id=snippets', array('title' => __('Cancel', 'snippets'), 'class' => 'btn btn-default')). Form::close() ); diff --git a/plugins/box/users/languages/en.lang.php b/plugins/box/users/languages/en.lang.php index b96718f..c6f5f2d 100644 --- a/plugins/box/users/languages/en.lang.php +++ b/plugins/box/users/languages/en.lang.php @@ -64,5 +64,6 @@ 'About Me' => 'About Me', 'Profile' => 'Profile', 'You are banned for 10 minutes. Try again later' => 'You are banned for 10 minutes. Try again later', + 'Cancel' => 'Cancel', ) ); diff --git a/plugins/box/users/views/backend/add.view.php b/plugins/box/users/views/backend/add.view.php index c4e7949..49f4f9a 100644 --- a/plugins/box/users/views/backend/add.view.php +++ b/plugins/box/users/views/backend/add.view.php @@ -54,7 +54,8 @@ 'btn btn-primary')). + Form::submit('register', __('Register', 'users'), array('class' => 'btn btn-primary')).Html::nbsp(2). + Html::anchor(__('Cancel', 'users'), 'index.php?id=users', array('title' => __('Cancel', 'users'), 'class' => 'btn btn-default')). Form::close() ); ?> diff --git a/plugins/box/users/views/backend/edit.view.php b/plugins/box/users/views/backend/edit.view.php index c6c57e8..ce35a80 100644 --- a/plugins/box/users/views/backend/edit.view.php +++ b/plugins/box/users/views/backend/edit.view.php @@ -96,7 +96,8 @@ echo ( Html::br(). - Form::submit('edit_profile', __('Save', 'users'), array('class' => 'btn btn-primary')). + Form::submit('edit_profile', __('Save', 'users'), array('class' => 'btn btn-primary')).Html::nbsp(2). + Html::anchor(__('Cancel', 'users'), 'index.php?id=users', array('title' => __('Cancel', 'users'), 'class' => 'btn btn-default')). Form::close() );