-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
190 lines (187 loc) Β· 8.88 KB
/
Copy pathindex.html
File metadata and controls
190 lines (187 loc) Β· 8.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title data-i18n="pageTitle">Table Planner</title>
<link rel="icon"
href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>π</text></svg>">
<link rel="stylesheet" href="styles.css" />
</head>
<body class="no-animations">
<div class="version-banner" id="versionBanner">
<span data-i18n="versionBannerText">Go to version 2.0</span>
<a href="/wedding-app" class="version-banner-btn" data-i18n="versionBannerBtn">Go</a>
<button id="closeBannerBtn" class="version-banner-close" data-i18n-attr="aria-label:closeBanner">×</button>
</div>
<div class="main-content">
<header class="toolbar">
<div class="row first">
<div class="left">
<div id="tableCount" class="count-pill" data-i18n="tableCount"></div>
<div id="seatCount" class="count-pill" data-i18n="seatCount">| Seats: 0</div>
<button id="addCircleTableBtn" data-i18n="addCircleTableBtn">Add Circle</button>
<button id="addRectTableBtn" data-i18n="addRectTableBtn">Add Rectangle</button>
<button id="addSeparatorBtn" data-i18n="addSeparatorBtn">Add Separator</button>
</div>
<div class="center">
</div>
<div class="right">
<button id="undoBtn" data-i18n="undoBtn">Undo</button>
<button id="redoBtn" data-i18n="redoBtn">Redo</button>
<button id="exportBtn" data-i18n="exportBtn">Export Plan</button>
<button id="importBtn" type="button" data-i18n="importBtn">Import Plan</button>
<input type="file" id="importInput" accept="application/json" style="display:none" />
<button id="languageBtn" type="button" data-i18n="languageBtn">π§π¬</button>
</div>
</div>
<div class="row second">
<div class="left">
<label class="snap">
<input type="checkbox" id="snapToggle" />
<span data-i18n="snapToggle">Snap</span>
</label>
<label class="grid-size">
<span data-i18n="gridSizeInput">Grid</span>
<input type="number" id="gridSizeInput" min="4" max="64" step="1" value="12" />
</label>
<label class="show-grid">
<input type="checkbox" id="showGridToggle" checked />
<span data-i18n="showGridToggle">Show Grid</span>
</label>
<div class="zoom-level" id="zoomLevel">100%</div>
<button id="recenterBtn" data-i18n="recenterBtn">π― Re-center</button>
</div>
<div class="center">
</div>
<div class="right">
<button id="printSeatingChartBtn" type="button" data-i18n="printSeatingChartBtn">π¨οΈ Print</button>
<button id="printBtn" type="button" data-i18n="printBtn">π¨οΈ Print Page</button>
</div>
</div>
</header>
<main class="layout">
<section class="canvas-wrap">
<div id="canvas" class="canvas" tabindex="0"></div>
<div id="seatingChart" class="seating-chart" style="display:none"></div>
</section>
<button id="sidebarToggle" class="sidebar-toggle" data-i18n-attr="title:toggleSidebar"></button>
<button id="viewToggleBtn" class="view-toggle" data-i18n-attr="title:viewToggleBtn">π</button>
<button id="legendToggle" class="legend-toggle" data-i18n-attr="title:toggleLegend">π¨</button>
<aside id="legendSidebar" class="legend-sidebar">
<h2><span data-i18n="legendTitle">Color Legend</span></h2>
<div id="legendContent" class="legend-content">
<!-- Legend content will be populated here -->
</div>
</aside>
<aside id="sidebar" class="sidebar">
<h2><span data-i18n="guestsTitle">Guests</span> <span id="guestCounts" class="count-pill"></span></h2>
<div id="tableGuests" class="table-guests" style="display:none">
<h3>Table Guests</h3>
<div id="tableGuestsList" class="table-guests-list"></div>
</div>
<div class="guest-pictures">
<button id="selectPictureFolderBtn" type="button" data-i18n="selectPictureFolderBtn">Select Picture
Folder</button>
<button id="scanPicturesBtn" type="button" data-i18n="scanPicturesBtn" style="display:none">Scan for
Pictures</button>
<div id="pictureFolderStatus" class="picture-folder-status" style="display:none"></div>
</div>
<div class="guest-csv">
<button id="exportGuestsCsvBtn" type="button" data-i18n="exportGuestsCsvBtn">Export Guests CSV</button>
<button id="importGuestsCsvBtn" type="button" data-i18n="importGuestsCsvBtn">Import Guests CSV</button>
<input id="importGuestsCsvInput" type="file" accept="text/csv" style="display:none" />
</div>
<form id="guestForm" class="guest-form">
<div class="form-row">
<input id="guestNameInput" type="text" data-i18n="guestNameInput" placeholder="Guest name"
required />
<input id="guestColorInput" type="color" value="#6aa9ff" />
<button type="submit" data-i18n="guestFormSubmit">Add</button>
</div>
<label class="child-checkbox">
<input id="guestChildInput" type="checkbox" />
<span data-i18n="guestChildLabel">Child</span>
</label>
</form>
<div class="guest-controls">
<label><span data-i18n="guestSortLabel">Sort:</span>
<select id="guestSortSelect">
<option value="unassignedFirst" data-i18n="guestSortUnassignedFirst">Unassigned first</option>
<option value="assignedFirst" data-i18n="guestSortAssignedFirst">Assigned first</option>
<option value="name" data-i18n="guestSortName">Name AβZ</option>
<option value="color" data-i18n="guestSortColor">Color</option>
<option value="childFirst" data-i18n="guestSortChildFirst">Children first</option>
<option value="tableSeat" data-i18n="guestSortTableSeat">Table & Seat</option>
</select>
</label>
<label class="filter">
<input id="guestUnassignedOnly" type="checkbox" />
<span data-i18n="guestUnassignedOnly">Unassigned only</span>
</label>
</div>
<div class="guest-search">
<input id="guestSearchInput" type="text" data-i18n="guestSearchInput" placeholder="Search guests..." />
</div>
<div class="selected-info" id="selectedInfo"></div>
<div id="tableControls" class="table-controls" style="display:none">
<h3 data-i18n="tableControlsTitle">Selected Table</h3>
<label><span data-i18n="seatCountLabel">Seats:</span>
<input id="seatCountInput" type="number" min="1" max="32" step="1" />
<button id="applySeatCountBtn" type="button" data-i18n="applySeatCountBtn">Apply</button>
</label>
<div id="tableSizeControls" class="table-size-controls">
<h4 data-i18n="tableSizeLabel">Size:</h4>
<label><span data-i18n="pixelsPerMeterLabel">Pixels per meter:</span>
<input id="pixelsPerMeterInput" type="number" min="10" max="1000" step="10" value="100" />
<span class="unit">px/m</span>
</label>
<label><span data-i18n="tableSizeWidth">Width:</span>
<input id="tableSizeWidthInput" type="number" min="0.1" max="6" step="0.1" />
<span class="unit" data-i18n="unitMeter">m</span>
</label>
<label><span data-i18n="tableSizeHeight">Height:</span>
<input id="tableSizeHeightInput" type="number" min="0.1" max="6" step="0.1" />
<span class="unit" data-i18n="unitMeter">m</span>
</label>
<button id="tieSizeToCanvasBtn" type="button" data-i18n="tieSizeToCanvasBtn">π Tie to
Canvas</button>
</div>
<div id="rectControls" class="rect-controls" style="display:none">
<label><input type="checkbox" id="oneSidedToggle" /> <span data-i18n="oneSidedToggle">One-sided
(rect only)</span></label>
<div class="side-group" id="oneSideGroup" style="display:none">
<div data-i18n="seatSideLabel">Seat side:</div>
<label><input type="radio" name="oneSide" value="top" /> <span
data-i18n="sideTop">Top</span></label>
<label><input type="radio" name="oneSide" value="right" /> <span
data-i18n="sideRight">Right</span></label>
<label><input type="radio" name="oneSide" value="bottom" /> <span
data-i18n="sideBottom">Bottom</span></label>
<label><input type="radio" name="oneSide" value="left" /> <span
data-i18n="sideLeft">Left</span></label>
</div>
<div class="side-group" id="oddExtraGroup" style="display:none">
<div data-i18n="oddExtraSeatLabel">Odd extra seat to:</div>
<label><input type="radio" name="oddExtraSide" value="top" /> <span
data-i18n="sideTop">Top</span></label>
<label><input type="radio" name="oddExtraSide" value="right" /> <span
data-i18n="sideRight">Right</span></label>
<label><input type="radio" name="oddExtraSide" value="bottom" /> <span
data-i18n="sideBottom">Bottom</span></label>
<label><input type="radio" name="oddExtraSide" value="left" /> <span
data-i18n="sideLeft">Left</span></label>
</div>
</div>
</div>
<div id="guestList" class="guest-list"></div>
</aside>
</main>
<script src="i18n.js"></script>
<script src="state.js"></script>
<script src="render.js"></script>
<script src="interactions.js"></script>
<script src="app.js"></script>
</div>
</body>
</html>