-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added working form for submitting the data, querying and viewing
- Loading branch information
Showing
3 changed files
with
74 additions
and
19 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
33 changes: 31 additions & 2 deletions
33
shedpi_hub_dashboard/templates/shedpi_hub_dashboard/index.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,52 @@ | ||
{% load static %} | ||
|
||
<!DOCTYPE html> | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
<title>ShedPi</title> | ||
<link rel="stylesheet" href="{% static 'shedpi_hub_dashboard/css/landing.css' %}"> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" | ||
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous"> | ||
|
||
</head> | ||
<body> | ||
<header> | ||
<h1>Shed Pi data</h1> | ||
</header> | ||
<div class="contents" data-endpoint-url=""> | ||
|
||
<form class="row g-3"> | ||
|
||
<div class="col-lg-3 col-sm-6"> | ||
<label for="startDate">Start</label> | ||
<input id="startDate" class="form-control" type="date"/> | ||
<span id="startDateSelected"></span> | ||
</div> | ||
<div class="col-lg-3 col-sm-6"> | ||
<label for="endDate">End</label> | ||
<input id="endDate" class="form-control" type="date"/> | ||
<span id="endDateSelected"></span> | ||
</div> | ||
<div class="col-lg-3 col-sm-6"> | ||
<select class="form-select" id="form-dropdown" aria-label="Device module selector"> | ||
</select> | ||
</div> | ||
|
||
<div class="col-lg-3 col-sm-6"> | ||
<button type="submit" class="btn btn-primary mb-3" id="form-submit">Submit</button> | ||
</div> | ||
|
||
</form> | ||
</div> | ||
<footer> | ||
</footer> | ||
<script src="{% static 'shedpi_hub_dashboard/js/index.js' %}"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" | ||
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" | ||
crossorigin="anonymous"></script> | ||
|
||
</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