diff --git a/wcs/admin/forms.py b/wcs/admin/forms.py index 77fee5068..4ce189c28 100644 --- a/wcs/admin/forms.py +++ b/wcs/admin/forms.py @@ -174,7 +174,8 @@ class FormDefPage(Directory): ('workflow-variables', 'workflow_variables'), ('workflow-status-remapping', 'workflow_status_remapping'), 'roles', 'title', 'options', ('acl-read', 'acl_read'), - 'overwrite', 'qrcode', 'information'] + 'overwrite', 'qrcode', 'information', + ('public-url', 'public_url')] def __init__(self, component): try: @@ -384,11 +385,24 @@ class FormDefPage(Directory): if not self.formdef.is_disabled(): r += htmltext('
  • %s
  • ') % ( self.formdef.get_url(), _('Display Online')) + r += htmltext('
  • %s
  • ') % _('Display public URL') if qrcode is not None: r += htmltext('
  • %s
  • ') % _('Display QR Code') r += htmltext('') return r.getvalue() + def public_url(self): + self.html_top(title=self.formdef.name) + get_response().breadcrumb.append(('public-url', _('Public URL'))) + r = TemplateIO(html=True) + r += htmltext('

    %s

    ' % _('Public URL')) + r += htmltext('
    ') + r += htmltext('

    %s

    ') % _('The public URL of this form is:') + url = self.formdef.get_url() + r += htmltext('%s') % (url, url) + r += htmltext('
    ') + return r.getvalue() + def qrcode(self): self.html_top(title=self.formdef.name) get_response().breadcrumb.append(('qrcode', _('QR Code')))