[IMP] simplify template hierarchy and customization

bzr revid: fp@tinyerp.com-20131114183837-xlpmpy7znls9lycu
This commit is contained in:
Fabien Pinckaers 2013-11-14 19:38:37 +01:00
parent 2dbb8f1730
commit 5688c6082b
1 changed files with 29 additions and 24 deletions

View File

@ -9,29 +9,25 @@
</xpath>
</template>
<!-- Page -->
<template id="layout" name="Members Layout">
<template id="index" name="Members">
<t t-call="website.layout">
<t t-set="additional_title">Members</t>
<div id="wrap">
<div class="oe_structure"/>
<div class="oe_structure">
<section data-snippet-id="title">
<div class="container">
<div class="row">
<div class="col-md-12">
<h1 class="text-center">Our Members Directory</h1>
<h3 class="text-muted text-center">Find a business partner</h3>
</div>
</div>
</div>
</section>
</div>
<div class="container">
<div class="row">
<t t-raw="ref_content" />
</div>
</div>
<div class="oe_structure"/>
</div>
</t>
</template>
<template id="index" name="Members">
<t t-call="website_membership.layout">
<t t-set="ref_content">
<h1 class="col-md-12 text-center">
Looking for a partner?<br/>
<small>Find a member</small>
</h1>
<div class="col-md-4" id="left_column">
<ul class="nav nav-pills nav-stacked mt16">
<li class="nav-header"><h3>Associations</h3></li>
@ -79,11 +75,14 @@
</t>
</div>
</div>
</t>
</div>
</div>
<div class="oe_structure"/>
</div>
</t>
</template>
<!-- Option: index: Left Google Map -->
<template id="opt_index_country" name="Location"
inherit_option_id="website_membership.index" inherit_id="website_membership.index">
<xpath expr="//div[@id='left_column']/ul[last()]" position="after">
@ -114,11 +113,17 @@
</xpath>
</template>
<template id="partner" name="Partner Detail">
<t t-call="website_membership.layout">
<t t-set="ref_content">
<t t-call="website_partner.partner_detail"/>
</t>
<template id="partner" name="Members">
<t t-call="website.layout">
<div id="wrap">
<div class="oe_structure"/>
<div class="container">
<div class="row">
<t t-call="website_partner.partner_detail"/>
</div>
</div>
<div class="oe_structure"/>
</div>
</t>
</template>