backoffice: add links to form and workflow pages from inspect view (#20755)
This changes title markup to use standard gadjo #appbar to have those links right aligned next to the title.
This commit is contained in:
parent
ad6849f523
commit
996fe47892
|
@ -2135,8 +2135,15 @@ class FormBackOfficeStatusPage(FormStatusPage):
|
|||
get_response().breadcrumb.append(('inspect', _('Form Inspector')))
|
||||
self.html_top(self.formdef.name)
|
||||
r = TemplateIO(html=True)
|
||||
r += htmltext('<div class="bo-block">')
|
||||
r += htmltext('<div id="appbar">')
|
||||
r += htmltext('<h2>%s</h2>') % _('Form Inspector')
|
||||
if get_publisher().get_backoffice_root().is_accessible('forms'):
|
||||
r += htmltext(' <a href="../../../forms/%s/">%s</a>') % (
|
||||
self.formdef.id, _('Form Definition'))
|
||||
if get_publisher().get_backoffice_root().is_accessible('workflows'):
|
||||
r += htmltext(' <a href="../../../workflows/%s/">%s</a>') % (
|
||||
self.formdef.workflow.id, _('Workflow Definition'))
|
||||
r += htmltext('</div>')
|
||||
r += htmltext('<ul class="biglist form-inspector">')
|
||||
r += htmltext(' <li><h3>%s</h3></li>') % _('Substitution variables')
|
||||
substvars = self.filled.get_substitution_variables()
|
||||
|
@ -2179,7 +2186,6 @@ class FormBackOfficeStatusPage(FormStatusPage):
|
|||
r += htmltext('<li><span class="status">%s</span></li>') % _('Unknown')
|
||||
|
||||
r += htmltext('</ul>')
|
||||
r += htmltext('</div>')
|
||||
return r.getvalue()
|
||||
|
||||
|
||||
|
|
|
@ -1538,7 +1538,7 @@ ul.form-inspector li span.status {
|
|||
|
||||
ul.form-inspector li div.value {
|
||||
display: block;
|
||||
padding: 0 0 0.5ex 1em;
|
||||
padding: 0 0 0 1em;
|
||||
float: right;
|
||||
width: 70%;
|
||||
}
|
||||
|
@ -1546,6 +1546,8 @@ ul.form-inspector li div.value {
|
|||
ul.form-inspector li div.value span.type {
|
||||
font-size: 80%;
|
||||
color: #aaa;
|
||||
padding-left: 1em;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
ul#evolutions li div.msg li {
|
||||
|
|
Loading…
Reference in New Issue