From 3ee7a38cb88328299f70454131d0be4910068530 Mon Sep 17 00:00:00 2001 From: jmontoyaa Date: Wed, 26 Oct 2016 13:59:50 +0200 Subject: [PATCH] Fix form UI see #1478 --- main/admin/grade_models.php | 13 ++++++------- main/inc/lib/grade_model.lib.php | 17 +++++++++-------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/main/admin/grade_models.php b/main/admin/grade_models.php index 755feacc85..d31cfd04b1 100755 --- a/main/admin/grade_models.php +++ b/main/admin/grade_models.php @@ -13,7 +13,7 @@ $this_section = SECTION_PLATFORM_ADMIN; api_protect_admin_script(); if (api_get_setting('gradebook_enable_grade_model') != 'true') { - api_not_allowed(); + api_not_allowed(true); } //Add the JS needed to use the jqgrid @@ -38,8 +38,8 @@ if ($action === 'add') { } $htmlHeadXtra[]= ''; -// The header. Display::display_header(); //jqgrid will use this URL to do the selects @@ -113,10 +112,10 @@ $extra_params['height'] = 'auto'; //With this function we can add actions to the jgrid (edit, delete, etc) $action_links = 'function action_formatter(cellvalue, options, rowObject) { - return \''.Display::return_icon('edit.png',get_lang('Edit'),'',ICON_SIZE_SMALL).''. - ' '.Display::return_icon('delete.png',get_lang('Delete'),'',ICON_SIZE_SMALL).''. - '\'; - }'; + return \''.Display::return_icon('edit.png',get_lang('Edit'),'',ICON_SIZE_SMALL).''. + ' '.Display::return_icon('delete.png',get_lang('Delete'),'',ICON_SIZE_SMALL).''. + '\'; +}'; ?>