diff --git a/scripts/helpers/settingsConfigForm.js b/scripts/helpers/settingsConfigForm.js index 8b453a9..74bc98a 100644 --- a/scripts/helpers/settingsConfigForm.js +++ b/scripts/helpers/settingsConfigForm.js @@ -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"}] }); } diff --git a/templates/pf2e-rpg-settings-config.hbs b/templates/pf2e-rpg-settings-config.hbs index ae9a8b8..f8ea979 100644 --- a/templates/pf2e-rpg-settings-config.hbs +++ b/templates/pf2e-rpg-settings-config.hbs @@ -13,9 +13,11 @@
{{#each tabs as |tab|}} -
+
Fixed content for tab {{tab.title}}
- {{{tab.content}}} + {{#if home}} + {{> 'modules/pf2e-rpg-numbers/templates/settings-tabs/main-tab.hbs' this}} + {{/if}}
{{/each}}
@@ -24,8 +26,6 @@ Fixed header
{{header}}
- {{localize "pf2e-rpg-numbers.module-settings.enabled.name"}} - {{localize "pf2e-rpg-numbers.module-settings.enabled.hint"}} Fixed content
{{{content}}}
diff --git a/templates/settings-tabs/main-tab.hbs b/templates/settings-tabs/main-tab.hbs index e69de29..cd38116 100644 --- a/templates/settings-tabs/main-tab.hbs +++ b/templates/settings-tabs/main-tab.hbs @@ -0,0 +1,4 @@ +
+

{{localize "pf2e-rpg-numbers.module-settings.enabled.name"}}

+ {{localize "pf2e-rpg-numbers.module-settings.enabled.hint"}} +
\ No newline at end of file