                 error: ->
                     # When an element failed to import, an error message is
                     # displayed.
-                    addEventError event
+                    addEventError event, './templates/import_event'
                     updateCounter()
                     callback()
 

                error: ->
                    # When an element failed to import, an error message is
                    # displayed.
                    addAlarmError alarm
                    updateCounter()
                    callback()


            counter++
            $('.import-counter').html counter

        addError = (element, templatePath) ->
            if $('.import-errors').html().length is 0
                $('.import-errors').html """
                <p>#{t 'import error occured for'}:</p>
                """

            $('.import-errors').append(
                require(templatePath)(element.attributes)
            )

        # Show loading spinner.
