fixed up bonds and motivations sheets

This commit is contained in:
TheLastScrub
2021-06-05 10:53:53 -07:00
parent 863897b053
commit e0e81933de
3 changed files with 32 additions and 17 deletions
+15
View File
@@ -653,4 +653,19 @@ div.motivation-editor-container div.editor{
padding-bottom: 10px;
column-gap: 10px;
row-gap: 10px;
padding-right: 5px;
}
/*
Motivation Item Sheet
*/
.motivation-sheet-horizontal-grid-2col{
display: grid;
grid-template-columns:50% 50%;
align-items: center;
justify-content: center;
text-align: left;
padding-left: 5px;
grid-gap: 5px;
}
+3 -3
View File
@@ -4,16 +4,16 @@
<img class="profile-img" src="{{item.img}}" data-edit="img" title="{{item.name}}" />
<div class="bond-sheet-horizontal-grid-2col">
<span>{{localize 'DG.Bonds.Name'}}:</span>
<span class="resource-label">{{localize 'DG.Bonds.Name'}}:</span>
<input name="name" type="text" value="{{item.name}}" placeholder="{{localize 'DG.Bonds.Name'}}" />
<!-- <label class="resource-label">{{localize 'DG.Bonds.Score'}}</label> -->
<span>{{localize 'DG.Bonds.Score'}}:</span>
<span class="resource-label">{{localize 'DG.Bonds.Score'}}:</span>
<input type="text" name="data.score" value="{{data.data.score}}" data-dtype="Number"
title="{{localize 'DG.ItemWindow.Bonds.ScoreTooltip'}}"
/>
<span>{{localize 'DG.Bonds.Relationship'}}:</span>
<span class="resource-label">{{localize 'DG.Bonds.Relationship'}}:</span>
<input type="text" name="data.relationship" value="{{data.data.relationship}}" data-dtype="String" />
</div>
+14 -14
View File
@@ -6,20 +6,20 @@
<a class="item" data-tab="description">{{localize 'DG.ItemWindow.Motivations.Description'}}</a>
</nav>
{{!-- Sheet Body --}}
{{!-- Sheet Body motivation-sheet-horizontal-grid-2col --}}
<section class="sheet-body">
<div class="tab attributes" data-group="primary" data-tab="attributes">
<div class="motivation-section resource">
<label class="resource-label">{{localize 'DG.ItemWindow.Motivations.IsDisorder'}}: </label>
<input class="labeled-resource-checkbox" type="checkbox" name="data.crossedOut" {{checked data.data.crossedOut}} data-dtype="Boolean"
<div class="motivation-sheet-horizontal-grid-2col">
<span class="resource-label">{{localize 'DG.ItemWindow.Motivations.IsDisorder'}}:</span>
<input type="checkbox" name="data.crossedOut" {{checked data.data.crossedOut}} data-dtype="Boolean"
title="{{localize 'DG.ItemWindow.Motivations.IsDisorderTooltip'}}"
/>
</div>
<div class="resource">
<label class="resource-label">{{localize 'DG.ItemWindow.Motivations.Motivation'}}</label>
<span class="resource-label">{{localize 'DG.ItemWindow.Motivations.Motivation'}}:</span>
<input type="text" name="name" value="{{item.name}}" placeholder="" data-dtype="String"
title="{{localize 'DG.ItemWindow.Motivations.MotivationNameTooltip'}}"
@@ -30,27 +30,27 @@
disabled
{{/if}}
/>
</div>
{{!-- Only Show the Disorders Section if Motivation Lost Checked --}}
{{#if data.data.crossedOut}}
<div class="resource">
<label class="resource-label">{{localize 'DG.ItemWindow.Motivations.Disorder'}}</label>
<span class="resource-label">{{localize 'DG.ItemWindow.Motivations.Disorder'}}:</span>
<input type="text" name="data.disorder" value="{{data.data.disorder}}" data-dtype="String"
title="{{localize 'DG.ItemWindow.Motivations.DisorderNameTooltip'}}"
/>
</div>
<div class="motivation-section resource">
<label class="resource-label">{{localize 'DG.ItemWindow.Motivations.DisorderHasBeenCured'}}: </label>
<span class="resource-label">{{localize 'DG.ItemWindow.Motivations.DisorderHasBeenCured'}}: </span>
<input class="labeled-resource-checkbox" type="checkbox" name="data.disorderCured" {{checked data.data.disorderCured}} data-dtype="Boolean"
title="{{localize 'DG.ItemWindow.Motivations.DisorderHasBeenCuredTooltip'}}"
/>
</div>
{{/if}}
</div>
</div>
<div class="tab attributes" data-group="primary" data-tab="description">