Skip to content

Commit

Permalink
Turning "button.trip-labels" into just a one-line config
Browse files Browse the repository at this point in the history
Removed the trip-labels button and replaced it with a global one-line config named "trip-labels" which will be either ENKETO for TripConfirmSurvey or MUTLILABEL for the typical Mode: ??? Purpose: ???
- dev-emulator-program
- dev-emulator-study
- dev-emulator-program-tripconfirm
- dev-emulator-study-tripconfirm

index.html
- Changed the devapp study names to indicate which is using Tripconfirm/Multilabel and TimeUseSurvey
  • Loading branch information
sebastianbarry committed Dec 28, 2022
1 parent e29dbbf commit 3b92f72
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 30 deletions.
14 changes: 2 additions & 12 deletions configs/dev-emulator-program-tripconfirm.nrel-op.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,9 @@
"en": "",
"es": ""
}
},
"trip-labels": {
"survey-name": "TripConfirmSurvey",
"not-filled-in-label": {
"en": "Add trip details",
"es": "Agregar detalles del viaje"
},
"filled-in-label": {
"en": "Submitted",
"es": "Enviado"
}
}
}
},
"trip-labels": "ENKETO"
},
"display_config": {
"use_imperial": false
Expand Down
3 changes: 2 additions & 1 deletion configs/dev-emulator-program.nrel-op.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
"es": ""
}
}
}
},
"trip-labels": "MULTILABEL"
},
"display_config": {
"use_imperial": false
Expand Down
14 changes: 2 additions & 12 deletions configs/dev-emulator-study-tripconfirm.nrel-op.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,8 @@
},
"survey_info": {
"buttons": {
"trip-labels": {
"survey-name": "TripConfirmSurvey",
"not-filled-in-label": {
"en": "Add trip details",
"es": "Agregar detalles del viaje"
},
"filled-in-label": {
"en": "Submitted",
"es": "Enviado"
}
}
}
},
"trip-labels": "ENKETO"
},
"display_config": {
"use_imperial": false
Expand Down
3 changes: 2 additions & 1 deletion configs/dev-emulator-study.nrel-op.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
},
"survey_info": {
"buttons": {
}
},
"trip-labels": "MULTILABEL"
},
"display_config": {
"use_imperial": false
Expand Down
8 changes: 4 additions & 4 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ <h3>Join your NREL OpenPATH-powered study!</h3>
app.controller('NRELOpenPATHCtrl', function($scope) {
console.log("Initialized the controller");
$scope.currStudies = [
{name: "Devapp Program", joinurl: "emission://join_study?label=dev-emulator-program&source=github" },
{name: "Devapp Study", joinurl: "emission://join_study?label=dev-emulator-study&source=github" },
{name: "Devapp Program Tripconfirm", joinurl: "emission://join_study?label=dev-emulator-program-tripconfirm&source=github" },
{name: "Devapp Study Tripconfirm", joinurl: "emission://join_study?label=dev-emulator-study-tripconfirm&source=github" },
{name: "Devapp Program (Multilabel buttons + Timeuse Survey)", joinurl: "emission://join_study?label=dev-emulator-program&source=github" },
{name: "Devapp Study (Multilabel buttons)", joinurl: "emission://join_study?label=dev-emulator-study&source=github" },
{name: "Devapp Program (Tripconfirm survey + Timeuse Survey)", joinurl: "emission://join_study?label=dev-emulator-program-tripconfirm&source=github" },
{name: "Devapp Study (Tripconfirm survey)", joinurl: "emission://join_study?label=dev-emulator-study-tripconfirm&source=github" },
{name: "Dev Program", joinurl: "nrelopenpath://join_study?label=dev-emulator-program&source=github" },
{name: "Dev Study", joinurl: "nrelopenpath://join_study?label=dev-emulator-study&source=github" },
{name: "Testing Program", joinurl: "nrelopenpath://join_study?label=stage-program&source=github" },
Expand Down

0 comments on commit 3b92f72

Please sign in to comment.