define(["Marionette"],function(a){return a.LayoutView.extend({initialize:function(a){this.lessonsModel=a.lessonsModel,this.settingsModel=a.settingsModel,_.bindAll(this,"template")},template:function(){return window.Tmpl.picLesson({lesson:this.lessonsModel.getLessonJSON(),filterCss:this.settingsModel.getPictureLessonSelected().filterCss&&this.settingsModel.getPictureLessonSelected().filterCss()})},events:{"click .action":"triggerHandler"},triggerHandler:function(a){componentUtils.stopEvent(a),this.trigger("request:"+a.currentTarget.dataset.action,a.currentTarget.dataset.id)}})});