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