Fixed incorrectly defined helpers, added item routes
This commit is contained in:
@@ -6,6 +6,9 @@
|
||||
{{name}}
|
||||
</div>
|
||||
<div id="role">
|
||||
{{alignment}} {{gender}} {{race}} {{#each class}} {{this}} {{/each}}
|
||||
{{alignment}} {{gender}} {{race}}
|
||||
</div>
|
||||
<div>
|
||||
{{> healthBar}}
|
||||
</div>
|
||||
</template>
|
||||
@@ -2,7 +2,7 @@
|
||||
<div id="hitPointBox">
|
||||
Hit Points
|
||||
<div id="hitPoints">
|
||||
<input type="number" value={{attributeValue attributes.hitPoints}}>
|
||||
<input type="number">
|
||||
</div>
|
||||
<div id="maxHitPoints">
|
||||
{{attributeValue attributes.maxHitPoints}}
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
Template.features.helpers = {
|
||||
Template.features.helpers({
|
||||
features: function(){
|
||||
var features = Features.find({character: this._id});
|
||||
console.log('found: ', features);
|
||||
return features;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Template.features.events = {
|
||||
Template.features.events({
|
||||
// Fires when any element is clicked
|
||||
'change .enabled': function (event) {
|
||||
var enable = event.target.checked
|
||||
@@ -17,4 +17,4 @@ Template.features.events = {
|
||||
Template.parentData(1).pullEffects(this.effects);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user