";
// Check if the record can be restored
if (!empty($id))
@@ -335,7 +338,7 @@ class admin_history_form_ui extends e_admin_form_ui
$type = $row['history_action'];
$name = ($type === 'delete') ? "restore_deleted[$id]" : "restore_updated[$id]";
- $text .= "
";
+ $text .= "
";
}
$att['readParms']['editClass'] = 999; // disable it.
@@ -385,5 +388,5 @@ require_once(e_ADMIN."auth.php");
e107::getAdminUI()->runPage();
require_once(e_ADMIN."footer.php");
-exit;
+
diff --git a/e107_core/templates/admin_icons_template.php b/e107_core/templates/admin_icons_template.php
index 14d228f9e..991b9b591 100644
--- a/e107_core/templates/admin_icons_template.php
+++ b/e107_core/templates/admin_icons_template.php
@@ -148,11 +148,11 @@ $ADMIN_ICONS_TEMPLATE['ADMIN_DELETE_ICON_PATH'] = e_IMAGE_ABS . "admin_image
$ADMIN_ICONS_TEMPLATE['ADMIN_WARNING_ICON_PATH'] = e_IMAGE_ABS . "admin_images/warning_32.png";
-$ADMIN_ICONS_TEMPLATE['ADMIN_EDIT_ICON'] = "
"; // "
";
-$ADMIN_ICONS_TEMPLATE['ADMIN_DELETE_ICON'] = "
"; // "
";
-$ADMIN_ICONS_TEMPLATE['ADMIN_SORT_ICON'] = "
"; //
-$ADMIN_ICONS_TEMPLATE['ADMIN_EXECUTE_ICON'] = "
"; // "
";
-$ADMIN_ICONS_TEMPLATE['ADMIN_PAGES_ICON'] = "
"; //"
";
+$ADMIN_ICONS_TEMPLATE['ADMIN_EDIT_ICON'] = "
"; // "
";
+$ADMIN_ICONS_TEMPLATE['ADMIN_DELETE_ICON'] = "
"; // "
";
+$ADMIN_ICONS_TEMPLATE['ADMIN_SORT_ICON'] = "
"; //
+$ADMIN_ICONS_TEMPLATE['ADMIN_EXECUTE_ICON'] = "
"; // "
";
+$ADMIN_ICONS_TEMPLATE['ADMIN_PAGES_ICON'] = "
"; //"
";
$ADMIN_ICONS_TEMPLATE['E_32_TRUE'] = "
";
diff --git a/e107_handlers/form_handler.php b/e107_handlers/form_handler.php
index ae2c6ddf2..f7a178d81 100644
--- a/e107_handlers/form_handler.php
+++ b/e107_handlers/form_handler.php
@@ -5301,7 +5301,7 @@ var_dump($select_options);*/
$att = [
'href' => e_SELF . "?$query",
- 'class' => "btn btn-default btn-secondary$eModal",
+ 'class' => "btn btn-default btn-primary$eModal",
'data-modal-caption' => $eModalCap,
'title' => LAN_EDIT,
// 'data-toggle' => 'tooltip',
@@ -5324,7 +5324,7 @@ var_dump($select_options);*/
if(check_class($cls))
{
- $parms['class'] = 'action delete btn btn-default'.$delcls;
+ $parms['class'] = 'action delete btn btn-danger'.$delcls;
unset($parms['deleteClass']);
$parms['icon'] = $deleteIconDefault;
$text .= $this->submit_image('etrigger_delete['.$id.']', $id, 'delete', LAN_DELETE.' [ ID: '.$id.' ]', $parms);
@@ -5332,7 +5332,7 @@ var_dump($select_options);*/
}
else
{
- $parms['class'] = 'action delete btn btn-default'.$delcls;
+ $parms['class'] = 'action delete btn btn-danger'.$delcls;
$parms['icon'] = $deleteIconDefault;
$text .= $this->submit_image('etrigger_delete['.$id.']', $id, 'delete', LAN_DELETE.' [ ID: '.$id.' ]', $parms);
}
diff --git a/e107_images/admin_images/undo_16.png b/e107_images/admin_images/undo_16.png
new file mode 100644
index 000000000..90377a0dd
Binary files /dev/null and b/e107_images/admin_images/undo_16.png differ
diff --git a/e107_images/admin_images/undo_32.png b/e107_images/admin_images/undo_32.png
new file mode 100644
index 000000000..90377a0dd
Binary files /dev/null and b/e107_images/admin_images/undo_32.png differ
diff --git a/e107_tests/tests/unit/e107Test.php b/e107_tests/tests/unit/e107Test.php
index eb2069bd7..b807921ed 100644
--- a/e107_tests/tests/unit/e107Test.php
+++ b/e107_tests/tests/unit/e107Test.php
@@ -1048,27 +1048,28 @@ class e107Test extends \Codeception\Test\Unit
'ADMIN_WARNING_ICON' => '
',
'ADMIN_GRID_ICON' => '
',
'ADMIN_LIST_ICON' => '
',
- 'ADMIN_EDIT_ICON' => '
',
- 'ADMIN_DELETE_ICON' => '
',
- 'ADMIN_SORT_ICON' => '
',
- 'ADMIN_EXECUTE_ICON' => '
',
- 'ADMIN_PAGES_ICON' => '
',
+ 'ADMIN_EDIT_ICON' => "
",
+ 'ADMIN_DELETE_ICON' => "
",
+ 'ADMIN_SORT_ICON' => "
",
+ 'ADMIN_EXECUTE_ICON' => "
",
+ 'ADMIN_PAGES_ICON' => "
",
'ADMIN_ADD_ICON' => '
',
'ADMIN_INFO_ICON' => '
',
- 'ADMIN_CONFIGURE_ICON' => '
',
- 'ADMIN_VIEW_ICON' => '
',
+ 'ADMIN_CONFIGURE_ICON' => "
",
+ 'ADMIN_VIEW_ICON' => "
",
'ADMIN_URL_ICON' => '
',
'ADMIN_INSTALLPLUGIN_ICON' => '
',
- 'ADMIN_UNINSTALLPLUGIN_ICON' => '
',
- 'ADMIN_UPGRADEPLUGIN_ICON' => '
',
- 'ADMIN_REPAIRPLUGIN_ICON' => '
',
- 'ADMIN_UP_ICON' => '
',
- 'ADMIN_DOWN_ICON' => '
',
+ 'ADMIN_UNINSTALLPLUGIN_ICON' => "
",
+ 'ADMIN_UPGRADEPLUGIN_ICON' => "
",
+ 'ADMIN_REPAIRPLUGIN_ICON' => "
",
+ 'ADMIN_UP_ICON' => "
",
+ 'ADMIN_DOWN_ICON' => "
",
'ADMIN_EDIT_ICON_PATH' => '/e107_images/admin_images/edit_32.png',
'ADMIN_DELETE_ICON_PATH' => '/e107_images/admin_images/delete_32.png',
'ADMIN_WARNING_ICON_PATH' => '/e107_images/admin_images/warning_32.png',
'E_24_PLUGIN' => "
",
-
+ 'E_16_UNDO' => "

",
+ 'E_32_UNDO' => "

"
);
diff --git a/e107_tests/tests/unit/e_navigationTest.php b/e107_tests/tests/unit/e_navigationTest.php
index 43a736a59..1d9ef76b0 100644
--- a/e107_tests/tests/unit/e_navigationTest.php
+++ b/e107_tests/tests/unit/e_navigationTest.php
@@ -98,6 +98,15 @@
5 => '
',
6 => '
',
),
+ 9 => array (
+ 0 => './e107_admin/history.php',
+ 1 => 'History',
+ 2 => 'History',
+ 3 => '7',
+ 4 => 4,
+ 5 => '

',
+ 6 => '

'
+ ),
10 =>
array (
0 => '/e107_admin/frontpage.php',
diff --git a/e107_themes/bootstrap3/admin_style.css b/e107_themes/bootstrap3/admin_style.css
index 1c67fd6e4..f8389a6d6 100644
--- a/e107_themes/bootstrap3/admin_style.css
+++ b/e107_themes/bootstrap3/admin_style.css
@@ -254,7 +254,7 @@ td .file.well { margin-bottom:0 }
-td.options .btn-group { display: flex; }
+td.options .btn-group { display: flex; justify-content: center; }
.table .nav-tabs a,
@@ -632,6 +632,7 @@ i.s-message-icon {
width:32px;
height:32px;
float:left;
+ line-height: 28px;
}
i.s-message-success { background-position: -592px -37px; width: 32px; height: 32px; }