Commit 54d8a7e4 authored by Son Nguyen's avatar Son Nguyen Committed by Gerrit Code Review
Browse files

Merge "Adjusting some delete pages to be like the others (Bug 1467339)"

parents d84880fb 1019a6b0
......@@ -46,7 +46,7 @@ else if (!empty($institutionname)) {
else {
define('MENUITEM', 'myportfolio/collection');
}
define('TITLE', get_string('deletespecifiedcollection', 'collection', $collection->get('name')));
define('TITLE', $collection->get('name'));
$baseurl = get_config('wwwroot') . 'collection/index.php';
if ($urlparams) {
......@@ -73,6 +73,7 @@ $form = pieform(array(
$smarty = smarty();
$smarty->assign('PAGEHEADING', TITLE);
$smarty->assign('subheading', get_string('deletespecifiedcollection', 'collection', $collection->get('name')));
$smarty->assign('message', get_string('collectionconfirmdelete', 'collection'));
$smarty->assign('form', $form);
$smarty->display('collection/delete.tpl');
......
......@@ -57,7 +57,8 @@ $form = pieform(array(
));
$smarty = smarty();
$smarty->assign('PAGEHEADING', get_string('deletespecifiedskin', 'skin', $skin->get('title')));
$smarty->assign('PAGEHEADING', $skin->get('title'));
$smarty->assign('subheading', get_string('deletespecifiedskin','skin', $skin->get('title')));
$smarty->assign('safemessage', (($numberofpagesuseskin > 0) ? get_string('deleteskinusedinpages', 'skin', $numberofpagesuseskin) . '<br/>' : '') . get_string('deleteskinconfirm', 'skin'));
$smarty->assign('form', $form);
$smarty->display('skin/delete.tpl');
......
{include file="header.tpl"}
<div class="panel panel-danger mtxl">
<h2 class="panel-heading">{str tag=delete}</h2>
<h2 class="panel-heading">{$subheading}</h2>
<div class="panel-body">
<p>{$message}</p>
{$form|safe}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment