summaryrefslogtreecommitdiff
path: root/addons/web_mobile/static/src/xml/web_mobile.xml
diff options
context:
space:
mode:
authorBhumi Thakkar (Open ERP) <bth@tinyerp.com>2011-10-19 12:26:44 +0530
committerBhumi Thakkar (Open ERP) <bth@tinyerp.com>2011-10-19 12:26:44 +0530
commit9ce3447d884fd6e03a78a65134c35e9b5bd178ee (patch)
treed065e60714649a09b82d88f36a785a71fcc39294 /addons/web_mobile/static/src/xml/web_mobile.xml
parent4c15f26980f6ef312e00915c05411f8d326453ec (diff)
[IMP] When result is null then displayed message in listview for no any records found and filter is hide.
bzr revid: bth@tinyerp.com-20111019065644-nalzsdy6k0klb7jb
Diffstat (limited to 'addons/web_mobile/static/src/xml/web_mobile.xml')
-rw-r--r--addons/web_mobile/static/src/xml/web_mobile.xml19
1 files changed, 12 insertions, 7 deletions
diff --git a/addons/web_mobile/static/src/xml/web_mobile.xml b/addons/web_mobile/static/src/xml/web_mobile.xml
index 775ac90c66c..f395600ae73 100644
--- a/addons/web_mobile/static/src/xml/web_mobile.xml
+++ b/addons/web_mobile/static/src/xml/web_mobile.xml
@@ -132,13 +132,18 @@
<t t-name="ListView">
<t t-call="Header" />
<div id="content" data-role="content">
- <ul data-role="listview" data-inset="true" data-theme="d" data-filter="true">
- <li data-theme="c" t-foreach="records" t-as="record">
- <a id="list-id" t-att-data-id="record[0]" href="#">
- <t t-esc="record[1]"/>
- </a>
- </li>
- </ul>
+ <t t-if="!(records.length>0)">
+ No one record is created
+ </t>
+ <t t-if="records.length>0">
+ <ul data-role="listview" data-inset="true" data-theme="d" data-filter="true">
+ <li data-theme="c" t-foreach="records" t-as="record">
+ <a id="list-id" t-att-data-id="record[0]" href="#">
+ <t t-esc="record[1]"/>
+ </a>
+ </li>
+ </ul>
+ </t>
</div>
<t t-call="Footer" />
</t>