First version
This commit is contained in:
parent
19bb4146da
commit
0727798af7
7 changed files with 1581 additions and 0 deletions
138
index.html
Normal file
138
index.html
Normal file
|
|
@ -0,0 +1,138 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>GO Vacation Planner</title>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
</head>
|
||||
<body>
|
||||
<header class="floating-header">
|
||||
<section class="cards header-cards" id="dashboard" aria-live="polite"></section>
|
||||
<section class="header-entries" aria-label="Entries">
|
||||
<div class="table-wrap">
|
||||
<table id="entriesTable" class="compact-entries-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Entry</th>
|
||||
<th class="num">Days</th>
|
||||
<th class="num">Vac. days</th>
|
||||
<th class="num">FF</th>
|
||||
<th class="num">FLEX</th>
|
||||
<th>Status</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody></tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<div class="header-warning-row" aria-live="polite">
|
||||
<span id="headerWarnings" class="header-warning-list"></span>
|
||||
<span class="header-action-list">
|
||||
<button id="addEntryBtn" class="header-action-button">Add entry</button>
|
||||
<button id="settingsBtn" class="header-action-button">Settings</button>
|
||||
</span>
|
||||
</div>
|
||||
<div class="planner-column-header table-wrap" aria-label="Monthly planner column names">
|
||||
<table class="month-table planner-header-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Month</th>
|
||||
<th>Entries</th>
|
||||
<th class="num">Vacation days</th>
|
||||
<th class="num">Feriefridage</th>
|
||||
<th class="num">FLEX</th>
|
||||
<th class="num">Correction</th>
|
||||
<th class="num important-col">Available days</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main>
|
||||
<section class="panel planner-panel">
|
||||
<div id="planner" class="years"></div>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<dialog id="entryDialog" class="modal">
|
||||
<div class="modal-heading">
|
||||
<h2 id="entryFormTitle">Add date-range entry</h2>
|
||||
<button type="button" id="closeEntryDialogBtn" class="ghost small">Close</button>
|
||||
</div>
|
||||
<form id="entryForm" class="form-grid">
|
||||
<input type="hidden" id="entryId">
|
||||
<label>
|
||||
Title
|
||||
<input id="title" required placeholder="e.g. Summer holiday">
|
||||
</label>
|
||||
<label>
|
||||
Start date
|
||||
<input id="startDate" type="date" required>
|
||||
</label>
|
||||
<label>
|
||||
End date
|
||||
<input id="endDate" type="date" required>
|
||||
</label>
|
||||
<label>
|
||||
Use source
|
||||
<select id="source">
|
||||
<option value="auto">Smart: feriefridage → vacation → FLEX</option>
|
||||
<option value="feriefridag">Feriefridage only</option>
|
||||
<option value="vacation">Vacation days only</option>
|
||||
<option value="flex">FLEX only</option>
|
||||
<option value="unpaid">Unpaid only</option>
|
||||
</select>
|
||||
</label>
|
||||
<label>
|
||||
Status
|
||||
<select id="status">
|
||||
<option value="planned">Planned</option>
|
||||
<option value="approved">Approved</option>
|
||||
</select>
|
||||
</label>
|
||||
<label class="checkbox-row">
|
||||
<input id="allowUnpaid" type="checkbox">
|
||||
<span>If this entry goes negative, convert missing days in this date range to unpaid</span>
|
||||
</label>
|
||||
<label class="full">
|
||||
Note
|
||||
<textarea id="note" rows="3" placeholder="Optional note"></textarea>
|
||||
</label>
|
||||
<div class="actions full">
|
||||
<button type="button" id="cancelEditBtn" class="ghost hidden">Cancel edit</button>
|
||||
<button type="submit" id="saveEntryBtn">Save entry</button>
|
||||
</div>
|
||||
</form>
|
||||
</dialog>
|
||||
|
||||
<dialog id="settingsDialog" class="modal wide">
|
||||
<div class="modal-heading">
|
||||
<h2>Settings</h2>
|
||||
<button type="button" id="closeSettingsDialogBtn" class="ghost small">Close</button>
|
||||
</div>
|
||||
<form id="settingsForm" class="form-grid compact">
|
||||
<label>Start year<input id="planning_start_year" type="number" step="1"></label>
|
||||
<label>Start month<input id="planning_start_month" type="number" step="1" min="1" max="12"></label>
|
||||
<label>Months shown<input id="planning_months" type="number" step="1" min="1" max="120"></label>
|
||||
<label>Vacation/month<input id="vacation_days_per_month" type="number" step="0.01"></label>
|
||||
<label>Feriefridage/year<input id="feriefridage_per_year" type="number" step="0.01"></label>
|
||||
<label>FF deadline month<input id="feriefridage_expiry_month" type="number" step="1" min="1" max="12"></label>
|
||||
<label>Mon–Thu hours<input id="normal_day_hours" type="number" step="0.25"></label>
|
||||
<label>Friday hours<input id="friday_hours" type="number" step="0.25"></label>
|
||||
<label>Start vacation balance<input id="opening_vacation_days" type="number" step="0.01"></label>
|
||||
<label>Start feriefridage balance<input id="opening_feriefridage_days" type="number" step="0.01"></label>
|
||||
<label>Start FLEX hours<input id="opening_flex_hours" type="number" step="0.25"></label>
|
||||
<p class="full help-text">Start balances are the balances before the first shown month. Monthly corrections are edited directly in the monthly planner table.</p>
|
||||
<div class="actions full">
|
||||
<button type="submit">Save settings</button>
|
||||
</div>
|
||||
</form>
|
||||
</dialog>
|
||||
|
||||
<div id="toast" class="toast hidden"></div>
|
||||
<script src="app.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue