From f36021680f2ba77758d39bb0516f5a0d2f7d29e9 Mon Sep 17 00:00:00 2001 From: Fernando Brito Date: Fri, 6 Jun 2014 11:59:49 -0300 Subject: [PATCH] [Wizard] Green/red button on all steps --- app/views/v_libras/requests/_position_step.haml | 4 +++- app/views/v_libras/requests/_service_step.haml | 4 +++- app/views/v_libras/requests/_size_step.haml | 4 +++- app/views/v_libras/requests/_video_step.haml | 4 ++-- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/app/views/v_libras/requests/_position_step.haml b/app/views/v_libras/requests/_position_step.haml index b9a98a2..2b076b0 100644 --- a/app/views/v_libras/requests/_position_step.haml +++ b/app/views/v_libras/requests/_position_step.haml @@ -9,7 +9,9 @@ $(function () { var optionsPosition = { video: { width: 940, height: 530 }, - buttons: [ { id: 'b_loc_1', path: '/system/images/loc/p_1.png', clickable: false, start: 7.6, end: 8.5, x: 670, y: 340, delay: 300, value: null }, + buttons: [ { id: 'btn-red-light3', path: '/system/images/video/red-button.png', clickable: false, start: 0.0, end: 19.5, x: 440, y: 510, delay: 300, value: null }, + { id: 'btn-green-light3', path: '/system/images/video/green-button.png', clickable: false, start: 19.5, end: 999, x: 440, y: 510, delay: 300, value: null }, + { id: 'b_loc_1', path: '/system/images/loc/p_1.png', clickable: false, start: 7.6, end: 8.5, x: 670, y: 340, delay: 300, value: null }, { id: 'b_loc_2', path: '/system/images/loc/p_2.png', clickable: false, start: 10, end: 10.5, x: 160, y: 340, delay: 300, value: null }, { id: 'b_loc_3', path: '/system/images/loc/p_3.png', clickable: false, start: 12, end: 12.5, x: 210, y: 40, delay: 300, value: null }, { id: 'b_loc_4', path: '/system/images/loc/p_4.png', clickable: false, start: 14, end: 14.5, x: 650, y: 80, delay: 300, value: null }, diff --git a/app/views/v_libras/requests/_service_step.haml b/app/views/v_libras/requests/_service_step.haml index da07054..a6b6c93 100644 --- a/app/views/v_libras/requests/_service_step.haml +++ b/app/views/v_libras/requests/_service_step.haml @@ -17,7 +17,9 @@ $(function () { var optionsService = { video: { width: 940, height: 530 }, - buttons: [ { id: 'b_aS_1', path: '/system/images/sub_audio/p_1.png', clickable: false, start: 20, end: 21, x: 700, y: 390, delay: 300, value: null }, + buttons: [ { id: 'btn-red-light2', path: '/system/images/video/red-button.png', clickable: false, start: 0.0, end: 26.5, x: 440, y: 510, delay: 300, value: null }, + { id: 'btn-green-light2', path: '/system/images/video/green-button.png', clickable: false, start: 26.5, end: 999, x: 440, y: 510, delay: 300, value: null }, + { id: 'b_aS_1', path: '/system/images/sub_audio/p_1.png', clickable: false, start: 20, end: 21, x: 700, y: 390, delay: 300, value: null }, { id: 'b_aS_2', path: '/system/images/sub_audio/p_2.png', clickable: false, start: 24.5, end: 25.5, x: 150, y: 410, delay: 300, value: null }, { id: 'btn-video-legenda', path: '/system/images/sub_audio/p_1.png', clickable: true, start: 26, end: 9999, x: 790, y: 410, delay: 300 }, { id: 'btn-video', path: '/system/images/sub_audio/p_2.png', clickable: true, start: 26, end: 9999, x: 35, y: 410, delay: 300 } diff --git a/app/views/v_libras/requests/_size_step.haml b/app/views/v_libras/requests/_size_step.haml index 78cc3a4..de3926f 100644 --- a/app/views/v_libras/requests/_size_step.haml +++ b/app/views/v_libras/requests/_size_step.haml @@ -10,7 +10,9 @@ $(function () { var optionsSize = { video: { width: 940, height: 530 }, - buttons: [ { id: 'b1_size_small', path: '/system/images/size/p_1.png', clickable: false, start: 6.8, end: 7.8, x: 688, y: 338, delay: 300, value: null }, + buttons: [ { id: 'btn-red-light4', path: '/system/images/video/red-button.png', clickable: false, start: 0.0, end: 11.5, x: 440, y: 510, delay: 300, value: null }, + { id: 'btn-green-light4', path: '/system/images/video/green-button.png', clickable: false, start: 11.5, end: 999, x: 440, y: 510, delay: 300, value: null }, + { id: 'b1_size_small', path: '/system/images/size/p_1.png', clickable: false, start: 6.8, end: 7.8, x: 688, y: 338, delay: 300, value: null }, { id: 'b1_size_med', path: '/system/images/size/p_2.png', clickable: false, start: 8.2, end: 9.2, x: 628, y: 292, delay: 300, value: null }, { id: 'b1_size_big', path: '/system/images/size/p_3.png', clickable: false, start: 9.7, end: 10.7, x: 560, y: 240, delay: 300, value: null}, { id: 'b2_size_small', path: '/system/images/size/p_1.png', clickable: true, start: 11.3, end: 9999, x: 688, y: 338, delay: 300, value: "pequeno" }, diff --git a/app/views/v_libras/requests/_video_step.haml b/app/views/v_libras/requests/_video_step.haml index b9ac638..d4883cc 100644 --- a/app/views/v_libras/requests/_video_step.haml +++ b/app/views/v_libras/requests/_video_step.haml @@ -20,8 +20,8 @@ $(function () { var optionsVideo = { video: { width: 940, height: 530 }, - buttons: [ { id: 'btn-red-light', path: '/system/images/video/red-button.png', clickable: false, start: 0.0, end: 25, x: 440, y: 510, delay: 300, value: null }, - { id: 'btn-green-light', path: '/system/images/video/green-button.png', clickable: false, start: 25, end: 999, x: 440, y: 510, delay: 300, value: null } + buttons: [ { id: 'btn-red-light1', path: '/system/images/video/red-button.png', clickable: false, start: 0.0, end: 25, x: 440, y: 510, delay: 300, value: null }, + { id: 'btn-green-light1', path: '/system/images/video/green-button.png', clickable: false, start: 25, end: 999, x: 440, y: 510, delay: 300, value: null } ] }; -- libgit2 0.21.2