0001-backoffice-add-a-bit-of-text-and-style-to-non-valida.patch
wcs/forms/common.py | ||
---|---|---|
553 | 553 |
s = s.replace(str('[download]'), str('%sdownload' % form_url)) |
554 | 554 |
r += s |
555 | 555 |
if status is not None and get_request().is_in_backoffice(): |
556 |
if status is False: |
|
557 |
r += htmltext(' <span class="validation-status">%s</span>') % _('not validated') |
|
556 | 558 |
r += htmltext('<div class="file-validation">') |
557 | 559 |
if status: |
558 |
r += htmltext(_('<p>%s validated by %s on %s</p>')) % (
|
|
560 |
r += htmltext('<p class="validation-status">%s</p>') % _('%s validated by %s on %s') % (
|
|
559 | 561 |
status['label'], status['creator'], status['created']) |
560 | 562 |
r += htmltext('<ul>') |
561 | 563 |
for meta in status['metadata']: |
wcs/qommon/static/css/dc2/admin.css | ||
---|---|---|
1149 | 1149 |
#statistics .criterias { |
1150 | 1150 |
display: none; |
1151 | 1151 |
} |
1152 | ||
1153 |
.invalid .validation-status { |
|
1154 |
color: red; |
|
1155 |
padding-left: 1ex; |
|
1156 |
} |
|
1157 | ||
1158 |
div.file-validation { |
|
1159 |
margin-top: 1ex; |
|
1160 |
} |
|
1152 |
- |