-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Display NOK PrestaShop requirements #9407
Changes from 1 commit
bdd7bb4
a371d67
1fae515
cc6488d
ec59d2a
2232521
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -196,8 +196,12 @@ | |
</p> | ||
<ul> | ||
{% for key, value in requirements.testsRequired %} | ||
{% if 'fail' == value and key in requirements.testsErrors|keys %} | ||
<li>{{ requirements.testsErrors[key] }}</li> | ||
{% if 'fail' == value %} | ||
{% if key in requirements.testsErrors|keys %} | ||
<li>{{ requirements.testsErrors[key] }}</li> | ||
{% else %} | ||
<li>{{ '%key% (missing description)'|trans({'%key%': key}, 'Admin.Advparameters.Notification') }}</li> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure we should patch this in the template, but ensure the key is in requirements.testsError array, don't you think? |
||
{% endif %} | ||
{% endif %} | ||
{% endfor %} | ||
</ul> | ||
|
@@ -213,8 +217,12 @@ | |
</p> | ||
<ul> | ||
{% for key, value in requirements.testsOptional %} | ||
{% if 'fail' == value and testsErrors[key] is defined %} | ||
<li>{{ requirements.testsErrors[key] }}</li> | ||
{% if 'fail' == value %} | ||
{% if testsErrors[key] is defined %} | ||
<li>{{ requirements.testsErrors[key] }}</li> | ||
{% else %} | ||
<li>{{ '%key% (missing description)'|trans({'%key%': key}, 'Admin.Advparameters.Notification') }}</li> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Must be in Admin.Advparameters.Feature. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wy? it's a notification :( (answering to @LouiseBonnard) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because we classify the basic content of a page in the Feature file. |
||
{% endif %} | ||
{% endif %} | ||
{% endfor %} | ||
</ul> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Must be in Admin.Advparameters.Feature.