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