{% extends "base.html" %} {% block page_title %}{% trans %}Packtools - SciELO HTML Previewer {% endtrans %}{% endblock %} {% block topbody %}
Beta
{% endblock %} {% block main_content %}

{% trans %}SciELO HTML Previewer{% endtrans %}

{% trans %}Use this tool to preview your XML file as an HTML{% endtrans %}

{% trans %}Browse to your local XML file and click 'Preview'. The results will be displayed below.{% endtrans %}

{{ form.csrf_token }}
{# FILE FIELD #} {% with field=form.file, field_error=form.errors.file %}
{{ field }} {# use of |attr doesnt work, 'cause bootstrap js plugin:filestyle create a new input #} {% trans %}Max. upload size{% endtrans %}: {{ g.SETTINGS_MAX_UPLOAD_SIZE|filesizeformat }} {# field errors #} {% for error in field_error %}
{{ error }}
{% endfor %}
{% endwith %}
{{ form.url_static_file }} {% trans %}Use absolute path (ex: http://, file://, fyp://){% endtrans %}
  {% trans %} If you have any problems with the tool or with the SPS Tagging Guidelines, please contact: scielo-xml@googlegroups.com. {% endtrans %}
{% if previews %}
{% for preview in previews %}
{% endfor %} {% if not previews|length %}
{% trans %}No HTML generated, is the XML file valid?{% endtrans %}
{% endif %}
{% endif %} {% endblock main_content %} {% block extrafooter %} {% include "validator/includes/xml_upload_form_validation.html" %} {% endblock extrafooter %}