<div class="form-body">
    <p class="notes">
        {{{description}}}
    </p>

    <div class="table-container">
        <table class="cc-tab-picker">
            <thead>
                <tr>
                    <th>{{ccLocalize "ui.tabName"}}</th>
                    {{#each sheetTypes as |sheet|}}
                    <th title="{{sheet.label}}" colspan="2">{{#unless (eq sheet.label
                        'Shop')}}{{sheet.label}}{{else}}Entry{{/unless}}</th>
                    {{/each}}
                </tr>
                <tr>
                    <th></th>
                    {{#each sheetTypes as |sheet|}}
                    <th class="sub-header" title="{{ccLocalize 'ui.defaultVisible'}}"><i class="fas fa-power-off"></i>
                    </th>
                    <th class="sub-header" title="{{ccLocalize 'ui.hiddenFromPlayer'}}"><i class="fas fa-eye-slash"></i>
                    </th>
                    {{/each}}
                </tr>
            </thead>
            <tbody>
                {{#each tabRows as |row|}}
                <tr>
                    <td><strong>{{row.label}}</strong></td>

                    {{#each row.sheets as |cell|}}
                    {{#if cell.exists}}
                    <td class="checkbox-cell">
                        <input type="checkbox" name="{{cell.nameVisible}}" {{checked cell.visible}}
                            title="{{cell.sheetName}} - {{cell.tabLabel}} (Visible)">
                    </td>
                    <td class="checkbox-cell player-hidden">
                        {{#unless ../isNotes}}
                        <input type="checkbox" name="{{cell.nameHidden}}" {{checked cell.hidden}}
                            title="{{cell.sheetName}} - {{cell.tabLabel}} (Hidden from Player)">
                        {{else}}
                        <span class="no-tab">&mdash;</span>
                        {{/unless}}
                    </td>
                    {{else}}
                    <td colspan="2" class="no-tab">&mdash;</td>
                    {{/if}}
                    {{/each}}
                </tr>
                {{/each}}
            </tbody>
        </table>
    </div>
</div>