added 260907 version of worker toolkit

This commit is contained in:
2026-09-08 20:30:51 -04:00
parent cbd3f0f8ca
commit 97aca37663
1283 changed files with 142951 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
import Ember from 'ember';
export default Ember.Component.extend({
model: Ember.computed.alias('parentView.model'),
profile: Ember.computed.alias('model.profile'),
educationLevels: Ember.computed(function() {
return this.store.findAll('educationLevel');
}),
ethnicities: Ember.computed(function() {
return this.store.findAll('ethnicity');
}),
dayHabits: Ember.computed(function() {
return this.store.findAll('dayHabit');
}),
actions: {
validateNumber(event) {
const inputVar = document.getElementById("input-num");
if(event.target.value > 24 || event.target.value < 0) {
alert("Must be a number between 0 - 24");
inputVar.value = "";
return;
}
inputVar.disabled = false;
},
completeStep() {
this.get('profile').save().then( () => {
this.get('onStepCompleted')();
});
},
goBack() {
this.get('onGoBack')();
}
}
});