{% 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'), } %} {% call form.input('repo_url', id='field-repo_url', label=_('Repository url'), placeholder=_('eg. https://github.com/ckan/ckan (if blank uses resource url)'), value=data.repo_url, error=errors.repo_url, classes=['control-full', 'control-large'], attrs={'class': 'form-control', 'aria-describedby': 'help-repo_url'}) %}

{{ _("Leave blank to show the repository this resource links to, or enter another repository or branch to show instead. A public GitHub repository's name, description, files and README are fetched by this site and shown here, as GitHub's pages can't be embedded. Add /tree/ for a branch other than the default.") }}

{% 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 %}

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