import_from_csv.html 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. {% extends "wagtailadmin/base.html" %}
  2. {% load i18n %}
  3. {% block titletag %}{% blocktrans %}Import pages{% endblocktrans %}{% endblock %}
  4. {% block css %}
  5. {{ block.super }}
  6. {{ form.media.css }}
  7. {% endblock %}
  8. {% block js %}
  9. {{ block.super }}
  10. {{ form.media.js }}
  11. {% endblock %}
  12. {% block content %}
  13. {% trans "Import pages" as title_str %}
  14. {% include "wagtailadmin/shared/header.html" with title=title_str icon="download" %}
  15. <div class="nice-padding">
  16. <form action="{% url 'import_from_csv' %}" enctype="multipart/form-data" method="POST">
  17. {% csrf_token %}
  18. <ul class="fields">
  19. {% for field in form %}
  20. {% include "wagtailadmin/shared/field_as_li.html" %}
  21. {% endfor %}
  22. </ul>
  23. <br>
  24. <p>
  25. <b>{% trans "IMPORTANT:" %}</b>
  26. {% trans "CSV file must be in the correct format before importing." %}
  27. <a href="https://docs.coderedcorp.com/wagtail-crx/features/import_export.html">
  28. {% trans "Read the importing guide." %}
  29. </a>
  30. </p>
  31. <br>
  32. <input type="submit" value="{% trans 'Import' %}" class="button">
  33. </form>
  34. </div>
  35. {% endblock %}
  36. {% block extra_js %}
  37. {{ block.super }}
  38. {% include "wagtailadmin/pages/_editor_js.html" %}
  39. {% endblock %}