From c21efeeb633202a46f6e00121f3fa6f928177e0c Mon Sep 17 00:00:00 2001 From: Daniel Herrero Date: Wed, 14 Mar 2018 12:12:06 +0100 Subject: [PATCH] ticket summary structure --- client/ticket/routes.json | 8 ++++++++ client/ticket/src/list/ticket-item.html | 2 +- client/ticket/src/summary/ticket-summary.html | 9 +++++++++ client/ticket/src/summary/ticket-summary.js | 12 ++++++++++++ client/ticket/src/ticket.js | 1 + 5 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 client/ticket/src/summary/ticket-summary.html create mode 100644 client/ticket/src/summary/ticket-summary.js diff --git a/client/ticket/routes.json b/client/ticket/routes.json index eb2a208c0..74908edd0 100644 --- a/client/ticket/routes.json +++ b/client/ticket/routes.json @@ -26,6 +26,14 @@ "abstract": true, "component": "vn-ticket-card" }, + { + "url": "/summary", + "state": "ticket.card.summary", + "component": "vn-ticket-summary", + "params": { + "ticket": "$ctrl.ticket" + } + }, { "url" : "/data", "state": "ticket.card.data", diff --git a/client/ticket/src/list/ticket-item.html b/client/ticket/src/list/ticket-item.html index d245d04ab..1db1da939 100644 --- a/client/ticket/src/list/ticket-item.html +++ b/client/ticket/src/list/ticket-item.html @@ -1,5 +1,5 @@ diff --git a/client/ticket/src/summary/ticket-summary.html b/client/ticket/src/summary/ticket-summary.html new file mode 100644 index 000000000..020e275ec --- /dev/null +++ b/client/ticket/src/summary/ticket-summary.html @@ -0,0 +1,9 @@ + + + +
Ticket Summary
+
+ + +
+
\ No newline at end of file diff --git a/client/ticket/src/summary/ticket-summary.js b/client/ticket/src/summary/ticket-summary.js new file mode 100644 index 000000000..ac62d499e --- /dev/null +++ b/client/ticket/src/summary/ticket-summary.js @@ -0,0 +1,12 @@ +import ngModule from '../module'; + +class TicketSummary {} +TicketSummary.$inject = []; + +ngModule.component('vnTicketSummary', { + template: require('./ticket-summary.html'), + controller: TicketSummary, + bindings: { + ticket: '<' + } +}); diff --git a/client/ticket/src/ticket.js b/client/ticket/src/ticket.js index 92b0b6ec8..12d84e555 100644 --- a/client/ticket/src/ticket.js +++ b/client/ticket/src/ticket.js @@ -3,4 +3,5 @@ export * from './module'; import './list/ticket-list'; import './create/ticket-create'; import './card/ticket-card'; +import './summary/ticket-summary'; import './data/ticket-data';