diff --git a/app/assets/javascripts/app/controllers/_application_controller_generic.js.coffee b/app/assets/javascripts/app/controllers/_application_controller_generic.js.coffee index 7053ade60..e51b9a2b5 100644 --- a/app/assets/javascripts/app/controllers/_application_controller_generic.js.coffee +++ b/app/assets/javascripts/app/controllers/_application_controller_generic.js.coffee @@ -203,12 +203,15 @@ class App.ControllerDrox extends App.Controller constructor: (params) -> super - if params.data && params.data.text + if params.data && ( params.data.text || params.data.html ) @inline(params.data) inline: (data) -> @html App.view('generic/drox')(data) - @el.find('.drox-body').text(data.text) + if data.text + @el.find('.drox-body').text(data.text) + if data.html + @el.find('.drox-body').html(data.html) template: (data) -> drox = $( App.view('generic/drox')(data) ) diff --git a/app/assets/javascripts/app/controllers/customer_ticket_create.js.coffee b/app/assets/javascripts/app/controllers/customer_ticket_create.js.coffee index 01e4e40d8..a6e1069dd 100644 --- a/app/assets/javascripts/app/controllers/customer_ticket_create.js.coffee +++ b/app/assets/javascripts/app/controllers/customer_ticket_create.js.coffee @@ -114,6 +114,13 @@ class Index extends App.ControllerContent # update textarea size @el.find('textarea').trigger('change') + new App.ControllerDrox( + el: @el.find('.sidebar') + data: + header: App.i18n.translateInline('What can you do here?') + html: App.i18n.translateInline('The way to communicate with us is this thing called "Ticket".') + ' ' + App.i18n.translateInline('Here you can create one.') + ) + cancel: -> @navigate '#' diff --git a/app/assets/javascripts/app/views/customer_ticket_create.jst.eco b/app/assets/javascripts/app/views/customer_ticket_create.jst.eco index de3e25bc6..a84e55d2c 100644 --- a/app/assets/javascripts/app/views/customer_ticket_create.jst.eco +++ b/app/assets/javascripts/app/views/customer_ticket_create.jst.eco @@ -1,17 +1,26 @@ -
-