Styling and rounding fixes for detail boxes
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
<template name="itemDetails">
|
<template name="itemDetails">
|
||||||
<div layout horizontal wrap center justified class="headline">
|
<div layout horizontal wrap center justified class="headline">
|
||||||
{{#if weight}}<div class="sideMargin">{{totalWeight}}lbs</div>{{/if}}
|
{{#if weight}}<div class="sideMargin">{{round totalWeight}}lbs</div>{{/if}}
|
||||||
{{#if value}}<div>{{valueString totalValue}}</div>{{/if}}
|
{{#if value}}<div>{{valueString totalValue}}</div>{{/if}}
|
||||||
</div>
|
</div>
|
||||||
<div layout horizontal wrap class="caption">
|
<div layout horizontal wrap class="caption">
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template name="experienceDialog">
|
<template name="experienceDialog">
|
||||||
{{#with experience}}
|
{{#with experience}}
|
||||||
{{#baseDialog title=name class=colorClass hideColor="true" startEditing=../startEditing}}
|
{{#baseDialog title=name class=colorClass hideColor="true" startEditing=../startEditing}}
|
||||||
<div horizontal layout center-justified>
|
<div horizontal layout center-justified class= "display2">
|
||||||
{{value}}
|
{{value}}
|
||||||
</div>
|
</div>
|
||||||
{{#if description}}
|
{{#if description}}
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
<template name="raceDialog">
|
<template name="raceDialog">
|
||||||
{{#baseDialog title="Race" class=colorClass hideColor="true" hideDelete="true" startEditing=startEditing}}
|
{{#baseDialog title="Race" class=colorClass hideColor="true" hideDelete="true" startEditing=startEditing}}
|
||||||
|
<div horizontal layout center-justified class= "display2">
|
||||||
|
{{race}}
|
||||||
|
</div>
|
||||||
{{> effectsViewList charId=charId parentId=charId parentGroup="racial"}}
|
{{> effectsViewList charId=charId parentId=charId parentGroup="racial"}}
|
||||||
{{> proficiencyViewList charId=charId parentId=charId parentGroup="racial"}}
|
{{> proficiencyViewList charId=charId parentId=charId parentGroup="racial"}}
|
||||||
{{else}}
|
{{else}}
|
||||||
|
|||||||
@@ -140,7 +140,12 @@ Template.attributeDialogView.helpers({
|
|||||||
return char.attributeValue(this.statName);
|
return char.attributeValue(this.statName);
|
||||||
},
|
},
|
||||||
sourceName: function(){
|
sourceName: function(){
|
||||||
if (this.parent.collection === "Characters") return this.name;
|
if (this.parent.group === "racial"){
|
||||||
|
return this.getParent().race;
|
||||||
|
}
|
||||||
|
if (this.parent.collection === "Characters"){
|
||||||
|
return this.name;
|
||||||
|
}
|
||||||
return this.getParent().name;
|
return this.getParent().name;
|
||||||
},
|
},
|
||||||
operationName: function(){
|
operationName: function(){
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ Template.feedback.events({
|
|||||||
url: window.location.href,
|
url: window.location.href,
|
||||||
session: _.pairs(Session.keys),
|
session: _.pairs(Session.keys),
|
||||||
};
|
};
|
||||||
console.log(report);
|
|
||||||
Meteor.call("insertReport", report);
|
Meteor.call("insertReport", report);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user