{assign var=helperImageValue value=$value->getValue()}
{assign var=helperImageName value=$name->getValue()}
<input type="hidden" name="{$fieldValue}" value="{$helperImageValue}">
<input type="hidden" name="{$fieldName}" value="{$helperImageName}">
<div class="fileinput input-group margin-bottom-0{if !empty($helperImageValue)} fileinput-exists{else} fileinput-new{/if}" data-provides="fileinput" data-value="{$fieldValue}" data-filename="{$fieldName}" data-uploader="{$fieldFile}">
	<div class="fileinput_uploading hide">
		<div class="fileinput_uploading_ct">
			<div class="fileinput_uploading_ct_c c1"><svg><use xlink:href="{url mode="root"}theme/dobry-start/images/icons/svg/sprite.svg#shape-loading"></use></svg></div>
			<div class="fileinput_uploading_ct_c c2">Wgrywanie pliku</div>
		</div>
	</div>
	<div class="form-control" data-trigger="fileinput">
		<i class="glyphicon glyphicon-file fileinput-exists"></i>
		<span class="fileinput-filename">{$helperImageName}</span>
	</div>
	<span class="input-group-addon btn btn-default btn-file">
		<span class="fileinput-new">Wybierz plik</span>
		<span class="fileinput-exists">Zmień</span>
		<input type="file" name="{$fieldFile}"/>
	</span>
	<a href="#" class="input-group-addon btn btn-default fileinput-exists" data-dismiss="fileinput">Usuń</a>
</div>