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

Adapt project for Jazzmin Admin Template, added spanish language support #72

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

santiago1114
Copy link

A pull request for update code for:

  • Boostrap style (can works using Django Jazzmin)
  • Internationalization support, added spanish language
  • Some enhacements related to internationalization and styling.

@PetrDlouhy
Copy link
Owner

@santiago1114 Thank you very much for your contribution. Could you please tak a look at the failing tests?

Copy link
Owner

@PetrDlouhy PetrDlouhy left a 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>
Copy link
Owner

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 %}
&nbsp;<button class="reload" id="reload" title="reload values from unfinished periods" type="button" style="font-size:14px">⟳</button>
<br>
Copy link
Owner

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:

Snímek obrazovky_2024-04-15_09-59-21

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 &nbsp; from the beginning of the line to align all elements at the start.

@PetrDlouhy
Copy link
Owner

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants