Commit d32c878c authored by Yoshinori Okuji's avatar Yoshinori Okuji

Do not show tables if empty.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@545 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4a245e18
...@@ -42,7 +42,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ...@@ -42,7 +42,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
<span tal:define="groups python: form.get_groups(include_empty=1); <span tal:define="groups python: form.get_groups(include_empty=1);
field_errors python: request.get('field_errors',{}); field_errors python: request.get('field_errors',{});
dummy python: request.set('here',here)"> dummy python: request.set('here',here)">
<table class="Border" width="100%"> <table class="Border" width="100%" tal:condition="python:len(form.get_fields_in_group(groups[0])) > 0
or len(form.get_fields_in_group(groups[1])) > 0">
<tr> <tr>
<td> <td>
<table> <table>
...@@ -152,7 +153,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ...@@ -152,7 +153,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
</td></tr> </td></tr>
</table> </table>
<table class="Border" tal:condition="python: len(groups)>2"> <table class="Border" tal:condition="python: len(groups)>2 and
len(form.get_fields_in_group(groups[2])) > 0">
<td> <td>
<table width="100%"> <table width="100%">
<span tal:repeat="field python:form.get_fields_in_group(groups[2])"> <span tal:repeat="field python:form.get_fields_in_group(groups[2])">
......
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