Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
d5011a73
Commit
d5011a73
authored
Nov 27, 2006
by
Richard Mansfield
Browse files
Disable some of the edit, delete view controls for views that have
been submitted
parent
3b88e51e
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/view/index.php
View file @
d5011a73
...
...
@@ -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)];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment