<div class="remodal" data-remodal-id="modal-admin-addon-media-metadata" data-remodal-options="hashTracking: false">
	<form method="post" onsubmit='return false;'>
		<div class="block block-section">
			<h1>
				<span class="header">{{ "PLUGIN_ADMIN_ADDON_MEDIA_METADATA.FORM_HEADER"|t }}</span><br>
				<span class="filename"></span>
			</h1>
		</div>
		{% for field in fields %}
			{% if field.type %}
				{% set value = data.value(field.name) %}
				<div class="block block-{{field.type}}">
					{% include ["forms/fields/#{field.type}/#{field.type}.html.twig", 'forms/fields/text/text.html.twig'] %}
				</div>
			{% endif %}
		{% endfor %}

		<div class="button-bar">
			<div class="loading">
				{{ "PLUGIN_ADMIN_ADDON_MEDIA_METADATA.WRITING_DATA"|t }} … <i class="fa fa-spinner fa-spin"></i>
			</div>

			<button class="button primary">{{ "PLUGIN_ADMIN.SAVE"|tu }}</button>
		</div>
	</form>
</div>

<div class="remodal" data-remodal-id="modal-admin-addon-media-metadata-alert" data-remodal-options="hashTracking: false">
	<form method="post" onsubmit='return false;'>
		<h1>{{ "PLUGIN_ADMIN_ADDON_MEDIA_METADATA.WRITING_FAILED"|t }}</h1>
		<p class="bigger"></p>
		<div class="button-bar">
			<button data-remodal-action="confirm" class="button primary">{{ "PLUGIN_ADMIN.CONTINUE"|tu }}</button>
		</div>
	</form>
</div>