<div class="form-group">
	<label style="float: right;" ng-if="editmode === 'true'" class="formlyEditDelete">
		<a ng-click="$parent.$parent.edit(options)">
			{{"Edit" | translate}}
		</a>
		|
		<a ng-click="$parent.$parent.deleteField(options)">
			{{"Delete" | translate}}
		</a>
	</label>
	<label for="{{id}}">
		{{options.label || 'Attachment'}}{{options.required ? '*' : ''}}
	</label>
	<wizdom365-image-picker ng-model="value"
							multiple="options.properties.multiple"
							validate-format="'false'"
							result-as-object="true"
							wizdommodule="Webforms">
	</wizdom365-image-picker>
	<div ng-if="value">
		<div ng-repeat="item in value">
			<a ng-href="{{item.Url}}" target="_blank">
				{{item.FileName}}
			</a>
			<a href=""
			   ng-click="value.splice(options.value.indexOf(item), 1);"
			   aria-hidden="true">
				<span class="glyphicon glyphicon-remove"></span>
			</a>
		</div>
	</div>
</div>