<div ng-controller="Umbraco.PrevalueEditors.MediaPickerController" class="umb-property-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="openTreePicker()">
		</umb-node-preview>
	</div>

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

</div>
