backoffice: add a bit of text and style to non validated files (#8947)
This commit is contained in:
parent
4f80ae3bfc
commit
b73d34032e
|
@ -553,9 +553,11 @@ class FormStatusPage(Directory):
|
|||
s = s.replace(str('[download]'), str('%sdownload' % form_url))
|
||||
r += s
|
||||
if status is not None and get_request().is_in_backoffice():
|
||||
if status is False:
|
||||
r += htmltext(' <span class="validation-status">%s</span>') % _('not validated')
|
||||
r += htmltext('<div class="file-validation">')
|
||||
if status:
|
||||
r += htmltext(_('<p>%s validated by %s on %s</p>')) % (
|
||||
r += htmltext('<p class="validation-status">%s</p>') % _('%s validated by %s on %s') % (
|
||||
status['label'], status['creator'], status['created'])
|
||||
r += htmltext('<ul>')
|
||||
for meta in status['metadata']:
|
||||
|
|
|
@ -1149,3 +1149,12 @@ div.user-pending-forms span.status {
|
|||
#statistics .criterias {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.invalid .validation-status {
|
||||
color: red;
|
||||
padding-left: 1ex;
|
||||
}
|
||||
|
||||
div.file-validation {
|
||||
margin-top: 1ex;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue