Commit 5ee7fe59 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Clean up view submitted message

parent 64b7e234
......@@ -211,6 +211,7 @@ $string['editviewinformation'] = 'Edit View Information';
$string['myviews'] = 'My Views';
$string['submitview'] = 'Submit View';
$string['viewdeleted'] = 'View deleted';
$string['viewsubmittedto'] = 'This view has been submitted to %s';
// view user
$string['fullname'] = 'Full name';
......
......@@ -30,7 +30,7 @@ require(dirname(dirname(__FILE__)) . '/init.php');
$wwwroot = get_config('wwwroot');
$strings = array('accessstartdate', 'accessenddate', 'artefacts', 'delete', 'description',
'editaccess', 'editview', 'editviewinformation', 'submitted', 'submittedto',
'editaccess', 'editview', 'editviewinformation', 'submitted',
'submitview', 'submitviewquestion', 'unknownerror');
$getstring = array();
foreach ($strings as $string) {
......@@ -65,7 +65,7 @@ function title(r, communities) {
var del = INPUT({'type':'button','value':{$getstring['delete']}});
del.onclick = function () { submitform(r.id, 'delete'); };
if (r.submittedto) {
var assess = {$getstring['submitted']} + ': ' + r.submittedto;
var assess = get_string('viewsubmittedto', r.submittedto);
}
else {
var assess = assessselect(r.id,communities);
......@@ -193,7 +193,7 @@ viewlist.updateOnLoad();
JAVASCRIPT;
$smarty = smarty(array('tablerenderer'));
$smarty = smarty(array('tablerenderer'), array(), array('viewsubmittedto'));
$smarty->assign('site_menu', site_menu());
$smarty->assign('searchform', searchform());
$smarty->assign('INLINEJAVASCRIPT', $javascript);
......
Supports Markdown
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