{% extends 'base.html.twig' %} {% trans_default_domain "ShamraOcr" %} {% block title %} {{ 'ocr.file_processor.title'|trans }} {% endblock %} {% block stylesheets %} {{parent()}} {% endblock %} {% block body %}

{{ 'ocr.file_processor.description.title'|trans }}


{{ 'ocr.file_processor.description.text'|trans }}

{{ 'ocr.file_processor.description.cost'|trans }}

{{form_row(form.shamraOcr_token)}}
{{form_errors(form.original_file_path)}} {{form_widget(form.original_file_path)}}
{% if app.session.flashbag.peek('api_request_error') is not empty%}
{% for massage in app.flashes('api_request_error') %}
{{massage}}
{% endfor %}
{% endif %} {% if app.session.flashbag.peek('add_credit') is not empty%}
{% for massage in app.flashes('add_credit') %}
{{massage}}
{% endfor %}
{% endif %}

{% if app.user %} {{ 'ocr.file_processor.info_bar'|trans({'%credits_amount%':app.user.shamraOcrCredit , '%pages_number%':app.user.shamraOcrCredit*50}) }} {% else %} {{ 'ocr.file_processor.info_bar_not_authenticated'|trans }} {% endif %}

{% if old_content is defined and old_content %}
{{'ocr.file_processor.files_list.user_notify' | trans}}
{% endif %}
{% endblock %} {% block javascripts %} {{ parent() }} {% endblock %}