2013-09-02 13:52:10 +00:00
<?xml version="1.0" encoding="utf-8"?>
<openerp >
2013-12-12 10:58:21 +00:00
<data >
2013-09-02 13:52:10 +00:00
2013-12-12 10:58:21 +00:00
<!-- Layout add nav and footer -->
<template id= "footer_custom" inherit_id= "website.layout" name= "Footer Associations Link" >
<xpath expr= "//footer//div[@name='info']/ul" position= "inside" >
2014-03-14 16:23:46 +00:00
<li > <a href= "/members" > Members</a> </li>
2013-12-12 10:58:21 +00:00
</xpath>
</template>
2013-09-02 13:52:10 +00:00
2013-12-12 10:58:21 +00:00
<template id= "index" name= "Members" >
<t t-call= "website.layout" >
<t t-set= "additional_title" > Members</t>
<div id= "wrap" >
<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>
2013-11-14 18:38:37 +00:00
</div>
</div>
2013-12-12 10:58:21 +00:00
</div>
</section>
</div>
<div class= "container" >
<div class= "row" >
2013-09-02 13:52:10 +00:00
2014-01-31 09:39:02 +00:00
<div class= "col-md-4 mb32" id= "left_column" >
2013-12-12 10:58:21 +00:00
<ul class= "nav nav-pills nav-stacked mt16" >
<li class= "nav-header" > <h3 > Associations</h3> </li>
2014-03-14 16:23:46 +00:00
<li t-att-class= "'' if membership else 'active'" > <a href= "/members" > All</a> </li>
2013-12-12 10:58:21 +00:00
<t t-foreach= "memberships" t-as= "membership_id" >
<li t-att-class= "membership and membership_id.id == membership.id and 'active' or ''" >
2014-03-17 06:14:19 +00:00
<a t-attf-href= "/members/association/#{ membership_id.id }#{current_country and '/country/%s' % slug(current_country) or ''}#{ search }" > <t t-esc= "membership_id.name" /> </a>
2013-12-12 10:58:21 +00:00
</li>
</t>
</ul>
</div>
<div class= "col-md-8" id= "ref_content" >
<div class= 'navbar' >
<t t-call= "website.pager" >
<t t-set= "classname" > pull-left</t>
</t>
2014-01-30 20:57:13 +00:00
<form action= "" method= "get" class= "navbar-search pull-right pagination form-inline" >
2013-12-12 10:58:21 +00:00
<div class= "form-group" >
<input type= "text" name= "name" class= "search-query col-md-2 mt4 form-control" placeholder= "Search" t-att-value= "post.get('name', '')" />
</div>
</form>
2013-10-07 14:53:22 +00:00
</div>
2013-12-12 10:58:21 +00:00
<div >
<t t-if= "not membership_lines" >
<p > No result found.</p>
</t>
<t t-foreach= "membership_lines" t-as= "membership_line_id" >
<t t-if= "current_membership_id != membership_line_id.membership_id.id" >
<t t-set= "current_membership_id" t-value= "membership_line_id.membership_id.id" />
<h3 class= "text-center" > <span t-field= "membership_line_id.membership_id" /> </h3>
2013-10-07 14:53:22 +00:00
</t>
2014-05-13 16:52:37 +00:00
<t t-set= "partner" t-value= "partners[membership_line_id.partner.id]" />
2014-01-31 09:39:02 +00:00
<div class= "media" >
2014-05-13 16:52:37 +00:00
<a class= "pull-left" t-attf-href= "/members/#{slug(partner)}"
t-field="partner.image_small"
t-field-options='{"widget": "image", "class": "media-object"}'
></a>
2013-12-12 10:58:21 +00:00
<div class= "media-body" style= "min-height: 64px;" >
2014-05-13 16:52:37 +00:00
<a class= "media-heading" t-attf-href= "/members/#{slug(partner)}" >
<span t-field= "partner.display_name" />
</a>
<div t-field= "partner.website_short_description" />
2013-09-02 13:52:10 +00:00
</div>
2013-12-12 10:58:21 +00:00
</div>
</t>
2013-09-02 13:52:10 +00:00
</div>
2013-12-12 10:58:21 +00:00
</div>
2013-11-14 18:38:37 +00:00
</div>
</div>
2013-12-12 10:58:21 +00:00
<div class= "oe_structure" />
</div>
</t>
</template>
2013-09-02 13:52:10 +00:00
2013-12-12 10:58:21 +00:00
<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" >
<ul class= "nav nav-pills nav-stacked mt16" >
<li class= "nav-header" > <h3 > Location</h3> </li>
<t t-foreach= "countries" >
2014-01-30 20:57:13 +00:00
<li t-if= "country_id" t-att-class= "country_id[0] == current_country_id and 'active' or ''" >
2014-03-17 06:14:19 +00:00
<a t-attf-href= "/members#{ membership and '/association/%s' % membership.id or '' }#{ country_id[0] and '/country/%s' % slug(country_id) or '' }#{ search }" > <t t-esc= "country_id[1]" />
2014-01-30 20:57:13 +00:00
<span class= "badge pull-right" > <t t-esc= "country_id_count or '0'" /> </span>
2013-12-12 10:58:21 +00:00
</a>
</li>
</t>
</ul>
</xpath>
</template>
2013-10-11 16:13:10 +00:00
2013-12-12 10:58:21 +00:00
<!-- Option: index: Left Google Map -->
<template id= "opt_index_google_map" name= "Left World Map"
inherit_option_id="website_membership.index" inherit_id="website_membership.index">
<xpath expr= "//div[@id='left_column']/ul[1]" position= "before" >
<ul class= "nav nav-pills nav-stacked mt16" >
<li class= "nav-header" > <h3 > World Map</h3> </li>
<ul class= "nav" >
2014-03-14 16:23:46 +00:00
<iframe t-attf-src= "/google_map/?width=320&height=240&partner_ids=#{ google_map_partner_ids }&partner_url=/members"
2013-12-12 10:58:21 +00:00
style="width:320px; height:260px; border:0; padding:0; margin:0;"></iframe>
2013-10-11 16:13:10 +00:00
</ul>
2013-12-12 10:58:21 +00:00
</ul>
</xpath>
</template>
2013-09-02 13:52:10 +00:00
2013-12-12 10:58:21 +00:00
<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" />
2013-11-14 18:38:37 +00:00
</div>
</div>
2013-12-12 10:58:21 +00:00
<div class= "oe_structure" />
</div>
</t>
</template>
2013-09-02 13:52:10 +00:00
2013-12-12 10:58:21 +00:00
</data>
2014-01-28 16:15:31 +00:00
</openerp>