-
Notifications
You must be signed in to change notification settings - Fork 17
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
Adapt project for Jazzmin Admin Template, added spanish language support #72
base: master
Are you sure you want to change the base?
Conversation
@santiago1114 Thank you very much for your contribution. Could you please tak a look at the failing tests? |
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.
Please fix the tests and the commented issues above.
{% for chart in charts %} | ||
{% include "./chart_container.html" with chart=chart %} | ||
{% empty %} | ||
<p> | ||
No charts available, please <a href="{% url 'admin:admin_tools_stats_dashboardstats_changelist' %}">configure them</a> | ||
{% trans "There aren't charts for display, please setup making" %}<a href="{% url 'admin:admin_tools_stats_dashboardstats_changelist' %}"> clic</a> |
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.
This sentence doesn't make sense. Word clic
is a typo, untranslatable and I would prefer to follow UX best practices and put action name as the link text instead of using "click", "click here" or similar.
{% csrf_token %} | ||
{% for w in form %} | ||
{% if not w.is_hidden %} | ||
{{ w.label }}: | ||
{% endif %} | ||
{{ w }} | ||
{% endfor %} | ||
<button class="reload" id="reload" title="reload values from unfinished periods" type="button" style="font-size:14px">⟳</button> | ||
<br> |
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.
Putting the reload button on newline might not be always the best option. For example if I have charts in two columns, it would result in this less compact layout with 3 row controls:
I don't think, that the controls layout is optimal, but I am not sure, if this change will make it better.
Also, if we are new line, you should remove the
from the beginning of the line to align all elements at the start.
@santiago1114 Would you like to finish this PR, please? I have made some changes to the project, so this would need to be rebased to the current master. |
A pull request for update code for: