0003-backoffice-display-note-about-endpoint-situation-of-.patch
tests/admin_pages/test_workflow.py | ||
---|---|---|
203 | 203 |
resp = resp.follow() |
204 | 204 |
assert Workflow.get(1).possible_status[0].visibility == ['_receiver'] |
205 | 205 | |
206 |
resp = resp.click('Change Terminal Status') |
|
206 |
assert 'This status has been automatically evaluated as being terminal.' in resp.text |
|
207 |
resp = resp.click('Force Terminal Status') |
|
207 | 208 |
resp.forms[0]['force_terminal_status'].checked = True |
208 | 209 |
resp = resp.forms[0].submit() |
209 | 210 |
assert resp.location == 'http://example.net/backoffice/workflows/1/status/1/' |
210 | 211 |
resp = resp.follow() |
211 | 212 |
assert Workflow.get(1).possible_status[0].forced_endpoint is True |
213 |
assert 'This status has been manually set to be considered as terminal.' in resp.text |
|
214 |
resp = resp.click('Unforce Terminal Status') |
|
215 |
resp.forms[0]['force_terminal_status'].checked = False |
|
216 |
resp = resp.forms[0].submit() |
|
217 |
assert resp.location == 'http://example.net/backoffice/workflows/1/status/1/' |
|
218 |
resp = resp.follow() |
|
212 | 219 | |
213 | 220 |
resp = resp.click('Change Display Settings') |
214 | 221 |
assert resp.forms[0]['colour'].value == 'FFFFFF' |
wcs/templates/wcs/backoffice/workflow-status.html | ||
---|---|---|
77 | 77 |
{% elif workflow.is_readonly %} |
78 | 78 |
<div class="infonotice"><p>{% trans "This workflow is readonly." %}</p></div> |
79 | 79 |
{% else %} |
80 | ||
81 |
{% if status.is_endpoint %} |
|
82 |
<div class="infonotice"> |
|
83 |
<p> |
|
84 |
{% if status.forced_endpoint %} |
|
85 |
{% trans "This status has been manually set to be considered as terminal." %} |
|
86 |
<br><a href="endpoint" rel="popup">{% trans "Unforce Terminal Status" %}</a> |
|
87 |
{% elif status.is_endpoint %} |
|
88 |
{% trans "This status has been automatically evaluated as being terminal." %} |
|
89 |
{% endif %} |
|
90 |
</p> |
|
91 |
</div> |
|
92 |
{% endif %} |
|
93 | ||
80 | 94 |
<ul id="sidebar-actions"> |
81 | 95 |
<li><a href="edit" rel="popup">{% trans "Change Status Name" %}</a></li> |
82 | 96 |
<li><a href="display" rel="popup">{% trans "Change Display Settings" %}</a></li> |
83 |
<li><a href="endpoint" rel="popup">{% trans "Change Terminal Status" %}</a></li> |
|
97 |
{% if not status.forced_endpoint %} |
|
98 |
<li><a href="endpoint" rel="popup">{% trans "Force Terminal Status" %}</a></li> |
|
99 |
{% endif %} |
|
84 | 100 |
<li><a href="backoffice-info-text" rel="popup">{% trans "Change Backoffice Information Text" %}</a></li> |
85 | 101 |
<li><a href="delete" rel="popup">{% trans "Delete" %}</a></li> |
86 | 102 |
</ul> |
87 |
- |