mirror of
https://github.com/Matewoo/pdf-writer.git
synced 2026-11-18 18:42:50 +01:00
implement dailyDish generator
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Speiseplan Generator</title>
|
||||
<meta name="google" content="notranslate">
|
||||
<link rel="stylesheet" type="text/css" href="../style.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="week-controls">
|
||||
<button onclick="previousWeek()">< Vorherige Woche</button>
|
||||
<span id="currentWeek"></span>
|
||||
<button onclick="nextWeek()">Nächste Woche ></button>
|
||||
</div>
|
||||
|
||||
<div class="day-controls">
|
||||
<button onclick="previousDay()">< Vorheriger Tag</button>
|
||||
<span id="currentDay"></span>
|
||||
<button onclick="nextDay()">Nächster Tag ></button>
|
||||
</div>
|
||||
|
||||
<div class="template-container">
|
||||
<div class="template-page dailyDish-bg">
|
||||
<div class="form-overlay">
|
||||
<form id="menuForm">
|
||||
<script>
|
||||
for (let i = 0; i < 5; i++) {
|
||||
document.write(`
|
||||
<div id="dayForm${i}" class="day-form ${i === 0 ? 'active' : ''}">
|
||||
<input type="text" class="input-field-20" name="dateTitle${i}" style="bottom: 60.5%; left: 13.4%" placeholder="Datum">
|
||||
<select class="input-field-19-h" name="halalVeggi${i}" style="bottom: 43.5%; left: 58%">
|
||||
<option value="" style="color:red;">----</option>
|
||||
<option value="halal" style="color:#00B050;">„HALAL“</option>
|
||||
<option value="veggi" style="color:#00B050;">„veggi“</option>
|
||||
</select>
|
||||
<input type="text" class="input-field-19-b" name="dailyMain${i}" style="bottom: 30.5%; left: 13.4%" placeholder="Tagesgericht">
|
||||
<input type="text" class="input-field-19" name="dailySide${i}" style="bottom: 24%; left: 13.4%" placeholder="Beilage">
|
||||
<input type="text" class="input-field-14-i" name="dailyPrice${i}" style="bottom: 13.3%; left: 13.4%" placeholder="Preis">
|
||||
</div>
|
||||
`);
|
||||
}
|
||||
</script>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="bottom-controls">
|
||||
<button onclick="saveWeek()">Woche speichern</button>
|
||||
<button onclick="generatePDF()">PDF generieren</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="../src/dailyDish.js"></script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,63 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Speiseplan Generator</title>
|
||||
<meta name="google" content="notranslate">
|
||||
<link rel="stylesheet" type="text/css" href="../style.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="week-controls">
|
||||
<button onclick="previousWeek()">< Vorherige Woche</button>
|
||||
<span id="currentWeek"></span>
|
||||
<button onclick="nextWeek()">Nächste Woche ></button>
|
||||
</div>
|
||||
|
||||
<div class="day-controls">
|
||||
<button onclick="previousDay()">< Vorheriger Tag</button>
|
||||
<span id="currentDay"></span>
|
||||
<button onclick="nextDay()">Nächster Tag ></button>
|
||||
</div>
|
||||
|
||||
<div class="template-container">
|
||||
<div class="template-page menu-bg">
|
||||
<div class="form-overlay">
|
||||
<form id="menuForm">
|
||||
<script>
|
||||
for (let i = 0; i < 5; i++) {
|
||||
document.write(`
|
||||
<div id="dayForm${i}" class="day-form ${i === 0 ? 'active' : ''}">
|
||||
<input type="text" class="input-field-14" name="dateTitle${i}" style="bottom: 67%; left: 13.4%" placeholder="Datum">
|
||||
<select class="input-field-13" name="halal${i}" style="bottom: 61%; left: 30%">
|
||||
<option value="" style="color:red;">----</option>
|
||||
<option value="halal" style="color:#00B050;">„HALAL“</option>
|
||||
</select>
|
||||
<input type="text" class="input-field-12-b" name="meatMain${i}" style="bottom: 55%; left: 13.4%" placeholder="Fleischgericht">
|
||||
<input type="text" class="input-field-12" name="meatSide${i}" style="bottom: 50.2%; left: 13.4%" placeholder="Beilage">
|
||||
<input type="text" class="input-field-10" name="meatPrice${i}" style="bottom: 43.3%; left: 13.4%" placeholder="Preis">
|
||||
<input type="text" class="input-field-12-b" name="veggiMain${i}" style="bottom: 29.1%; left: 13.4%" placeholder="Veggie">
|
||||
<input type="text" class="input-field-12" name="veggiSide${i}" style="bottom: 24.3%; left: 13.4%" placeholder="Beilage">
|
||||
<input type="text" class="input-field-10" name="veggiPrice${i}" style="bottom: 17.6%; left: 13.4%" placeholder="Preis">
|
||||
</div>
|
||||
`);
|
||||
}
|
||||
</script>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="bottom-controls">
|
||||
<button onclick="saveWeek()">Woche speichern</button>
|
||||
<button onclick="generatePDF()">PDF generieren</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="../src/menu.js"></script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user