mirror of
https://github.com/kbenestad/reimburse.git
synced 2026-06-18 08:04:31 +00:00
Put base currency on the same row as staff and period
Switch claimant card from cols-3 (staff | period-group | currency on its own row) to cols-4 (staff | from | to | currency), all one line. https://claude.ai/code/session_01JyuActqTJG5tuRQNLmT7fZ
This commit is contained in:
parent
364cac2155
commit
6787fd15a2
1 changed files with 4 additions and 7 deletions
|
|
@ -825,13 +825,10 @@ function render() {
|
|||
|
||||
const claimCard = el('div', {className:'kb-card'});
|
||||
claimCard.appendChild(el('h2', {className:'kb-card__title'}, 'Claimant'));
|
||||
const claimGrid = el('div', {className:'kb-grid cols-3'});
|
||||
claimGrid.appendChild(kbField('Staff', staffWrap, {cls:''}));
|
||||
// Period from + to span col 2-3
|
||||
const periodGroup = el('div', {style:{display:'grid', gridTemplateColumns:'1fr 1fr', gap:'14px 16px', gridColumn:'span 2'}});
|
||||
periodGroup.appendChild(kbField('Period from', fromInput));
|
||||
periodGroup.appendChild(kbField('Period to', toInput));
|
||||
claimGrid.appendChild(periodGroup);
|
||||
const claimGrid = el('div', {className:'kb-grid cols-4'});
|
||||
claimGrid.appendChild(kbField('Staff', staffWrap));
|
||||
claimGrid.appendChild(kbField('Period from', fromInput));
|
||||
claimGrid.appendChild(kbField('Period to', toInput));
|
||||
claimGrid.appendChild(kbField('Base currency', baseCurDD));
|
||||
claimCard.appendChild(claimGrid);
|
||||
wrap.appendChild(claimCard);
|
||||
|
|
|
|||
Loading…
Reference in a new issue