Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Msg for widget and button to add new record #31309

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from

Conversation

lamrani002
Copy link
Contributor

NEW|New msg when no records found on widget and add button for create a new one

widgetNo

$out .= '<tr><td colspan="2" class="center"><span class="opacitymedium">'.$langs->trans("NoRecordFound").' </span>';
if (!empty($this->depends)) {
if (count($this->depends) > 1) {
foreach ($this->depends as $key => $val) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand why you use ->depends to define the link.
For example the module Order depends on Thirdparty but the "+" link must be to add a new order.
I suggest to introduce a new property
->urltoaddentry
into each widget
If ->urltoaddentry is defined into the widget file, we can show the "+" link, if not, we do nothing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes i see this is much better

@eldy eldy added the PR to fix or conflict to solve PR needs to be fixed to be integrated (except for conflicts, a comment describes the fix to do) label Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR to fix or conflict to solve PR needs to be fixed to be integrated (except for conflicts, a comment describes the fix to do)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants