Skip to content

Commit

Permalink
Fian lfix
Browse files Browse the repository at this point in the history
  • Loading branch information
ChasarooniZ committed Sep 16, 2024
1 parent 3562db7 commit 1681156
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
26 changes: 13 additions & 13 deletions scripts/helpers/settingsConfigForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,7 @@ export class SettingsConfigForm extends FormApplication {
id: 'pf2e-rpg-numbers-settings-form',
title: 'Pf2e RPG #s Config Menu',
width: 500,
height: 'auto',
tabs: [
{
label: "default",
title: "Default", content: "<em>Fancy tab1 content.</em>"
},
{
label: "2nd",
title: "SECOND",
content: "<em>Fancy tab2 content.</em>"
}
]
height: 'auto'
});
}

Expand All @@ -39,7 +28,18 @@ export class SettingsConfigForm extends FormApplication {
placeholder: true
};*/
return foundry.utils.mergeObject(super.getData(), {
settings: {}
settings: {},
tabs: [
{
label: "default",
title: "Default", content: "<em>Fancy tab1 content.</em>"
},
{
label: "2nd",
title: "SECOND",
content: "<em>Fancy tab2 content.</em>"
}
]
})
}

Expand Down
12 changes: 6 additions & 6 deletions templates/pf2e-rpg-settings-config.hbs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<form>
<nav class="tabs" data-group="primary-tabs">
{{#each tabs}}
<a class="item" data-tab="{{label}}"><i class="fas fa-dice-d20"></i> {{title}}</a>
{{#each tabs as |tab|}}
<a class="item" data-tab="{{tab.label}}"><i class="fas fa-dice-d20"></i> {{tab.title}}</a>
{{/each}}
</nav>

Expand All @@ -10,10 +10,10 @@
<hr>

<section class="content">
{{#each tabs}}
<div class="tab" data-tab="{{label}}" data-group="primary-tabs">
Fixed content for tab {{title}}<br>
{{{content}}}
{{#each tabs as |tab|}}
<div class="tab" data-tab="{{tab.label}}" data-group="primary-tabs">
Fixed content for tab {{tab.title}}<br>
{{{tab.content}}}
</div>
{{/each}}
</section>
Expand Down

0 comments on commit 1681156

Please sign in to comment.