myspace: add links to remove drafts
This commit is contained in:
parent
d7fdac8e32
commit
af07217dfb
|
@ -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 = {}
|
||||
|
|
Reference in New Issue