{% extends "base.html" %} {% load i18n crispy_forms_tags %} {% block title %}{% translate "Preview imported CSV entries" %}{% endblock %} {% block content %}

{% translate "Successfully converted values" %}

{% translate "The following values could be converted." %}
{% for entry in weight_list %} {% endfor %}
{% translate "Date" %} {% translate "Weight" %}
{{ entry.date|date:"SHORT_DATE_FORMAT" }} {{ entry.weight }}

{% translate "Errors" %}

{% if error_list %}
{% translate "The following values could not be converted." %}

{% blocktranslate %}These values could not be converted to a weight log entry. The reasons for this could be anything from an unrecognised date or number format, a problem with the encoding or something else. Please check that there are no obvious errors in the list (and correct them if there are!) and try to import the list again.{% endblocktranslate %}

{% blocktranslate %}Remember that the expected structure is date on the first columns and weight on the second.{% endblocktranslate %}

{% for entry in error_list %} {% endfor %}
{% translate "Date" %} {% translate "Weight" %}
{{ entry.0 }} {{ entry.1 }}
{% else %}

{% blocktranslate %}There were no errors, all entries could be converted!{% endblocktranslate %}

{% endif %}

{% translate "Import all successfully converted entries" %}

{% blocktranslate %}Continue here if you want to import into your weight log all entries that were successfully converted. All entries that produced an error will simply be ignored. It's up to you to decide whether they are useful (unrecognised entries) or not (e.g. headers, comments, etc.).{% endblocktranslate %}

{% crispy form %}

{% translate "Or try it again" %}

{% blocktranslate %}You can correct the list here and re-submit it as often as you want.{% endblocktranslate %}

{% crispy form %}
{% endblock %}