-
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] Update CSS and HTML in BE view
* Use TYPO3-native date input fields. * Payment and shipping get background colors depending on their status. * Use TYPO3-native layout functionality. * Remove inline CSS * Restyle list view (update filters, pagination) * Restyle order view * Date format in backend can be set via TypoScript * Add changelog for new TypoScript option for backend date format * Update docs for TypoScript backend date format
- Loading branch information
Showing
23 changed files
with
635 additions
and
425 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
|
||
return [ | ||
'dependencies' => ['backend'], | ||
'imports' => [ | ||
'@extcode/cart/' => 'EXT:cart/Resources/Public/JavaScript/Backend/', | ||
], | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,6 +46,10 @@ plugin.tx_cart { | |
decimals = 2 | ||
} | ||
|
||
backend { | ||
dateFormat = Y-m-d | ||
} | ||
|
||
validation { | ||
orderItem { | ||
fields { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
Documentation/Administrator/Configuration/BackendModule/Index.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
.. include:: ../../../Includes.txt | ||
|
||
.. _backend_module: | ||
|
||
============== | ||
Backend module | ||
============== | ||
|
||
The backend module shows a list with filters. The date format of the input | ||
fields of the filter can be adapted by overwriting the following TypoScript. | ||
|
||
.. code-block:: typoscript | ||
:caption: EXT:cart/Configuration/TypoScript/constants.typoscript | ||
plugin.tx_cart { | ||
settings { | ||
backend { | ||
dateFormat = Y-m-d | ||
} | ||
} | ||
} | ||
plugin.tx_cart.settings.search | ||
-------------------------------- | ||
|
||
.. confval:: dateFormat | ||
|
||
:Type: string | ||
:Default: Y-m-d | ||
|
||
Defines the format which will be shown after using the filters in the | ||
backend. | ||
|
||
See also the `PHP documentation <https://www.php.net/manual/en/datetime.format.php>`_. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
Documentation/Changelog/9.0/Feature-465-DateFormatInBackendModuleFilter.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
.. include:: ../../Includes.txt | ||
|
||
============================================ | ||
Feature: #465 - DateFormat in Backend Module | ||
============================================ | ||
|
||
See :issue:`465` | ||
|
||
Description | ||
=========== | ||
|
||
The backend module was refactored. The dateformat of the date input fields can | ||
be set in TypoScript. | ||
|
||
.. code-block:: typoscript | ||
:caption: EXT:cart/Configuration/TypoScript/constants.typoscript | ||
plugin.tx_cart { | ||
settings { | ||
backend { | ||
dateFormat = Y-m-d | ||
} | ||
} | ||
} | ||
Impact | ||
====== | ||
|
||
Before this the dates in the backend were always in the format `d.m.Y`, now it | ||
is `Y-m-d` by default. | ||
The change affect only the formatting in the backend, not the storage format. | ||
|
||
Migration | ||
========= | ||
To get the old formatting you need to overwrite the above shown TypoScript | ||
constants: | ||
|
||
.. code-block:: typoscript | ||
:caption: EXT:sitepackage/Configuration/TypoScript/constants.typoscript | ||
plugin.tx_cart { | ||
settings { | ||
backend { | ||
dateFormat = d.m.Y | ||
} | ||
} | ||
} | ||
.. index:: Backend |
27 changes: 27 additions & 0 deletions
27
Documentation/Changelog/9.0/Feature-465-UpdatedBackendViews.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
.. include:: ../../Includes.txt | ||
|
||
===================================== | ||
Feature: #465 - Updated backend views | ||
===================================== | ||
|
||
See :issue:`465` | ||
|
||
Description | ||
=========== | ||
|
||
The view of the backend module were refactored. This has the following benefits: | ||
|
||
* No inline CSS which avoid problems with Content-Security-Policies. | ||
* Clearer design. | ||
* Responsive design (old design was not usable on smartphones). | ||
* Order tables with colors to improve the visibility of status of orders. | ||
* Backend CSS reduced / updated to really used HTML. | ||
|
||
Impact | ||
====== | ||
|
||
Own overwrites might need adaption otherwise this change should not have any | ||
negative impact. | ||
|
||
|
||
.. index:: Backend |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.