Remaining Days Widget - Reformat State

Beta sygel-technology/sy-web

This module allows to remove format of text shown in views using the remaining_days widget. A list of states can be passed so the reformatting will only happen if the instance is in one of those states. This module does nothing on its own and it requires certain technical knowledge in order to include the functionalities provided in other modules.

Table of contents

Usage

To remove format in fields that use the remaining_days widget, it is necessary to do the following in another module:

  1. Include this module in the other module’s dependencies list in manifest.
  2. Include options=”{‘reformat’: True}” in the fields that use the remaining_days widget so the text is displayed without an specific format.
  3. If the reformating only has to be performed if the instance is in certain states, the options declaration should be “options=”{‘reformat’: True, ‘reformat_states’: [‘state_1’, ‘state_2’]}”. It is possible to include as many states as needed in the reformat_states list.

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • Sygel

Contributors

Maintainers

This module is part of the sygel-technology/sy-web project on GitHub.

You are welcome to contribute.