{% import 'macros/form.html' as form %} {% asset 'webpageviewplus/webpageviewplus-css' %} {% asset 'webpageviewplus/webpageviewplus-js' %}
{% set height_labels = { 'fixed': _('Fixed (px)'), 'viewport': _('Share of the window height, in percent'), } %} {% if not isolated %}

{{ _("This PDF can't be shown: the site needs a separate domain for uploaded content.") }}

{% endif %} {% call form.input('pdf_url', id='field-pdf_url', label=_('PDF url'), placeholder=_('eg. https://example.com/report.pdf (if blank uses resource url)'), value=data.pdf_url, error=errors.pdf_url, classes=['control-full', 'control-large'], attrs={'class': 'form-control', 'aria-describedby': 'help-pdf_url'}) %}

{{ _("Leave blank to show this resource's own file. A PDF on another site is fetched by this site and shown from here, so visitors never contact that site.") }} {% if allowed_hosts %}{{ _('This site accepts pages from these hosts only: {hosts}.').format(hosts=allowed_hosts | join(', ')) }}{% endif %}

{% endcall %}
{% if errors.height_mode %}{{ errors.height_mode | join(', ') }}{% endif %}
{% call form.input('height_value', id='field-height_value', label=_('Height value'), placeholder=_('eg. 800 or 80'), value=data.height_value, error=errors.height_value, classes=['control-medium'], attrs={'class': 'form-control', 'aria-describedby': 'help-height_value'}) %}

{{ _('Pixels for Fixed, or a number from 1 to 100 for a share of the window. Blank is 800 pixels.') }}

{% endcall %} {% if thumbnail_choices is not none %}
{% if errors.thumbnail_resource %}{{ errors.thumbnail_resource | join(', ') }}{% endif %}

{{ _("An image in this dataset (PNG, JPEG, WebP or GIF), shown small beside this resource in the dataset's list. With None, the format icon shows.") }} {{ _("The PDF's first page is drawn in your browser when you choose it, and again when you edit the view after an uploaded file has changed, or every time for a PDF linked from another site.") }}

{% endif %}

{{ _('On phones and at high zoom, Open in new tab still shows, so visitors can always reach the page.') }}