<div ng-controller="Umbraco.PrevalueEditors.MediaPickerController" class="umb-editor umb-contentpicker">

	<div ng-model="renderModel">
		<umb-node-preview
			ng-repeat="node in renderModel"
			icon="node.icon"
			name="node.name"
			published="node.published"
			description="node.path"
			sortable="sortable"
			allow-remove="allowRemove"
			allow-edit="allowEdit"
			on-remove="remove($index)"
			on-edit="openContentPicker()">
		</umb-node-preview>
	</div>

	<a ng-show="model.config.multiPicker === true || renderModel.length === 0"
		class="umb-node-preview-add"
		href=""
		ng-click="openContentPicker()"
		prevent-default>
		<localize key="general_add">Add</localize>
	</a>

	<umb-overlay
		ng-if="contentPickerOverlay.show"
		model="contentPickerOverlay"
		position="right"
		view="contentPickerOverlay.view">
	</umb-overlay>

</div>
