From 2117e71578c9f705e7158b9c0aeab875bc74e527 Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Wed, 7 Nov 2018 11:40:22 -0300 Subject: [PATCH] Improve in UI, Bug fixes uploading profile pictures --- .gitignore | 1 + bl-kernel/admin/controllers/new-category.php | 2 +- bl-kernel/admin/themes/booty/init.php | 6 +- bl-kernel/admin/views/content.php | 19 +- bl-kernel/admin/views/edit-category.php | 27 +- bl-kernel/admin/views/edit-content.php | 12 +- bl-kernel/admin/views/edit-user.1.php | 277 ------------------- bl-kernel/admin/views/edit-user.php | 150 +++++----- bl-kernel/admin/views/new-category.php | 35 ++- bl-kernel/admin/views/new-content.php | 10 +- bl-kernel/admin/views/new-user.php | 23 +- bl-kernel/admin/views/plugins-position.php | 28 +- bl-kernel/admin/views/users.php | 2 + bl-kernel/functions.php | 8 +- bl-kernel/user.class.php | 5 + 15 files changed, 179 insertions(+), 426 deletions(-) delete mode 100644 bl-kernel/admin/views/edit-user.1.php diff --git a/.gitignore b/.gitignore index bca667e1..b0ec503e 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,4 @@ bl-themes/grayscale bl-themes/massively bl-themes/hyperspace bl-themes/striped +bl-themes/log diff --git a/bl-kernel/admin/controllers/new-category.php b/bl-kernel/admin/controllers/new-category.php index 22ac496f..c60220d6 100644 --- a/bl-kernel/admin/controllers/new-category.php +++ b/bl-kernel/admin/controllers/new-category.php @@ -19,7 +19,7 @@ checkRole(array('admin')); // ============================================================================ if ($_SERVER['REQUEST_METHOD'] == 'POST') { - if (createCategory($_POST['category'])) { + if (createCategory($_POST)) { Redirect::page('categories'); } } diff --git a/bl-kernel/admin/themes/booty/init.php b/bl-kernel/admin/themes/booty/init.php index d3a6f0fb..9ef973f1 100644 --- a/bl-kernel/admin/themes/booty/init.php +++ b/bl-kernel/admin/themes/booty/init.php @@ -24,8 +24,8 @@ return <<$modalText

@@ -180,7 +180,7 @@ EOF; } $html .= '
'; - $html .= ''; + $html .= ''; if (isset($args['tip'])) { $html .= ''.$args['tip'].''; } diff --git a/bl-kernel/admin/views/content.php b/bl-kernel/admin/views/content.php index f11bea79..4d46bf61 100644 --- a/bl-kernel/admin/views/content.php +++ b/bl-kernel/admin/views/content.php @@ -236,15 +236,16 @@ function table($type) {
-'jsdeletePageModal', - 'modalTitle'=>$L->g('Delete content'), - 'modalText'=>$L->g('Are you sure you want to delete this page'), - 'buttonPrimary'=>$L->g('Delete'), - 'buttonPrimaryClass'=>'deletePageModalAcceptButton', - 'buttonSecondary'=>$L->g('Cancel'), - 'buttonSecondaryClass'=>'' -)); +$L->g('Delete'), + 'buttonPrimaryClass'=>'btn-danger jsbuttonDeleteAccept', + 'buttonSecondary'=>$L->g('Cancel'), + 'buttonSecondaryClass'=>'btn-secondary', + 'modalTitle'=>$L->g('Delete content'), + 'modalText'=>$L->g('Are you sure you want to delete this page'), + 'modalId'=>'jsdeletePageModal' + )); ?> diff --git a/bl-kernel/admin/views/edit-user.php b/bl-kernel/admin/views/edit-user.php index 206e7975..68a9b94f 100644 --- a/bl-kernel/admin/views/edit-user.php +++ b/bl-kernel/admin/views/edit-user.php @@ -1,23 +1,26 @@ -$L->g('Edit user'), 'icon'=>'person')); ?> +'jsform', 'class'=>'tab-content')); ?> -