Use an empty-widget for multiples
We need an empty-widget for a multiple-xyz
This sib-display :
sib-display(
bind-resources
fields="related"
multiple-related
widget-related='cs-display-public-related'
label-related=''
)
should render :
But if there is no resource related, we would like to display a message like : "There is no resource related".
Links
You can test the case with :
- https://api-staging.coopstarter.happy-dev.fr/resources/17/ for fulfilled field
- https://api-staging.coopstarter.happy-dev.fr/resources/19/ for empty field
How to complete
- How to complete a Feature
- Ask any question you have in the issue comments before starting
- Create a new branch named ${ISSUE_NUMBER}-issue-name
- Implement a simple test to illustrate the desired functionality
- Write some code to complete this task
- Write some additional tests to cover edge cases and some possible errors
- Write documentation about what have you done and why you have done it this way
- Submit a merge request