Skip to content

Commit

Permalink
Firs ttest again
Browse files Browse the repository at this point in the history
  • Loading branch information
ChasarooniZ committed Sep 17, 2024
1 parent 1fd21cb commit 29c8506
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion scripts/helpers/settingsConfigForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ export class SettingsConfigForm extends FormApplication {
id: 'pf2e-rpg-numbers-settings-form',
title: 'Pf2e RPG #s Config Menu',
width: 800,
height: 'auto'
height: 'auto',
tabs: [{navSelector: ".tabs", contentSelector: ".content", initial: "tab1"}]
});
}

Expand Down
8 changes: 4 additions & 4 deletions templates/pf2e-rpg-settings-config.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@

<section class="content">
{{#each tabs as |tab|}}
<div class="tab" data-tab="{{tab.label}}" data-group="primary-tabs">
<div class="tab" data-tab="{{tab.id}}" data-group="primary-tabs">
Fixed content for tab {{tab.title}}<br>
{{{tab.content}}}
{{#if home}}
{{> 'modules/pf2e-rpg-numbers/templates/settings-tabs/main-tab.hbs' this}}
{{/if}}
</div>
{{/each}}
</section>
Expand All @@ -24,8 +26,6 @@
<b>Fixed header</b><br>
{{header}}
<hr>
{{localize "pf2e-rpg-numbers.module-settings.enabled.name"}}
{{localize "pf2e-rpg-numbers.module-settings.enabled.hint"}}
Fixed content<br>
{{{content}}}
<hr>
Expand Down
4 changes: 4 additions & 0 deletions templates/settings-tabs/main-tab.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<form>
<h3>{{localize "pf2e-rpg-numbers.module-settings.enabled.name"}}</h3>
{{localize "pf2e-rpg-numbers.module-settings.enabled.hint"}}
</form>

0 comments on commit 29c8506

Please sign in to comment.