{# @var craft \craft\web\twig\variables\CraftVariable #}
{#
/**
 * QRCode plugin for Craft CMS
 *
 * QRCodeField Field Settings
 *
 * @author    webdna
 * @copyright Copyright (c) 2019 webdna
 * @link      https://webdna.co.uk
 * @package   QRCode
 * @since     0.0.1
 */
#}

{% import "_includes/forms" as forms %}

{# {% do view.registerAssetBundle("webdna\\qrcode\\assetbundles\\qrcode\\QRCodeAsset") %} #}

{{ forms.textareaField({
	label: "Data Format"|t,
	instructions: "Define the format of the a QR code to be shown in the control panel. Use Twig to dynamically retrieve properties of the element that the fieldtype is set on. It may be a simple string, i.e. `{{ entry.title }}`, or a full JSON string, i.e., `{ \"title\" : \"{{ entry.title }}\" }`."|t,
	id: 'property',
	name: 'property',
	class: 'code',
	required: true,
	value: field.property ? field.property|raw,
	errors: field.getErrors('property'),
    rows: 6
}) }}
