myspace: add links to remove drafts

This commit is contained in:
Frédéric Péters 2015-01-19 16:03:37 +01:00
parent d7fdac8e32
commit af07217dfb
1 changed files with 5 additions and 1 deletions

View File

@ -88,10 +88,14 @@ class FormsRootDirectory(wcs.forms.root.RootDirectory):
r += htmltext('<h4 id="drafts">%s</h4>') % _('My Current Drafts')
r += htmltext('<ul>')
for f in draft:
r += htmltext('<li><a href="%s%s/%s/%s">%s</a>, %s</li>') % (base_url,
r += htmltext('<li><a href="%s%s/%s/%s">%s</a>, %s') % (base_url,
f.formdef.category.url_name,
f.formdef.url_name, f.id, f.formdef.name,
misc.localstrftime(f.receipt_time))
r += htmltext(' (<a href="%s%s/%s/%s?remove-draft">%s</a>)') % (base_url,
f.formdef.category.url_name,
f.formdef.url_name, f.id, _('delete'))
r += htmltext('</li>')
r += htmltext('</ul>')
forms_by_status_name = {}