1 <?xml version="1.0" encoding="utf-8"?>
5 <!-- Layout add nav and footer -->
6 <template id="footer_custom" inherit_id="website.layout" name="Footer Partners Link">
7 <xpath expr="//footer//div[@name='info']/ul" position="inside">
8 <li><a href="/partners">Resellers</a></li>
13 <template id="layout" name="Partners Layout">
14 <t t-call="website.layout">
15 <t t-set="additional_title">Resellers</t>
17 <div class="oe_structure"/>
18 <div class="container mt16">
20 <t t-raw="ref_content" />
23 <div class="oe_structure"/>
28 <template id="index" name="Find Resellers">
29 <t t-call="website_crm_partner_assign.layout">
30 <t t-set="ref_content">
31 <div class="col-md-12">
32 <h1 class="text-center">
33 Looking For a Local Store?
34 </h1><h2 class="text-center text-muted">
39 <div class="col-md-3 mb32" id="partner_left">
41 <ul id="reseller_grades" class="nav nav-pills nav-stacked mt16">
42 <li class="nav-header"><h3>Filter by Grade</h3></li>
43 <t t-foreach="grades" t-as="grade">
44 <li t-att-class="grade['active'] and 'active' or ''">
45 <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 '') }">
46 <span class="badge pull-right" t-esc="grade['grade_id_count'] or ''"/>
47 <t t-esc="grade['grade_id'][1]"/>
53 <ul id="reseller_countries" class="nav nav-pills nav-stacked mt16">
54 <li class="nav-header"><h3>Filter by Country</h3></li>
55 <t t-foreach="countries" t-as="country">
56 <li t-if="country['country_id']" t-att-class="country['active'] and 'active' or ''">
57 <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 '')}">
58 <span class="badge pull-right" t-esc="country['country_id_count'] or ''"/>
59 <t t-esc="country['country_id'][1]"/>
67 <div class="col-md-8 col-md-offset-1" id="ref_content">
70 <t t-call="website.pager"/>
71 <form action="" method="get" class="navbar-search pull-right pagination form-inline">
72 <div class="form-group pull-right">
73 <input type="text" name="search" class="search-query col-md-2 mt4 form-control" placeholder="Search" t-att-value="searches.get('search', '')"/>
79 <p t-if="not partners">No result found</p>
80 <t t-foreach="partners" t-as="partner">
81 <t t-if="last_grade != partner.grade_id.id">
82 <h3 class="text-center">
83 <span t-field="partner.grade_id"/> Partners
85 <t t-set="last_grade" t-value="partner.grade_id.id"/>
88 <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}"
89 t-field="partner.image"
90 t-field-options='{"widget": "image", "class": "media-object", "max_width": 128}'
92 <div class="media-body o_partner_body" style="min-height: 64px;">
93 <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}">
94 <span t-field="partner.display_name"/>
96 <div t-field="partner.website_short_description"/>
97 <t t-if="any([p.website_published for p in partner.implemented_partner_ids])">
98 <small><a t-attf-href="/partners/#{slug(partner)}#right_column">
99 <t t-raw="len([p for p in partner.implemented_partner_ids if p.website_published])"/> reference(s)
107 <t t-call="website.pager">
108 <t t-set="classname">pull-left</t>
116 <template id="ref_country" inherit_id="website_crm_partner_assign.index" inherit_option_id="website_crm_partner_assign.index" name="Left World Map">
117 <xpath expr="//ul[@id='reseller_countries']" position="after">
120 <iframe t-attf-src="/google_map/?width=260&height=240&partner_ids=#{ google_map_partner_ids }&partner_url=/partners"
121 style="width:260px; height:260px; border:0; padding:0; margin:0;"></iframe>
126 <template id="partner" name="Partner Detail">
127 <t t-call="website_crm_partner_assign.layout">
128 <t t-set="ref_content">
129 <div class="col-md-5">
130 <ol class="breadcrumb">
131 <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>
132 <li class="active"><span t-field="partner.display_name"/></li>
135 <t t-call="website_partner.partner_detail">
136 <t t-set="right_column">
137 <div id="right_column" class="mb16"><t t-call="website_crm_partner_assign.references_block"/></div>
144 <template id="grade_in_detail" inherit_id="website_partner.partner_detail">
145 <xpath expr="//*[@id='partner_name']" position="after">
146 <h3 class="col-md-12 text-center text-muted" t-if="partner.grade_id and partner.grade_id.website_published">
147 <span t-field="partner.grade_id"/> Partner</h3>
151 <template id="references_block" name="Partner References Block">
152 <t t-if="any([p.website_published for p in partner.implemented_partner_ids])">
153 <h3 id="references">References</h3>
154 <div t-foreach="partner.implemented_partner_ids" t-as="reference" class="media">
155 <t t-if="reference.website_published">
156 <a class="pull-left" t-attf-href="/customers/#{slug(reference)}">
157 <span t-field="reference.image_small" t-field-options='{"widget": "image", "class": "center-block"}'/>
159 <div class="media-body" style="min-height: 64px;">
160 <a class="media-heading" t-attf-href="/customers/#{slug(reference)}">
161 <span t-field="reference.self"/>
163 <div t-field='reference.website_short_description'/>