From 5e5521c830640e08a0459e4cc222fbf41d10aed6 Mon Sep 17 00:00:00 2001 From: Dave Earley Date: Tue, 3 May 2016 21:44:18 +0100 Subject: [PATCH] Started implementing vue.js --- .../Controllers/EventCheckInController.php | 1 + resources/views/ManageEvent/CheckIn.blade.php | 261 ++++++++++-------- .../Modals/CreateQuestion.blade.php | 8 +- 3 files changed, 154 insertions(+), 116 deletions(-) diff --git a/app/Http/Controllers/EventCheckInController.php b/app/Http/Controllers/EventCheckInController.php index 11fd1c1e..4c766a6b 100644 --- a/app/Http/Controllers/EventCheckInController.php +++ b/app/Http/Controllers/EventCheckInController.php @@ -28,6 +28,7 @@ class EventCheckInController extends MyBaseController ]; JavaScript::put([ + 'attendees' => $event->attendees, 'qrcodeCheckInRoute' => route('postQRCodeCheckInAttendee', ['event_id' => $event->id]), 'checkInRoute' => route('postCheckInAttendee', ['event_id' => $event->id]), 'checkInSearchRoute' => route('postCheckInSearch', ['event_id' => $event->id]), diff --git a/resources/views/ManageEvent/CheckIn.blade.php b/resources/views/ManageEvent/CheckIn.blade.php index ed4b1858..8ec32be8 100644 --- a/resources/views/ManageEvent/CheckIn.blade.php +++ b/resources/views/ManageEvent/CheckIn.blade.php @@ -1,130 +1,171 @@ - - - Check In: {{$event->title}} - + + + Check In: {{$event->title}} + - {!! HTML::style('assets/stylesheet/application.css') !!} - {!! HTML::style('assets/stylesheet/check_in.css') !!} - {!! HTML::script('vendor/jquery/jquery.js') !!} + {!! HTML::style('assets/stylesheet/application.css') !!} + {!! HTML::style('assets/stylesheet/check_in.css') !!} + {!! HTML::script('vendor/jquery/jquery.js') !!} - @include('Shared/Layouts/ViewJavascript') - + @include('Shared/Layouts/ViewJavascript') + - - - + + + - - - -
- +
- {!! HTML::script('vendor/qrcode-scan/llqrcode.js') !!} - {!! HTML::script('assets/javascript/backend.js') !!} - {!! HTML::script('assets/javascript/check_in.js') !!} +
+
+
+
+
+

+ All Attendees +

+
    + Loading Attendees... +
+
+
+
+
+
- + + +{{--QR Modal--}} + +{{-- /END QR Modal--}} +{!! HTML::script('https://cdnjs.cloudflare.com/ajax/libs/vue/1.0.21/vue.js') !!} + + + + +{!! HTML::script('vendor/qrcode-scan/llqrcode.js') !!} +{!! HTML::script('assets/javascript/backend.js') !!} +{!! HTML::script('assets/javascript/check_in.js') !!} +{!! HTML::script('https://cdnjs.cloudflare.com/ajax/libs/vue/1.0.21/vue.js') !!} + + \ No newline at end of file diff --git a/resources/views/ManageEvent/Modals/CreateQuestion.blade.php b/resources/views/ManageEvent/Modals/CreateQuestion.blade.php index 64d37cf1..8c4aee1b 100644 --- a/resources/views/ManageEvent/Modals/CreateQuestion.blade.php +++ b/resources/views/ManageEvent/Modals/CreateQuestion.blade.php @@ -55,12 +55,8 @@
has_options) ? ' class="hide"' : '' !!}>

Question Options

- - - - - - +
Option name
+