uploaded base code
This commit is contained in:
42
templates/index.html
Normal file
42
templates/index.html
Normal file
@@ -0,0 +1,42 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="he">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>שמירת חפצים</title>
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
<script src="https://cdn.socket.io/4.0.1/socket.io.min.js"></script>
|
||||
<script src="script.js" defer></script>
|
||||
</head>
|
||||
<body class="{{ 'rtl' if rtl else '' }}">
|
||||
<div class="container">
|
||||
<h1>שמירת חפצים</h1>
|
||||
|
||||
<form id="store-form">
|
||||
<input type="text" name="name" placeholder="שם" required>
|
||||
<input type="text" name="phone" placeholder="טלפון" required>
|
||||
<input type="text" name="location" placeholder="מיקום (שורה, עמודה או X#)" required>
|
||||
<button type="submit">שמור</button>
|
||||
</form>
|
||||
|
||||
<h2>חיפוש חפצים</h2>
|
||||
<input type="text" id="phone-input" placeholder="הזן מספר טלפון">
|
||||
<button id="retrieve-button">חפש</button>
|
||||
|
||||
<h2>הגדרות</h2>
|
||||
<form id="config-form">
|
||||
<label>שפה:</label>
|
||||
<input type="text" name="language" value="{{ config['language'] }}">
|
||||
<label>רוחב מטריצה:</label>
|
||||
<input type="number" name="matrix_size[columns]" value="{{ config['matrix_size']['columns'] }}">
|
||||
<label>גובה מטריצה:</label>
|
||||
<input type="number" name="matrix_size[rows]" value="{{ config['matrix_size']['rows'] }}">
|
||||
<label>דלג על N:</label>
|
||||
<input type="checkbox" name="skip_n" {{ 'checked' if config['skip_n'] else '' }}>
|
||||
<label>RTL:</label>
|
||||
<input type="checkbox" name="rtl" {{ 'checked' if config['rtl'] else '' }}>
|
||||
<button type="submit">שמור הגדרות</button>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user