0001-backoffice-rename-management-in-pending-forms-7048.patch
tests/test_backoffice_pages.py | ||
---|---|---|
109 | 109 |
create_superuser(pub) |
110 | 110 |
app = login(get_app(pub)) |
111 | 111 |
resp = app.get('/backoffice/') |
112 |
assert 'Management' in resp.body
|
|
112 |
assert 'Pending Forms' in resp.body
|
|
113 | 113 | |
114 | 114 |
def test_backoffice_forms(pub): |
115 | 115 |
create_superuser(pub) |
... | ... | |
118 | 118 |
# 1st time with user not handling those forms |
119 | 119 |
app = login(get_app(pub)) |
120 | 120 |
resp = app.get('/backoffice/') |
121 |
resp = resp.click('Management', index=0)
|
|
121 |
resp = resp.click('Pending Forms', index=0)
|
|
122 | 122 |
assert not 'Forms in your care' in resp.body |
123 | 123 |
assert re.findall('Other Forms.*form-title', resp.body) |
124 | 124 | |
... | ... | |
126 | 126 |
create_environment(set_receiver=True) |
127 | 127 |
app = login(get_app(pub)) |
128 | 128 |
resp = app.get('/backoffice/') |
129 |
resp = resp.click('Management', index=0)
|
|
129 |
resp = resp.click('Pending Forms', index=0)
|
|
130 | 130 |
assert 'Forms in your care' in resp.body |
131 | 131 |
assert '17 open on 50' in resp.body |
132 | 132 |
wcs/backoffice/root.py | ||
---|---|---|
255 | 255 |
workflows = wcs.admin.workflows.WorkflowsDirectory() |
256 | 256 | |
257 | 257 |
menu_items = [ |
258 |
('management', N_('Management')),
|
|
258 |
('management', N_('Pending Forms')),
|
|
259 | 259 |
('forms/', N_('Forms Workshop')), |
260 | 260 |
('workflows/', N_('Workflows Workshop')), |
261 | 261 |
('users/', N_('Users')), |
... | ... | |
372 | 372 |
return r.getvalue() |
373 | 373 | |
374 | 374 |
def management(self): |
375 |
get_response().breadcrumb.append(('management', _('Management')))
|
|
376 |
html_top('management', _('Management'))
|
|
375 |
get_response().breadcrumb.append(('management', _('Pending Forms')))
|
|
376 |
html_top('management', _('Pending Forms'))
|
|
377 | 377 |
get_response().filter['sidebar'] = self.get_sidebar() |
378 | 378 |
r = TemplateIO(html=True) |
379 | 379 | |
380 |
- |