From 5124c4ff0ae841c63bbad461db89d80bbbaf39f2 Mon Sep 17 00:00:00 2001 From: Felix Niklas Date: Fri, 5 Sep 2014 11:20:07 +0200 Subject: [PATCH] create ticket sidebar: customer info & templates --- .../controllers/agent_ticket_create.js.coffee | 8 +- .../app/controllers/widget/template.js.coffee | 2 +- .../app/views/agent_ticket_create.jst.eco | 279 +++++++++++++----- .../app/views/generic/drox.jst.eco | 4 +- .../javascripts/app/views/navigation.jst.eco | 2 +- .../app/views/ticket_zoom/edit.jst.eco | 2 +- .../app/views/widget/template.jst.eco | 33 ++- app/assets/stylesheets/zzz.css.erb | 215 +++++++++----- 8 files changed, 372 insertions(+), 173 deletions(-) diff --git a/app/assets/javascripts/app/controllers/agent_ticket_create.js.coffee b/app/assets/javascripts/app/controllers/agent_ticket_create.js.coffee index 8abbd12f3..3447539ef 100644 --- a/app/assets/javascripts/app/controllers/agent_ticket_create.js.coffee +++ b/app/assets/javascripts/app/controllers/agent_ticket_create.js.coffee @@ -185,10 +185,10 @@ class App.TicketCreate extends App.Controller ) # show template UI - new App.WidgetTemplate( - el: @el.find('.ticket_template') - template_id: template['id'] - ) + # new App.WidgetTemplate( + # el: @el.find('.ticket_template') + # template_id: template['id'] + # ) @formDefault = @formParam( @el.find('.ticket-create') ) diff --git a/app/assets/javascripts/app/controllers/widget/template.js.coffee b/app/assets/javascripts/app/controllers/widget/template.js.coffee index 9367285ea..7c12c8109 100644 --- a/app/assets/javascripts/app/controllers/widget/template.js.coffee +++ b/app/assets/javascripts/app/controllers/widget/template.js.coffee @@ -23,7 +23,7 @@ class App.WidgetTemplate extends App.ControllerDrox # insert data @html @template( file: 'widget/template' - header: 'Templates' + header: 'Select Template:' params: template: template ) diff --git a/app/assets/javascripts/app/views/agent_ticket_create.jst.eco b/app/assets/javascripts/app/views/agent_ticket_create.jst.eco index 780377332..fd1c859e5 100644 --- a/app/assets/javascripts/app/views/agent_ticket_create.jst.eco +++ b/app/assets/javascripts/app/views/agent_ticket_create.jst.eco @@ -1,96 +1,211 @@ -
-
- - -
    - -
  • - - <%- @T( 'E-Mail' ) %> - -
  • -
    - <%- @T( 'Received Call' ) %> - -
  • -
    - <%- @T( 'Outbound Call' ) %> - -
- -
- -
- - +
+
+
+ -
- - -
+
    -
    - - -
    +
  • + + <%- @T( 'E-Mail' ) %> -
    -
    -
    - - -
    -
    - - -
    -
    - - -
    -
    - - -
    +
  • +
    + <%- @T( 'Received Call' ) %> + +
  • +
    + <%- @T( 'Outbound Call' ) %> + +
+ + + +
+ +
- - + +
-
+
+ + +
- -
- <%- @T( 'Cancel & Go Back' ) %> - -
- +
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+ + +
+ +
+ + +
+ <%- @T( 'Cancel & Go Back' ) %> + +
+ +
-
-