<input type="hidden" name="{{ name }}">

<div class="elementselect" id="{{ name }}">
	<div class="elements">
		{% for video in videos %}
			<div
				class="element small hasstatus removable"
				data-id="{{ video.hashed_id }}"
			>
				<input
					name="{{ name }}[]"
					type="hidden"
					value="{{ video.hashed_id }}"
				>
				<a class="delete icon"></a>
				<span class="status live"></span>
				<div class="label">
					<span class="title">{{ video.name }}</span>
				</div>
			</div>
		{% endfor %}
	</div>
	<div
		class="btn add icon dashed{% if settings.max and videos|length >= settings.max %} disabled{% endif %}"
		{% if settings.max == "1" and videos|length %}
			style="display: none"
		{% endif %}
	>
		{{ "Add a video"|t }}
	</div>
</div>

{% set jsSettings = {
	id: id|namespaceInputId,
	limit: settings.max,
	name: name|namespaceInputName,
	projectIds: settings.projects|join(",")
} %}

{% includejs %}
	new Wistia.VideoSelectInput({{ jsSettings|json_encode|raw }});
{% endincludejs %}
<input type="hidden" name="{{ name }}">

<div class="elementselect" id="{{ name }}">
	<div class="elements">
		{% for video in videos %}
			<div
				class="element small hasstatus removable"
				data-id="{{ video.hashed_id }}"
			>
				<input
					name="{{ name }}[]"
					type="hidden"
					value="{{ video.hashed_id }}"
				>
				<a class="delete icon"></a>
				<span class="status live"></span>
				<div class="label">
					<span class="title">{{ video.name }}</span>
				</div>
			</div>
		{% endfor %}
	</div>
	<div
		class="btn add icon dashed{% if settings.max and videos|length >= settings.max %} disabled{% endif %}"
		{% if settings.max == '1' and videos|length %}
			style="display: none"
		{% endif %}
	>
		{{ 'Add a video'|t }}
	</div>
</div>

{% set jsSettings = {
	id: id|namespaceInputId,
	limit: settings.max,
	name: name|namespaceInputName,
	projectIds: settings.projects|join(',')
} %}

{% includejs %}
	new Wistia.VideoSelectInput({{ jsSettings|json_encode|raw }});
{% endincludejs %}
Revert "Convert single quotes to double"
Revert "Convert single quotes to double"

This reverts commit 74399ebf8c4dc0f7d466919fd33ff5f3b604abb5.
