 				collection: @image_collection
 				child_control: (model) ->
 					console.log "foo"
-					new ImageItem({ model: model })
+					new ImageListItem({ model: model })
 
 		on_render: ->
 			el = @collection_controller.render().el

			@$(".editor").empty().append(el)


	class EditGalleryView extends CoffeeBar.TemplateController
		events:
			"click .btn-ok": "do_submit"
			"click .btn-cancel": "do_cancel"


			false

	class GalleryImagesEditor extends CoffeeBar.TemplateController
		template: jade["gallery/edit_images.jade"]

		initialize: ->
