Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: re-add class sheet #27

Merged
merged 1 commit into from
Dec 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions templates/item/item-class-sheet.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<form class="{{ cssClass }} backgroundstyle" autocomplete="off">
{{> "systems/fabulaultima/templates/item/partials/item-header.hbs" dtypes=dtypes}}

{{!-- Sheet Body --}}
<section class="sheet-body">
{{!-- Description Tab --}}
<div class="tab desc" data-group="primary" data-tab="description">{{editor system.description
target="system.description" rollData=rollData button=true owner=owner editable=editable}}</div>

{{!-- Attributes Tab --}}
<div class="tab attributes" data-group="primary" data-tab="attributes">
<div class="item-settings resource-content">
{{> "systems/fabulaultima/templates/item/partials/item-controls.hbs" actor=actor}}
</div>

<section class="flex1 flex-group-center desc">
<div class="desc-header resource-content">
<label class="resource-label-m">{{localize 'FU.GeneralInfo'}}</label>
</div>
<div class="resource-content card-style">
<div class="flex-group-left resource-content">
<label class="resource-label-l flexcol">{{localize 'FU.Benefits'}}</label>

{{#each system.benefits.resources as |benefit key|}}

<label class="checkbox"> <span class="resource-label-sm">{{capitalize key}}</span><input
type="checkbox" name="system.benefits.resources.{{ key }}.value" {{ checked
benefit.value }} />
</label>
{{/each}}

</div>
<div class="flex-group-left resource-content">
<label class="resource-label-l flexcol">{{localize 'FU.BenefitMartial'}}</label>

{{#each system.benefits.martials as |benefit key|}}
<label class="checkbox"> <span class="resource-label-sm">{{capitalize key}}</span><input
type="checkbox" name="system.benefits.martials.{{ key }}.value" {{ checked benefit.value
}} />
</label>
{{/each}}

</div>
<div class="flex-group-left resource-content">
<label class="resource-label-l flexcol">{{localize 'FU.BenefitRitual'}}</label>

{{#each system.benefits.rituals as |benefit key|}}
<label class="checkbox"> <span class="resource-label-sm">{{capitalize key}}</span><input
type="checkbox" name="system.benefits.rituals.{{ key }}.value" {{ checked benefit.value
}} />
</label>
{{/each}}

</div>
</div>
</section>
</div>
</section>
</form>