Commit 45d3205a authored by Nigel McNie's avatar Nigel McNie
Browse files

Descriptive help text for the template choosing page.

parent 77b88c37
......@@ -248,6 +248,9 @@ $string['noaccesstoview'] = 'You do not have permission to access this view';
$string['Template'] = 'Template';
$string['allowcopying'] = 'Allow copying';
$string['templatedescription'] = 'Check this box if you would like the people who can see your view to be able to make their own copies of it.';
$string['choosetemplatepagedescription'] = '<p>Here you can search through the Views that you are allowed to copy as a starting point for making a new View. You can see a preview of each View by clicking on its name. Once you have found the View you wish to copy, click the corresponding "Copy View" button to make a copy and begin customising it.</p>';
$string['choosetemplategrouppagedescription'] = '<p>Here you can search through the Views that this group is allowed to copy as a starting point for making a new View. You can see a preview of each View by clicking on its name. Once you have found the View you wish to copy, click the corresponding "Copy View" button to make a copy and begin customising it.</p><p><strong>Note:</strong> Groups cannot currently make copies of Blogs or Blog Posts.</p>';
$string['choosetemplateinstitutionpagedescription'] = '<p>Here you can search through the Views that this institution is allowed to copy as a starting point for making a new View. You can see a preview of each View by clicking on its name. Once you have found the View you wish to copy, click the corresponding "Copy View" button to make a copy and begin customising it.</p><p><strong>Note:</strong> Institutions cannot currently make copies of Blogs or Blog Posts.</p>';
$string['copiedblocksandartefactsfromtemplate'] = 'Copied %d blocks and %d artefacts from %s';
$string['filescopiedfromviewtemplate'] = 'Files copied from %s';
$string['viewfilesdirname'] = 'viewfiles';
......
......@@ -2,6 +2,7 @@
{include file="columnfullstart.tpl"}
<h2>{$heading}</h2>
{$helptext}
<div id="copyview">
<div id="templatesearch" class="searchlist">
......
......@@ -54,12 +54,15 @@ $views->limit = param_integer('viewlimit', 10);
$views->copyableby = (object) array('group' => $group, 'institution' => $institution, 'owner' => null);
if ($group) {
$views->group = $group;
$helptext = get_string('choosetemplategrouppagedescription', 'view');
}
else if ($institution) {
$views->institution = $institution;
$helptext = get_string('choosetemplateinstitutionpagedescription', 'view');
}
else {
$views->copyableby->owner = $USER->get('id');
$helptext = get_string('choosetemplatepagedescription', 'view');
}
View::get_templatesearch_data($views);
......@@ -137,6 +140,7 @@ $smarty = smarty(
);
$smarty->assign('INLINEJAVASCRIPT', $js);
$smarty->assign('heading', TITLE);
$smarty->assign('helptext', $helptext);
$smarty->assign('views', $views);
$smarty->display('view/choosetemplate.tpl');
......
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