Server IP : 127.0.0.2 / Your IP : 3.129.209.87 Web Server : Apache/2.4.18 (Ubuntu) System : User : www-data ( ) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : disk_free_space,disk_total_space,diskfreespace,dl,exec,fpaththru,getmyuid,getmypid,highlight_file,ignore_user_abord,leak,listen,link,opcache_get_configuration,opcache_get_status,passthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,php_uname,phpinfo,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,pclose,popen,proc_open,proc_close,proc_get_status,proc_nice,proc_terminate,shell_exec,source,show_source,system,virtual MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /opt/odoo/addons/website_membership/views/ |
Upload File : |
<?xml version="1.0" encoding="utf-8"?> <odoo> <!-- Layout add nav and footer --> <template id="footer_custom" inherit_id="website.footer_default" name="Footer Associations Link"> <xpath expr="//div[@id='info']/ul" position="inside"> <li><a href="/members">Members</a></li> </xpath> </template> <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> <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"> <div class="col-md-3 mb32" id="left_column"> <ul class="nav nav-pills nav-stacked mt16"> <li class="nav-header"><h3>Associations</h3></li> <li t-att-class="'' if membership_id else 'active'"><a href="/members">All</a></li> <t t-foreach="memberships_data" t-as="membership_data"> <li t-att-class="membership_id and membership_data['id'] == membership_id and 'active' or None"> <a t-attf-href="/members/association/#{ membership_data['id'] }#{current_country and '/country/%s' % slug(current_country) or ''}#{ search }"><t t-esc="membership_data['name']"/></a> </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> <form action="" method="get" class="navbar-search pull-right pagination form-inline"> <t t-call="website.website_search_box"> <t t-set="search" t-value="post.get('search', '')"/> </t> </form> </div> <div> <t t-if="not memberships_partner_ids"> <p>No result found.</p> </t> <t t-foreach="memberships_data" t-as="membership_data"> <t t-if="memberships_partner_ids.get(membership_data['id'])"> <h3 class="text-center"><span t-esc="membership_data['name']"/></h3> <t t-foreach="memberships_partner_ids[membership_data['id']]" t-as="partner_id"> <t t-set="partner" t-value="partners[partner_id]"/> <div class="media"> <a class="pull-left" t-attf-href="/members/#{slug(partner)}" t-field="partner.image_small" t-options='{"widget": "image", "class": "media-object"}' ></a> <div class="media-body" style="min-height: 64px;"> <a class="media-heading" t-attf-href="/members/#{slug(partner)}"> <span t-field="partner.display_name"/> </a> <div t-field="partner.website_short_description"/> </div> </div> </t> </t> </t> </div> </div> </div> </div> <div class="oe_structure"/> </div> </t> </template> <template id="opt_index_country" name="Location" customize_show="True" inherit_id="website_membership.index"> <xpath expr="//div[@id='left_column']/ul[1]" position="after"> <ul class="nav nav-pills nav-stacked mt16"> <li class="nav-header"><h3>Location</h3></li> <t t-foreach="countries" t-as="country"> <li t-if="country['country_id']" t-att-class="country['country_id'] and country['country_id'][0] == current_country_id and 'active' or None"> <a t-attf-href="/members#{ membership_id and '/association/%s' % membership_id or '' }#{ country['country_id'][0] and '/country/%s' % slug(country['country_id']) or '' }#{ search }"><t t-esc="country['country_id'][1]"/> <span class="badge pull-right"><t t-esc="country['country_id_count'] or '0'"/></span> </a> </li> </t> </ul> </xpath> </template> <!-- Option: index: Left Google Map --> <template id="opt_index_google_map" name="Left World Map" customize_show="True" inherit_id="website_membership.index"> <xpath expr="//div[@id='left_column']/ul[last()]" position="after"> <t t-if="google_maps_api_key"> <!-- modal for large map --> <div class="modal fade partner_map_modal" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true"> <div class="modal-dialog modal-lg"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title">World Map</h4> </div> <iframe t-attf-src="/google_map/?width=898&height=485&partner_ids=#{ google_map_partner_ids }&partner_url=/members/" style="width:898px; height:485px; border:0; padding:0; margin:0;"></iframe> </div> </div> </div> <!-- modal end --> <h3>World Map<button class="btn btn-link" data-toggle="modal" data-target=".partner_map_modal"><span class="fa fa-external-link" /></button></h3> <ul class="nav"> <iframe t-attf-src="/google_map/?width=260&height=240&partner_ids=#{ google_map_partner_ids }&partner_url=/members/" style="width:260px; height:240px; border:0; padding:0; margin:0;"></iframe> </ul> </t> </xpath> </template> <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> </odoo>