|
101 | 101 | <title>USR Manifest</title> |
102 | 102 | </svelte:head> |
103 | 103 |
|
104 | | -<section class="w-min m-4"> |
| 104 | +<section class="m-4 w-min"> |
105 | 105 | <div class="flex flex-row justify-between"> |
106 | 106 | <label> |
107 | 107 | <input type="checkbox" bind:checked={hideInStorage} /> |
|
215 | 215 | {#snippet selectAnOrder()} |
216 | 216 | <h2>Select an order</h2> |
217 | 217 | {/snippet} |
218 | | - {#snippet input()} |
219 | | - <label> |
220 | | - Item Name* |
221 | | - <input type="text" bind:value={pending_order_name} placeholder="Item Name" /> |
222 | | - </label> |
223 | | - |
224 | | - <label> |
225 | | - Vendor* |
226 | | - <input type="text" bind:value={pending_order_vendor} placeholder="Vendor" /> |
227 | | - </label> |
228 | | - |
229 | | - <label> |
230 | | - Link* |
231 | | - <input |
232 | | - type="url" |
233 | | - bind:value={pending_order_link} |
234 | | - placeholder="Link to the store" |
235 | | - /> |
236 | | - </label> |
| 218 | + {#snippet input()} |
| 219 | + <label> |
| 220 | + Item Name* |
| 221 | + <input type="text" bind:value={pending_order_name} placeholder="Item Name" /> |
| 222 | + </label> |
237 | 223 |
|
238 | | - <div class="flex flex-row justify-around"> |
239 | 224 | <label> |
240 | | - Count* |
241 | | - <input type="number" bind:value={pending_order_count} /> |
| 225 | + Vendor* |
| 226 | + <input type="text" bind:value={pending_order_vendor} placeholder="Vendor" /> |
242 | 227 | </label> |
243 | | - |
| 228 | + |
244 | 229 | <label> |
245 | | - Unit Cost* (USD) |
246 | | - <input type="number" bind:value={pending_order_unit_cost} step="0.01" /> |
| 230 | + Link* |
| 231 | + <input type="url" bind:value={pending_order_link} placeholder="Link to the store" /> |
247 | 232 | </label> |
248 | | - </div> |
249 | 233 |
|
250 | | - <label> |
251 | | - Team* |
252 | | - <select id="team" bind:value={pending_order_team}> |
253 | | - <option value="" disabled selected>Select a team</option> |
254 | | - <option value="Software">Software</option> |
255 | | - <option value="Mechanical">Mechanical</option> |
256 | | - <option value="Electrical">Electrical</option> |
257 | | - <option value="Systems">Systems</option> |
258 | | - <option value="Social">Social</option> |
259 | | - <option value="Admin">Admin</option> |
260 | | - </select> |
261 | | - </label> |
| 234 | + <div class="num-inputs flex flex-row justify-around gap-4"> |
| 235 | + <label> |
| 236 | + Count* |
| 237 | + <input type="number" bind:value={pending_order_count} /> |
| 238 | + </label> |
| 239 | + |
| 240 | + <label> |
| 241 | + Unit Cost* (USD) |
| 242 | + <input type="number" bind:value={pending_order_unit_cost} step="0.01" /> |
| 243 | + </label> |
| 244 | + </div> |
| 245 | + |
| 246 | + <label> |
| 247 | + Team* |
| 248 | + <select id="team" bind:value={pending_order_team}> |
| 249 | + <option value="" disabled selected>Select a team</option> |
| 250 | + <option value="Software">Software</option> |
| 251 | + <option value="Mechanical">Mechanical</option> |
| 252 | + <option value="Electrical">Electrical</option> |
| 253 | + <option value="Systems">Systems</option> |
| 254 | + <option value="Social">Social</option> |
| 255 | + <option value="Admin">Admin</option> |
| 256 | + </select> |
| 257 | + </label> |
262 | 258 |
|
263 | | - <label> |
264 | | - Reason* |
265 | | - <textarea bind:value={pending_order_reason} placeholder="Reason"></textarea> |
266 | | - </label> |
| 259 | + <label> |
| 260 | + Reason* |
| 261 | + <textarea bind:value={pending_order_reason} placeholder="Reason"></textarea> |
| 262 | + </label> |
267 | 263 |
|
268 | | - <label> |
269 | | - Store In |
270 | | - <input |
271 | | - type="text" |
272 | | - bind:value={pending_order_store_in} |
273 | | - placeholder="Where to leave the item" |
274 | | - /> |
275 | | - </label> |
| 264 | + <label> |
| 265 | + Store In |
| 266 | + <input |
| 267 | + type="text" |
| 268 | + bind:value={pending_order_store_in} |
| 269 | + placeholder="Where to leave the item" |
| 270 | + /> |
| 271 | + </label> |
276 | 272 | {/snippet} |
277 | 273 | <section id="order-operations-content" class="flex flex-col gap-4 p-4"> |
278 | 274 | {#if tabIndex === 0} |
279 | 275 | {@render input()} |
280 | | - |
| 276 | + |
281 | 277 | <button |
282 | 278 | onclick={async () => { |
283 | 279 | if ( |
|
491 | 487 | padding: 0.2rem; |
492 | 488 | border: 1px solid black; |
493 | 489 | } |
| 490 | + .num-inputs input { |
| 491 | + width: 6rem; |
| 492 | + } |
| 493 | + .num-inputs label { |
| 494 | + display: flex; |
| 495 | + flex-direction: row; |
| 496 | + gap: 0.5rem; |
| 497 | + align-items: center; |
| 498 | + text-align: end; |
| 499 | + } |
494 | 500 | </style> |
0 commit comments