Skip to content

Commit

Permalink
OXDEV-8498 replace date-format filter by twig date filter
Browse files Browse the repository at this point in the history
  • Loading branch information
AshrafOxid committed Feb 11, 2025
1 parent 3e4be1d commit 771084b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG-3.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@
### Added
- Added translations for cache configuration

### Changed
- Replace date_format filter with Twig date filter

### Removed
- Remove deprecated cache translations
10 changes: 5 additions & 5 deletions tpl/tooltips.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function popUp(evt,currElem)
if((x + popUpWin.offsetWidth) > window.innerWidth) {
x = offset.left - popUpWin.offsetWidth - 5;
}
popUpWin.style.top = Math.max(2,y)+'px';
popUpWin.style.left= Math.max(2,x)+'px';
popUpWin.style.visibility = "visible";
Expand Down Expand Up @@ -63,10 +63,10 @@ function popDown(currElem)
<span class="popUpStyle" id="mallcategory_new" style="position: absolute;visibility: hidden;top:0;left:0;">{{ translate({ ident: "TOOLTIPS_NEWMALLCAT" }) }}</span>
<span class="popUpStyle" id="article_new" style="position: absolute;visibility: hidden;top:0;left:0;">{{ translate({ ident: "TOOLTIPS_NEWARTICLE" }) }}</span>
<span class="popUpStyle" id="article_vat" style="position: absolute;visibility: hidden;top:0;left:0;">{{ translate({ ident: "TOOLTIPS_ARTICLEVAT" }) }}</span>
<span class="popUpStyle" id="article_vonbis" style="position: absolute;visibility: hidden;top:0;left:0;">{{ translate({ ident: "TOOLTIPS_TIMEFORMAT" }) }}{{ "now"|date_format("%Y-%m-%d %H:%M:%S")|format_date("datetime", true) }}</span>
<span class="popUpStyle" id="article_vonbis" style="position: absolute;visibility: hidden;top:0;left:0;">{{ translate({ ident: "TOOLTIPS_TIMEFORMAT" }) }}{{ "now"|date("Y-m-d G:i:s")|format_date("datetime", true) }}</span>
<span class="popUpStyle" id="article_preview" style="position: absolute;visibility: hidden;top:0;left:0;">{{ translate({ ident: "TOOLTIPS_ARTICLEREVIEW" }) }}</span>
<span class="popUpStyle" id="article_stock" style="position: absolute;visibility: hidden;top:0;left:0;">{{ translate({ ident: "TOOLTIPS_ARTICLESTOCK" }) }}</span>
<span class="popUpStyle" id="article_delivery" style="position: absolute;visibility: hidden;top:0;left:0;">{{ translate({ ident: "TOOLTIPS_ARTICLEDELIVERY" }) }}{{ "now"|date_format("%Y-%m-%d %H:%M:%S")|format_date("date", true) }}</span>
<span class="popUpStyle" id="article_delivery" style="position: absolute;visibility: hidden;top:0;left:0;">{{ translate({ ident: "TOOLTIPS_ARTICLEDELIVERY" }) }}{{ "now"|date("Y.m.d G:i:s")|format_date("date", true) }}</span>
<span class="popUpStyle" id="article_template" style="position: absolute;visibility: hidden;top:0;left:0;">{{ translate({ ident: "TOOLTIPS_ARTICLETEMPLATE" }) }}</span>
<span class="popUpStyle" id="article_urlimg" style="position: absolute;visibility: hidden;top:0;left:0;">{{ translate({ ident: "TOOLTIPS_ARTICLEURLIMG" }) }}</span>
<span class="popUpStyle" id="article_unit" style="position: absolute;visibility: hidden;top:0;left:0;">{{ translate({ ident: "TOOLTIPS_ARTICLEUNITDESCRIPTION" }) }}</span>
Expand Down Expand Up @@ -103,10 +103,10 @@ function popDown(currElem)
<span class="popUpStyle" id="mallcategory_new" style="position: absolute;visibility: hidden;top:0;left:0;">{{ translate({ ident: "TOOLTIPS_NEWMALLCAT" }) }}</span>
<span class="popUpStyle" id="article_new" style="position: absolute;visibility: hidden;top:0;left:0;">{{ translate({ ident: "TOOLTIPS_NEWARTICLE" }) }}</span>
<span class="popUpStyle" id="article_vat" style="position: absolute;visibility: hidden;top:0;left:0;">{{ translate({ ident: "TOOLTIPS_ARTICLEVAT" }) }}</span>
<span class="popUpStyle" id="article_vonbis" style="position: absolute;visibility: hidden;top:0;left:0;">{{ translate({ ident: "TOOLTIPS_TIMEFORMAT" }) }}{{ "now"|date_format("%Y-%m-%d %H:%M:%S")|format_date("datetime", true) }}</span>
<span class="popUpStyle" id="article_vonbis" style="position: absolute;visibility: hidden;top:0;left:0;">{{ translate({ ident: "TOOLTIPS_TIMEFORMAT" }) }}{{ "now"|date("Y.m.d G:i:s")|format_date("datetime", true) }}</span>
<span class="popUpStyle" id="article_preview" style="position: absolute;visibility: hidden;top:0;left:0;">{{ translate({ ident: "TOOLTIPS_ARTICLEREVIEW" }) }}</span>
<span class="popUpStyle" id="article_stock" style="position: absolute;visibility: hidden;top:0;left:0;">{{ translate({ ident: "TOOLTIPS_ARTICLESTOCK" }) }}</span>
<span class="popUpStyle" id="article_delivery" style="position: absolute;visibility: hidden;top:0;left:0;">{{ translate({ ident: "TOOLTIPS_ARTICLEDELIVERY" }) }}{{ "now"|date_format("%Y-%m-%d %H:%M:%S")|format_date("date", true) }}</span>
<span class="popUpStyle" id="article_delivery" style="position: absolute;visibility: hidden;top:0;left:0;">{{ translate({ ident: "TOOLTIPS_ARTICLEDELIVERY" }) }}{{ "now"|date("Y.m.d G:i:s")|format_date("date", true) }}</span>
<span class="popUpStyle" id="article_template" style="position: absolute;visibility: hidden;top:0;left:0;">{{ translate({ ident: "TOOLTIPS_ARTICLETEMPLATE" }) }}</span>
<span class="popUpStyle" id="article_urlimg" style="position: absolute;visibility: hidden;top:0;left:0;">{{ translate({ ident: "TOOLTIPS_ARTICLEURLIMG" }) }}</span>
<span class="popUpStyle" id="article_unit" style="position: absolute;visibility: hidden;top:0;left:0;">{{ translate({ ident: "TOOLTIPS_ARTICLEUNITDESCRIPTION" }) }}</span>
Expand Down

0 comments on commit 771084b

Please sign in to comment.