Files
roll20-character-sheets-tester/TailsOfEquestria/pug/tabs.pug
T
Stephen Lindberg 991549878a Tails of Equestria v1.6 (#5682)
* Fixed header banner

* Added source drop-down fields for talents and quirks.

* Removed hard-coded talents and quirks. Any data that was in these fields in v1.5 will be automatically migrated as a new row in their respective repeating sections.

* Fixed upgrades/downgrades so be rules-correct for D20/D4 cases, respectively.

* Moved Equipment and Campaign Notes to their own tabs.

* Display version # in banner.

* Updated preview image.

* Include banner graphic in repository.
2019-11-18 12:48:01 -06:00

27 lines
823 B
Plaintext

include fields.pug
//
@typedef {object} TabData
@property {string} id The ID used to identify the tab radio buttons and their
corresponding containers. The container's ID will be suffixed with
"Container".
@property {string} label The tab's label.
@property {string} include The path to the pug file defining the tab contents.
mixin tabs(groupName, tabDataList)
.tabs
// Labels
each tabData, index in tabDataList
- var checked = (index === 0) ? 'checked' : undefined;
+input('radio', groupName)(id=tabData.id, value=index, checked=checked)
label(for=tabData.id, title=tabData.tooltip)= tabData.label
// Contents
.tabContents
each tabData in tabDataList
.tab(id=tabData.id + 'Container')
block
+renderTab(tabData.id)