<xf:macro id="extra_attrs" arg-config="!" arg-formPrefix="!">

	<xf:formrow rowtype="input"
		label="{{ phrase('extra_attributes') }}">

		<ul class="listPlain inputGroup-container">
			<xf:foreach loop="{$config.extra_attributes}" key="$name" value="$value">
				<li class="inputGroup"dir="ltr" >
					<xf:textbox name="{$formPrefix}[extra_attr_names][]" value="{$name}" size="15" code="true"
						placeholder="{{ phrase('name') }}" />
					<span class="inputGroup-splitter"></span>
					<xf:textbox name="{$formPrefix}[extra_attr_values][]" value="{$value}" size="25" code="true"
						placeholder="{{ phrase('value') }}" />
				</li>
			</xf:foreach>
			<li class="inputGroup" data-xf-init="field-adder" dir="ltr" >
				<xf:textbox name="{$formPrefix}[extra_attr_names][]" size="15" code="true"
					placeholder="{{ phrase('name') }}" />
				<span class="inputGroup-splitter"></span>
				<xf:textbox name="{$formPrefix}[extra_attr_values][]" size="25" code="true"
					placeholder="{{ phrase('value') }}" />
			</li>
		</ul>
	</xf:formrow>
</xf:macro>