Commit d5011a73 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Disable some of the edit, delete view controls for views that have

been submitted
parent 3b88e51e
......@@ -63,14 +63,16 @@ function title(r, communities) {
var del = INPUT({'type':'button','value':{$getstring['delete']}});
del.onclick = function () { submitform(r.id, 'delete'); };
if (r.submittedto) {
var buttons = [editaccess];
var assess = get_string('viewsubmittedto', r.submittedto);
}
else {
var buttons = [editinfo,edit,editaccess,del];
var assess = assessselect(r.id,communities);
}
var f = FORM({'id':('form'+r.id),'method':'post','enctype':'multipart/form-data',
'encoding':'multipart/form-data','onsubmit':"return formsubmit('"+r.id+"');"},
DIV(null,[editinfo,edit,editaccess,del]),
DIV(null,buttons),
DIV(null,assess));
return [TD({'style':'font-size: 110%;'},A({'href':'view.php?id='+r.id},r.title)),
TD(null,f)];
......
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