diff --git a/angular_app/events-list.html b/angular_app/events-list.html index aae7581..bfbbe2c 100644 --- a/angular_app/events-list.html +++ b/angular_app/events-list.html @@ -45,7 +45,7 @@

{{attendeesNr}} / {{event.persons.length || 0}} ({{((attendeesNr / (event.persons.length || 0) * 100) || 0).toFixed()}}%)

- + diff --git a/angular_app/js/app.js b/angular_app/js/app.js index 55e0f5b..e6e227e 100644 --- a/angular_app/js/app.js +++ b/angular_app/js/app.js @@ -134,6 +134,19 @@ eventManApp.config(['$stateProvider', '$urlRouterProvider', templateUrl: 'person-info.html', controller: 'PersonDetailsCtrl' }) + .state('event.ticket', { + templateUrl: 'ticket-main.html' + }) + .state('event.ticket.new', { + url: '/:id/ticket/new', + templateUrl: 'ticket-edit.html', + controller: 'EventDetailsCtrl' + }) + .state('event.ticket.edit', { + url: '/:id/ticket/edit', + templateUrl: 'ticket-edit.html', + controller: 'EventDetailsCtrl' + }) .state('import', { url: '/import', templateUrl: 'import-main.html' diff --git a/angular_app/ticket-edit.html b/angular_app/ticket-edit.html new file mode 100644 index 0000000..44189f2 --- /dev/null +++ b/angular_app/ticket-edit.html @@ -0,0 +1,50 @@ + +
+
+
+
+
+

{{event.title}} - {{'new ticket' | translate}}

+
+
+
+ +
+
+
+
+
{{'Register to this event' | translate}}
+
+
+
+ {{'Name' | translate}} + +
+
+ {{'Surname' | translate}} + +
+
+ {{'Email' | translate}} + +
+
+ {{'Company' | translate}} + +
+
+ {{'Job' | translate}} + +
+ + +
+
+
+
+
+
+
diff --git a/angular_app/ticket-main.html b/angular_app/ticket-main.html new file mode 100644 index 0000000..398cfd9 --- /dev/null +++ b/angular_app/ticket-main.html @@ -0,0 +1,2 @@ + +