{% extends 'assets/base.html' %} {% load bob %} {% load i18n %} {% block content %} {% if wizard.steps.current == 'upload' %}

{% trans "Data upload" %} {% trans "step" %} {{wizard.steps.step1}}/{{wizard.steps.count}}

{% blocktrans %}

Upload an XLS or CSV file. The file should contain labels for fields as the first row.

If the first column's header is id, the update will be performed. Otherwise new licences/assets will be created.

{% endblocktrans %} {% endif %} {% if wizard.steps.current == 'column_choice' %}

{% trans "Column choice" %} {% trans "step 2/3" %}

{% blocktrans %}

Match the names from XLS file with the desired fields. Leaving the value empty will cause the column value to be unused.

{% endblocktrans %} {% endif %} {% if wizard.steps.current == 'confirm' %}

{% trans "Import confirmation" %} {% trans "step 3/3" %}

{% blocktrans %}

This data got extracted from provided file. Please make sure the data is OK. Submitting the data is irreversible.

{% endblocktrans %} {% if update_table %}

Assets to be updated

{% for name in all_column_names %} {% endfor %} {% for row in update_table %} {% for col in row %} {% endfor %} {% endfor %}
{% trans "Asset id" %}{{ name }}
{{ col }}
{% endif %} {% if add_table %}

Assets to be added

{% for name in all_column_names %} {% endfor %} {% for row in add_table %} {% for col in row %} {% endfor %} {% endfor %}
{{ name }}
{{ col }}
{% endif %} {% endif %}
{% csrf_token %} {{ wizard.management_form }} {% for error in wizard.form.non_field_errors %}
{{ error }}
{% endfor %} {% for field in wizard.form %} {% field_wrapper field %} {% endfor %}
{% endblock %}