Refactor header and layout templates for improved accessibility and consistency

This commit is contained in:
seve12 2025-08-06 19:18:01 +03:00
parent f9fb02457c
commit 6a713d9e8d
5 changed files with 26 additions and 14 deletions

View file

@ -340,12 +340,12 @@ BlazeComponent.extendComponent({
selectable: true,
timezone: 'local',
weekNumbers: true,
header: {
left: 'title today prev,next',
center:
'agendaDay,listDay,timelineDay agendaWeek,listWeek,timelineWeek month,listMonth',
right: '',
headerToolbar: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
footerToolbar: false,
// height: 'parent', nope, doesn't work as the parent might be small
height: 'auto',
/* TODO: lists as resources: https://fullcalendar.io/docs/vertical-resource-view */

View file

@ -1,5 +1,5 @@
template(name="boardHeaderBar")
h1.header-board-menu
h1.header-board-menu {{currentBoard.title}}
with currentBoard
if $eq title 'Templates'
| {{_ 'templates'}}
@ -137,8 +137,11 @@ template(name="boardHeaderBar")
i.fa.fa-check-square-o
span {{#if MultiSelection.isActive}}{{_ 'multi-selection-on'}}{{else}}{{_ 'multi-selection'}}{{/if}}
if MultiSelection.isActive
a.board-header-btn-close.js-multiselection-reset(title="{{_ 'filter-clear'}}")
i.fa.fa-times-thin
a.board-header-btn-close.js-multiselection-reset(
title="{{_ 'deactivate-multi-selection'}}"
aria-label="{{_ 'deactivate-multi-selection'}}"
)
i.fa.fa-times-thin
.separator
a.board-header-btn.js-toggle-sidebar(title="{{_ 'sidebar-open'}} {{_ 'or'}} {{_ 'sidebar-close'}}")