backoffice: add a bit of text and style to non validated files (#8947)

This commit is contained in:
Frédéric Péters 2015-11-11 18:36:15 +01:00
parent 4f80ae3bfc
commit b73d34032e
2 changed files with 12 additions and 1 deletions

View File

@ -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']:

View File

@ -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;
}