[FIX] base, web, website: force phone number in ltr
Display your website in Right To Left Go see the phone number of the company Make that number in the form ``` 123[space]456[space]789 ``` Before this commit, the blocks of that number were inverted (intra-group order did not change) Leaving us with ``` 789[space]456[space]123 ``` After this commit, we introduce a little class to force Left To Right display OPW 2059917 closes odoo/odoo#36115 Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
This commit is contained in:
@@ -83,3 +83,11 @@
|
||||
.o_debounce_disabled {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
span.o_force_ltr {
|
||||
display: inline-block;
|
||||
}
|
||||
.o_force_ltr, .o_field_phone {
|
||||
/*rtl:ignore*/
|
||||
direction: ltr;
|
||||
}
|
||||
|
||||
@@ -345,7 +345,7 @@
|
||||
<h5>Connect with us</h5>
|
||||
<ul class="list-unstyled">
|
||||
<li><a href="/contactus">Contact us</a></li>
|
||||
<li><i class="fa fa-phone"/> <span t-field="res_company.phone"/></li>
|
||||
<li><i class="fa fa-phone"/> <span class="o_force_ltr" t-field="res_company.phone"/></li>
|
||||
<li><i class="fa fa-envelope"/> <span t-field="res_company.email"/></li>
|
||||
</ul>
|
||||
<p>
|
||||
|
||||
@@ -30,9 +30,9 @@
|
||||
<span itemprop="addressLocality" t-esc="city"/>,
|
||||
<span itemprop="addressCountry" t-esc="country_id"/>
|
||||
</div>
|
||||
<div t-if="phone and 'phone' in fields"><i t-if="not options.get('no_marker') or options.get('phone_icons')" class='fa fa-phone fa-fw' role="img" aria-label="Phone" title="Phone"/> <span itemprop="telephone" t-esc="phone"/></div>
|
||||
<div t-if="mobile and 'mobile' in fields"><i t-if="not options.get('no_marker') or options.get('phone_icons')" class='fa fa-mobile fa-fw' role="img" aria-label="Mobile" title="Mobile"/> <span itemprop="telephone" t-esc="mobile"/></div>
|
||||
<div t-if="fax and 'fax' in fields"><i t-if="not options.get('no_marker') or options.get('phone_icons')" class='fa fa-fax fa-fw' role="img" aria-label="Fax" title="Fax"/> <span itemprop="faxNumber" t-esc="fax"/></div>
|
||||
<div t-if="phone and 'phone' in fields"><i t-if="not options.get('no_marker') or options.get('phone_icons')" class='fa fa-phone fa-fw' role="img" aria-label="Phone" title="Phone"/> <span class="o_force_ltr" itemprop="telephone" t-esc="phone"/></div>
|
||||
<div t-if="mobile and 'mobile' in fields"><i t-if="not options.get('no_marker') or options.get('phone_icons')" class='fa fa-mobile fa-fw' role="img" aria-label="Mobile" title="Mobile"/> <span class="o_force_ltr" itemprop="telephone" t-esc="mobile"/></div>
|
||||
<div t-if="fax and 'fax' in fields"><i t-if="not options.get('no_marker') or options.get('phone_icons')" class='fa fa-fax fa-fw' role="img" aria-label="Fax" title="Fax"/> <span class="o_force_ltr" itemprop="faxNumber" t-esc="fax"/></div>
|
||||
<div t-if="website and 'website' in fields">
|
||||
<i t-if="not options.get('no_marker')" class='fa fa-globe' role="img" aria-label="Website" title="Website"/>
|
||||
<a t-att-href="website and '%s%s' % ('http://' if '://' not in website else '',website)"><span itemprop="website" t-esc="website"/></a>
|
||||
|
||||
Reference in New Issue
Block a user