{#- What a maintenance editor says beneath its fields (ADR-0150, landing 4; #35's note, decision 4): the windows added by hand, each with ×, and the starts a file added or left out, carried through; then the next windows of what it would set — five, a clock-change night's marked with how long it really lasts, the first being the first day on or after *Starts* that its rule picks — and the entry's sentence, the last thing read before *Set maintenance*; or why it cannot be set as it stands. One macro, so that the part beneath the fields is the same rendering with script and without: without, *Preview* asks the server for the whole editor back; with, the script asks `maintenance_preview` for this part alone and puts it in place (`standalone`). Every × is a button of the form, which without script sends the editor back with the window gone and with script takes it away in place. **The month comes first** (landing 5; #35's note, decision 4), and what a click on one of its days adds or leaves out is listed beneath it with ×. The month is a part of its own, `ls-schedule-month`, and the rest another, `ls-schedule-said`, which alone is a live region: with script each is put in place on its own, so that a screen reader is told what the fields would set as they change, not every day of the month again. **A standing entry's editor comes without its month** (ADR-0150 decision 17), its part drawn empty and marked `data-ls-ask`: a page lists an editor for every entry that stands, and the month is most of each one's weight. *Preview* draws it without script, and with script the editor asks for it as its *Edit* opens and puts it in place alone, the live region left as it stands. -#} {#- The editor's month (ADR-0150, landing 5): its name between its paging — the year and the month before, the month and the year after — and its six weeks, Monday first, each day of it a button of the form whose name says its date, its hours, what the text and the holiday list say of it and what a click does; a day of the month before or after it stands for where it is, drawn and not read, and nothing is done with it. Without script every day and every page is a button that sends the editor back with it done; with script the grid is one tab stop that the arrow keys move across, as a date picker is, and a day or a page is done in place (`maintenance-edit.js`), which names it a grid then. A day shows its hours — each window that starts on it, from and to — and on a phone instead its span as a bar, the hours of it any window covers; the time of a window it leaves out struck; a night the clocks change its note. The month the form keeps is its own field, `month`, carried across its round trips once somebody pages it or clicks a day of it; until then the month is the first window's. -#} {% macro day_face(day) -%} {%- for begin, end in day.hours %}{% endfor %} {%- if day.struck %}{% endif %} {%- if day.bars %}{% endif %} {%- if day.note %}{% endif %} {%- endmacro %} {% macro month_grid(month, prefix) -%}
| {{ short }} | {%- endfor %}
|---|
| {%- if 'other-month' in day.marks %} {%- else %} {%- endif %} | {%- endfor %}
{{ said.problem }}
{%- else %}Its next windows
{%- if said.windows %}None is to come.
{%- endif %}{{ said.sentence }}
{%- endif %} {%- endif %}