Add 'value' to filesubmission template
This commit is contained in:
@@ -307,7 +307,7 @@ def filesubmission(element, value, status, render_template, msg=''):
|
||||
Upload a single file (e.g. for programming assignments)
|
||||
'''
|
||||
eid = element.get('id')
|
||||
context = { 'id': eid, 'state': status, 'msg': msg, }
|
||||
context = { 'id': eid, 'state': status, 'msg': msg, 'value': value, }
|
||||
html = render_template("filesubmission.html", context)
|
||||
return etree.XML(html)
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<section id="filesubmission_${id}" class="filesubmission">
|
||||
<input type="file" name="input_${id}" id="input_${id}" /><br />
|
||||
<input type="file" name="input_${id}" id="input_${id}" value="${value}" /><br />
|
||||
% if state == 'unsubmitted':
|
||||
<span class="unanswered" style="display:inline-block;" id="status_${id}"></span>
|
||||
% elif state == 'correct':
|
||||
|
||||
Reference in New Issue
Block a user