import_from_csv.html 1.0 KB

123456789101112131415161718192021222324252627282930313233
  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" novalidate>
  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. <input type="submit" value="{% trans 'Import' %}" class="button">
  24. </form>
  25. </div>
  26. {% endblock %}
  27. {% block extra_js %}
  28. {{ block.super }}
  29. {% include "wagtailadmin/pages/_editor_js.html" %}
  30. {% endblock %}