Commit c738db55 authored by Tomáš Peterka's avatar Tomáš Peterka Committed by Eteri

[renderjs_ui] Show even empty sections in action/export pages

/reviewed-on nexedi/erp5!403
parent ce5c21fc
......@@ -21,7 +21,6 @@
<script src="gadget_erp5_page_action.js" type="text/javascript"></script>
<script id="table-template" type="text/x-handlebars-template">
{{#if document_list}}
<section class="ui-content-header-plain">
<h3 class="ui-content-title ui-body-c" data-i18n="[last]{{definition_i18n}}">
<span class="ui-icon ui-icon-custom ui-icon-{{definition_icon}}">&nbsp;</span>
......@@ -33,7 +32,6 @@
<li><a data-i18n="{{title}}" class="ui-body-inherit" href="{{link}}">{{title}}</a></li>
{{/each}}
</ul>
{{/if}}
</script>
</head>
......
......@@ -234,7 +234,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>962.2510.60629.41284</string> </value>
<value> <string>962.12737.42441.36300</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>1505825378.79</float>
<float>1505910372.49</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -20,7 +20,6 @@
<script src="gadget_erp5_page_export.js" type="text/javascript"></script>
<script id="table-template" type="text/x-handlebars-template">
{{#if document_list}}
<section class="ui-content-header-plain">
<h3 class="ui-content-title ui-body-c" data-i18n="[last]{{definition_i18n}}">
<span class="ui-icon ui-icon-custom ui-icon-{{definition_icon}}">&nbsp;</span>
......@@ -32,7 +31,6 @@
<li><a data-i18n="{{title}}" class="ui-body-inherit" href="{{link}}">{{title}}</a></li>
{{/each}}
</ul>
{{/if}}
</script>
</head>
......
......@@ -234,7 +234,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>962.2810.61354.60074</string> </value>
<value> <string>962.12738.19263.46301</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>1505825417.57</float>
<float>1505910576.07</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -45,11 +45,18 @@
<td>//div[@data-gadget-url='${base_url}/web_site_module/renderjs_runner/gadget_erp5_page_action.html']</td>
<td></td>
</tr>
<!-- Test that BOTH sections "Actions" and "Workflow-Transitions" are present
even though Workflow is empty in this case -->
<tr>
<td>assertTextPresent</td>
<td>Actions</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Workflow-Transitions</td>
<td></td>
</tr>
</tbody></table>
</body>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment