2013-08-29 13:00:40 +00:00
<?xml version="1.0" encoding="utf-8"?>
<openerp >
<data >
2013-12-12 10:58:21 +00:00
<!-- Layout add nav and footer -->
<template id= "footer_custom" inherit_id= "website.layout" name= "Footer Partners Link" >
<xpath expr= "//footer//div[@name='info']/ul" position= "inside" >
2014-03-14 16:23:46 +00:00
<li > <a href= "/partners" > Resellers</a> </li>
2013-12-12 10:58:21 +00:00
</xpath>
</template>
2013-08-29 13:00:40 +00:00
2013-12-12 10:58:21 +00:00
<!-- Page -->
<template id= "layout" name= "Partners Layout" >
<t t-call= "website.layout" >
<t t-set= "additional_title" > Resellers</t>
<div id= "wrap" >
<div class= "oe_structure" />
2014-05-20 11:24:18 +00:00
<div class= "container mt16" >
2013-12-12 10:58:21 +00:00
<div class= "row" >
<t t-raw= "ref_content" />
2013-08-29 13:00:40 +00:00
</div>
</div>
2013-12-12 10:58:21 +00:00
<div class= "oe_structure" />
</div>
</t>
</template>
2013-08-29 13:00:40 +00:00
2013-12-12 10:58:21 +00:00
<template id= "index" name= "Find Resellers" >
<t t-call= "website_crm_partner_assign.layout" >
<t t-set= "ref_content" >
<div class= "col-md-12" >
<h1 class= "text-center" >
Looking For a Local Store?
</h1> <h2 class= "text-center text-muted" >
Contact a reseller
</h2>
</div>
2014-01-31 10:42:32 +00:00
2014-05-16 12:16:56 +00:00
<div class= "col-md-3 mb32" id= "partner_left" >
2014-01-31 10:42:32 +00:00
2014-05-16 12:16:56 +00:00
<ul id= "reseller_grades" class= "nav nav-pills nav-stacked mt16" >
<li class= "nav-header" > <h3 > Filter by Grade</h3> </li>
2014-01-31 10:42:32 +00:00
<t t-foreach= "grades" t-as= "grade" >
2014-05-16 12:16:56 +00:00
<li t-att-class= "grade['active'] and 'active' or ''" >
2014-05-20 11:24:18 +00:00
<a t-attf-href= "/partners#{ grade['grade_id'][0] and '/grade/%s' % grade['grade_id'][0] or '' }#{ current_country and '/country/%s' % slug(current_country) or '' }#{ '?' + (search_path or '') }" >
2014-01-31 10:42:32 +00:00
<span class= "badge pull-right" t-esc= "grade['grade_id_count'] or ''" />
<t t-esc= "grade['grade_id'][1]" />
</a>
</li>
</t>
</ul>
<ul id= "reseller_countries" class= "nav nav-pills nav-stacked mt16" >
2014-05-16 12:16:56 +00:00
<li class= "nav-header" > <h3 > Filter by Country</h3> </li>
<t t-foreach= "countries" t-as= "country" >
2014-05-19 14:40:50 +00:00
<li t-if= "country['country_id']" t-att-class= "country['active'] and 'active' or ''" >
2014-05-20 11:24:18 +00:00
<a t-attf-href= "/partners#{ current_grade and '/grade/%s' % slug(current_grade) or ''}#{country['country_id'][0] and '/country/%s' % country['country_id'][0] or '' }#{ '?' + (search_path or '') + (country['country_id'][0] == 0 and 'country_all=True' or '')}" >
2014-05-16 12:16:56 +00:00
<span class= "badge pull-right" t-esc= "country['country_id_count'] or ''" />
<t t-esc= "country['country_id'][1]" />
</a>
</li>
2013-12-12 10:58:21 +00:00
</t>
</ul>
2014-01-31 10:42:32 +00:00
2013-12-12 10:58:21 +00:00
</div>
2014-01-31 10:42:32 +00:00
2014-05-16 14:29:36 +00:00
<div class= "col-md-8 col-md-offset-1" id= "ref_content" >
<div class= 'navbar' >
<div >
<t t-call= "website.pager" />
<form action= "" method= "get" class= "navbar-search pull-right pagination form-inline" >
<div class= "form-group pull-right" >
<input type= "text" name= "search" class= "search-query col-md-2 mt4 form-control" placeholder= "Search" t-att-value= "searches.get('search', '')" />
</div>
</form>
</div>
</div>
2013-12-12 10:58:21 +00:00
<div >
2014-05-12 17:51:21 +00:00
<p t-if= "not partners" > No result found</p>
<t t-foreach= "partners" t-as= "partner" >
<t t-if= "last_grade != partner.grade_id.id" >
2013-12-12 10:58:21 +00:00
<h3 class= "text-center" >
2014-05-12 17:51:21 +00:00
<span t-field= "partner.grade_id" /> Partners
2013-12-12 10:58:21 +00:00
</h3>
2014-05-12 17:51:21 +00:00
<t t-set= "last_grade" t-value= "partner.grade_id.id" />
2013-12-12 10:58:21 +00:00
</t>
2014-01-31 09:39:02 +00:00
<div class= "media" >
2014-05-20 11:24:18 +00:00
<a class= "pull-left" t-attf-href= "/partners/#{slug(partner)}?#{current_grade and 'grade_id=%s&' % current_grade.id}#{current_country and 'country_id=%s' % current_country.id}"
2014-05-12 17:51:21 +00:00
t-field="partner.image_small"
t-field-options='{"widget": "image", "class": "media-object"}'
></a>
2014-05-16 12:16:56 +00:00
<div class= "media-body o_partner_body" style= "min-height: 64px;" >
2014-05-20 11:24:18 +00:00
<a class= "media-heading" t-attf-href= "/partners/#{slug(partner)}?#{current_grade and 'grade_id=%s&' % current_grade.id}#{current_country and 'country_id=%s' % current_country.id}" >
2014-05-12 17:51:21 +00:00
<span t-field= "partner.display_name" />
</a>
<div t-field= "partner.website_short_description" />
2014-05-16 15:14:03 +00:00
<t t-if= "any([p.website_published for p in partner.implemented_partner_ids])" >
2014-05-16 12:58:11 +00:00
<small > <a t-attf-href= "/partners/#{slug(partner)}#right_column" >
2014-05-16 15:14:03 +00:00
<t t-raw= "len([p for p in partner.implemented_partner_ids if p.website_published])" /> reference(s)
2014-05-16 12:58:11 +00:00
</a> </small>
</t>
2013-12-12 10:58:21 +00:00
</div>
</div>
</t>
2014-05-16 12:16:56 +00:00
</div>
<div class= 'navbar' >
<t t-call= "website.pager" >
<t t-set= "classname" > pull-left</t>
</t>
2013-12-12 10:58:21 +00:00
</div>
</div>
2013-08-29 13:00:40 +00:00
</t>
2013-12-12 10:58:21 +00:00
</t>
</template>
2013-08-29 13:00:40 +00:00
2014-05-27 09:54:01 +00:00
<template id= "ref_country" inherit_id= "website_crm_partner_assign.index" optional= "enabled" name= "Left World Map" >
2014-01-31 10:42:32 +00:00
<xpath expr= "//ul[@id='reseller_countries']" position= "after" >
2013-12-12 10:58:21 +00:00
<h3 > World Map</h3>
<ul class= "nav" >
2014-05-16 12:16:56 +00:00
<iframe t-attf-src= "/google_map/?width=260&height=240&partner_ids=#{ google_map_partner_ids }&partner_url=/partners"
style="width:260px; height:260px; border:0; padding:0; margin:0;"></iframe>
2013-12-12 10:58:21 +00:00
</ul>
</xpath>
</template>
2013-08-29 13:00:40 +00:00
2013-12-12 10:58:21 +00:00
<template id= "partner" name= "Partner Detail" >
<t t-call= "website_crm_partner_assign.layout" >
<t t-set= "ref_content" >
2014-05-20 11:24:18 +00:00
<div class= "col-md-5" >
<ol class= "breadcrumb" >
<li > <a t-attf-href= "/partners#{current_grade and '/grade/%s' % slug(current_grade)}#{current_country and '/country/%s' % slug(current_country)}" > Our Partners</a> </li>
<li class= "active" > <span t-field= "partner.display_name" /> </li>
</ol>
</div>
2014-05-16 12:58:11 +00:00
<t t-call= "website_partner.partner_detail" >
<t t-set= "right_column" >
2014-05-19 16:16:10 +00:00
<div id= "right_column" class= "mb16" > <t t-call= "website_crm_partner_assign.references_block" /> </div>
2014-05-16 12:58:11 +00:00
</t>
</t>
2013-08-29 13:00:40 +00:00
</t>
2013-12-12 10:58:21 +00:00
</t>
</template>
2013-08-29 13:00:40 +00:00
2014-05-12 17:51:21 +00:00
<template id= "grade_in_detail" inherit_id= "website_partner.partner_detail" >
<xpath expr= "//*[@id='partner_name']" position= "after" >
<h3 class= "col-md-12 text-center text-muted" t-if= "partner.grade_id and partner.grade_id.website_published" >
<span t-field= "partner.grade_id" /> Partner</h3>
</xpath>
</template>
2014-05-16 12:58:11 +00:00
<template id= "references_block" name= "Partner References Block" >
<t t-if= "any([p.website_published for p in partner.implemented_partner_ids])" >
<h3 id= "references" > References</h3>
<div t-foreach= "partner.implemented_partner_ids" t-as= "reference" class= "media" >
<t t-if= "reference.website_published" >
<a class= "pull-left" t-attf-href= "/customers/#{slug(reference)}" >
<span t-field= "reference.image_small" t-field-options= '{"widget": "image", "class": "center-block"}' />
</a>
<div class= "media-body" style= "min-height: 64px;" >
<a class= "media-heading" t-attf-href= "/customers/#{slug(reference)}" >
<span t-field= "reference.self" />
</a>
<div t-field= 'reference.website_short_description' />
</div>
</t>
</div>
</t>
</template>
2013-12-12 10:58:21 +00:00
</data>
2013-08-29 13:00:40 +00:00
</openerp>