moved cv section into own partial

This commit is contained in:
The Last Scrub
2020-11-25 22:48:01 -08:00
parent 76e6b4198a
commit 7c7ddbaff9
4 changed files with 29 additions and 53 deletions
+1
View File
@@ -7,6 +7,7 @@
export const preloadHandlebarsTemplates = async function() {
return loadTemplates([
"systems/deltagreen/templates/actor/actor-sheet.html",
"systems/deltagreen/templates/actor/cv-partial.html",
"systems/deltagreen/templates/dialog/modify-percentile-roll.html"
]);
};
+1 -26
View File
@@ -382,32 +382,7 @@
{{!-- Biography Tab --}}
<div class="tab bio" data-group="primary" data-tab="bio">
<div class="bio-grid-5col bio-grid-top-border">
<span>{{localize 'DG.CV.Sex'}}</span>
<input class="fill-remaining-space" type="text" name="data.biography.sex" value="{{data.biography.sex}}" data-dtype="String" placeholder="{{localize 'DG.CV.SexPlaceholder'}}" />
<span></span>
<span class="bio-grid-label">{{localize 'DG.CV.AgeAndDoB'}}</span>
<input class="fill-remaining-space" type="text" name="data.biography.age" value="{{data.biography.age}}" data-dtype="String" placeholder="{{localize 'DG.CV.AgeAndDoBPlaceholder'}}" />
</div>
<div class="bio-grid-2col">
<span>{{localize 'DG.CV.Employer'}}</span>
<input class="fill-remaining-space" type="text" name="data.biography.employer" value="{{data.biography.employer}}" data-dtype="String" placeholder="{{localize 'DG.CV.EmployerPlaceholder'}}" />
<span>{{localize 'DG.CV.Nationality'}}</span>
<input class="fill-remaining-space" type="text" name="data.biography.nationality" value="{{data.biography.nationality}}" data-dtype="String" placeholder="{{localize 'DG.CV.NationalityPlaceholder'}}" />
</div>
<div class="bio-grid-2col">
<span>{{localize 'DG.CV.Education'}}</span>
<input class="fill-remaining-space" type="text" name="data.biography.education" value="{{data.biography.education}}" data-dtype="String" placeholder="{{localize 'DG.CV.EducationPlaceholder'}}" />
</div>
<div>
<span style="font-weight: bold;">{{localize 'DG.CV.PhysicalDescriptionLabel'}}</span>
</div>
{{editor content=data.physicalDescription target="data.physicalDescription" button=true owner=owner editable=editable}}
{{> "systems/deltagreen/templates/actor/cv-partial.html" }}
</div>
{{!-- Bonds Tab --}}
+26
View File
@@ -0,0 +1,26 @@
<div class="bio-grid-5col bio-grid-top-border">
<span>{{localize 'DG.CV.Sex'}}</span>
<input class="fill-remaining-space" type="text" name="data.biography.sex" value="{{data.biography.sex}}" data-dtype="String" placeholder="{{localize 'DG.CV.SexPlaceholder'}}" />
<span></span>
<span class="bio-grid-label">{{localize 'DG.CV.AgeAndDoB'}}</span>
<input class="fill-remaining-space" type="text" name="data.biography.age" value="{{data.biography.age}}" data-dtype="String" placeholder="{{localize 'DG.CV.AgeAndDoBPlaceholder'}}" />
</div>
<div class="bio-grid-2col">
<span>{{localize 'DG.CV.Employer'}}</span>
<input class="fill-remaining-space" type="text" name="data.biography.employer" value="{{data.biography.employer}}" data-dtype="String" placeholder="{{localize 'DG.CV.EmployerPlaceholder'}}" />
<span>{{localize 'DG.CV.Nationality'}}</span>
<input class="fill-remaining-space" type="text" name="data.biography.nationality" value="{{data.biography.nationality}}" data-dtype="String" placeholder="{{localize 'DG.CV.NationalityPlaceholder'}}" />
</div>
<div class="bio-grid-2col">
<span>{{localize 'DG.CV.Education'}}</span>
<input class="fill-remaining-space" type="text" name="data.biography.education" value="{{data.biography.education}}" data-dtype="String" placeholder="{{localize 'DG.CV.EducationPlaceholder'}}" />
</div>
<div>
<span style="font-weight: bold;">{{localize 'DG.CV.PhysicalDescriptionLabel'}}</span>
</div>
{{editor content=data.physicalDescription target="data.physicalDescription" button=true owner=owner editable=editable}}
+1 -27
View File
@@ -28,34 +28,8 @@
<section class="sheet-body">
{{!-- Biography Tab --}}
<div class="tab bio" data-group="primary" data-tab="bio">
<div class="bio-grid-5col">
<span>{{localize 'DG.CV.Sex'}}</span>
<input class="fill-remaining-space" type="text" name="data.biography.sex" value="{{data.biography.sex}}" data-dtype="String" placeholder="{{localize 'DG.CV.SexPlaceholder'}}" />
<span></span>
<span class="bio-grid-label">{{localize 'DG.CV.AgeAndDoB'}}</span>
<input class="fill-remaining-space" type="text" name="data.biography.age" value="{{data.biography.age}}" data-dtype="String" placeholder="{{localize 'DG.CV.AgeAndDoBPlaceholder'}}" />
</div>
<div class="bio-grid-2col">
<span>{{localize 'DG.CV.Employer'}}</span>
<input class="fill-remaining-space" type="text" name="data.biography.employer" value="{{data.biography.employer}}" data-dtype="String" placeholder="{{localize 'DG.CV.EmployerPlaceholder'}}" />
<span>{{localize 'DG.CV.Nationality'}}</span>
<input class="fill-remaining-space" type="text" name="data.biography.nationality" value="{{data.biography.nationality}}" data-dtype="String" placeholder="{{localize 'DG.CV.NationalityPlaceholder'}}" />
</div>
<div class="bio-grid-2col">
<span>{{localize 'DG.CV.Education'}}</span>
<input class="fill-remaining-space" type="text" name="data.biography.education" value="{{data.biography.education}}" data-dtype="String" placeholder="{{localize 'DG.CV.EducationPlaceholder'}}" />
</div>
<div>
<span style="font-weight: bold;">{{localize 'DG.CV.PhysicalDescriptionLabel'}}</span>
</div>
{{editor content=data.physicalDescription target="data.physicalDescription" button=true owner=owner editable=editable}}
{{> "systems/deltagreen/templates/actor/cv-partial.html" }}
</div>
</section>
</form>