[IMP] no delivery proposition if none available

bzr revid: fp@openerp.com-20131116224442-f6xat1zd064iog4y
This commit is contained in:
Fabien Pinckaers 2013-11-16 23:44:42 +01:00
parent b61ac1998e
commit 8ee465ef17
1 changed files with 13 additions and 11 deletions

View File

@ -8,17 +8,19 @@
</xpath>
<xpath expr="//div[@id='js_payment']" position="before">
<p>Choose Your Delivery method:</p>
<ul class="list-unstyled">
<li t-foreach="deliveries" t-as="delivery">
<label>
<input t-att-value="delivery.id" type="radio" name="delivery_type"/>
<span t-field="delivery.name"/>
<span class="badge" t-field="delivery.price"/>
<!-- TODO: add monetary widget -->
</label>
</li>
</ul>
<t t-if="len(deliveries)">
<p>Choose Your Delivery method:</p>
<ul class="list-unstyled">
<li t-foreach="deliveries" t-as="delivery">
<label>
<input t-att-value="delivery.id" type="radio" name="delivery_type"/>
<span t-field="delivery.name"/>
<span class="badge" t-field="delivery.price"/>
<!-- TODO: add monetary widget -->
</label>
</li>
</ul>
</t>
</xpath>
</template>