{{#if (and (eq category.id "snapshots") category.entries.length)}}
<div class="form-group" data-bulk-actions aria-label="{{localize "SETUP.BACKUPS.BulkActions"}}">
    <label>
        <input type="checkbox" data-action="selectAll">
        {{localize "SelectAll"}}
    </label>
    <div class="form-fields">
        <button type="button" data-action="deleteSnapshots">{{localize "DeleteSelected"}}</button>
    </div>
</div>
{{/if}}

{{#each category.entries as |entry|}}
<div class="form-group package{{#if entry.snapshotId}} slim{{/if}}" data-entry data-title="{{entry.label}}"
     {{#if entry.id}}data-id="{{entry.id}}"{{/if}}
     {{#if entry.type}}data-type="{{entry.type}}"{{/if}}
     {{#if entry.backupId}}data-backup-id="{{entry.backupId}}"{{/if}}
     {{#if entry.snapshotId}}data-snapshot-id="{{entry.snapshotId}}"{{/if}}>
    <label class="ellipsis">
        {{~#if entry.snapshotId}}
            <input type="checkbox" name="{{entry.snapshotId}}">
        {{/if}}
        {{entry.label}}
    </label>
    <div class="form-fields">
        {{#unless entry.snapshotId}}
        <button type="button" data-action="manageBackup">{{localize "SETUP.BACKUPS.Manage"}}</button>
        {{#if entry.packageExists}}
        <button type="button" data-action="takeBackup">
            <i class="fa-solid fa-floppy-disk" inert></i>
            {{localize "SETUP.BACKUPS.TakeBackup"}}
        </button>
        {{/if}}
        {{/unless}}
        <button type="button" data-action="restoreBackup"
            {{#if entry.noRestore}}disabled data-tooltip="SETUP.BACKUPS.CannotRestoreUnusable"{{/if}}>
            <i class="fa-solid fa-arrow-rotate-left" inert></i>
            {{localize entry.restoreLabel}}
        </button>
    </div>
    {{~#if entry.hint}}
    <p class="hint">{{entry.hint}}</p>
    {{/if~}}
    <div class="tags flexrow">
        {{#each entry.tags as |tag|}}
        <span class="tag flexrow{{#if tag.type}} badge {{tag.type}}{{/if}}"
              {{#if tag.tooltip}}data-tooltip aria-label="{{tag.tooltip}}"{{/if}}>
            {{~#if tag.icon}}
            <i class="{{tag.icon}}" inert></i>
            {{/if~}}
            {{tag.label}}
        </span>
        {{/each}}
    </div>
</div>
{{/each}}
