-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
241 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Edit Alarm</title> | ||
<link | ||
rel="stylesheet" | ||
href="{{ url_for('static', filename='styles.css') }}" | ||
/> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<h1>Edit Alarm</h1> | ||
<form method="POST"> | ||
<div class="form-group"> | ||
<label for="name">Alarm Name:</label> | ||
<input | ||
type="text" | ||
id="name" | ||
name="name" | ||
value="{{ alarm_name }}" | ||
required | ||
/> | ||
</div> | ||
<div class="form-group"> | ||
<label for="intensity">Intensity (0-100):</label> | ||
<input | ||
type="number" | ||
id="intensity" | ||
name="intensity" | ||
min="0" | ||
max="100" | ||
value="{{ intensity }}" | ||
required | ||
/> | ||
</div> | ||
<div class="form-group"> | ||
<label for="duration">Duration (seconds):</label> | ||
<input | ||
type="number" | ||
id="duration" | ||
name="duration" | ||
min="0.1" | ||
step="0.1" | ||
value="{{ duration }}" | ||
required | ||
/> | ||
</div> | ||
<div class="form-group"> | ||
<label for="time">Time (HH:MM):</label> | ||
<input | ||
type="time" | ||
id="time" | ||
name="time" | ||
value="{{ time }}" | ||
required | ||
/> | ||
</div> | ||
<button type="submit">Update Alarm</button> | ||
</form> | ||
<a href="{{ url_for('index') }}">Back to Home</a> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters