-
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 user management and guest users.
- Loading branch information
William Hahn
committed
Dec 14, 2023
1 parent
0916496
commit 54f0333
Showing
10 changed files
with
546 additions
and
78 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
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
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,126 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>PyCashFlow</title> | ||
<link rel="shortcut icon" href="{{ url_for('main.favicon') }}"> | ||
<link rel="apple-touch-icon" href="{{ url_for('main.appleicon') }}"> | ||
<link rel="icon" href="./static/favicon.ico"> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.2/css/bulma.min.css" /> | ||
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script> | ||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous"> | ||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script> | ||
<link rel=”stylesheet” href=”https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> | ||
<link rel="stylesheet" href="./static/css/style.css"/> | ||
<link rel="stylesheet" href="./static/css/dark.css"/> | ||
<link rel="stylesheet" href="./static/css/normalize.css"/> | ||
<link rel="stylesheet" href="./static/css/skeleton.css"/> | ||
<link rel="icon" href="{{url_for('static', filename='icons/icon_144x144.png')}}" type="image/png"> | ||
<link rel="icon" href="{{url_for('static', filename='icons/icon_192x192.png')}}" type="image/png"> | ||
<link rel="icon" href="{{url_for('static', filename='icons/icon_512x512.png')}}" type="image/png"> | ||
<link rel="apple-touch-icon" href="{{url_for('static', filename='icons/icon_144x144.png')}}" type="image/png"> | ||
<link rel="apple-touch-icon" href="{{url_for('static', filename='icons/icon_192x192.png')}}" type="image/png"> | ||
<link rel="apple-touch-icon" href="{{url_for('static', filename='icons/icon_512x512.png')}}" type="image/png"> | ||
<link rel="manifest" href="/manifest.json"> | ||
<script> | ||
if ('serviceWorker' in navigator) { | ||
window.addEventListener('load', function() { | ||
navigator.serviceWorker.register("/sw.js").then(function(registration) { | ||
console.log('ServiceWorker registration successful with scope: ', registration.scope); | ||
}, function(err) { | ||
console.log('ServiceWorker registration failed: ', err); | ||
}); | ||
}); | ||
} | ||
</script> | ||
<meta name="viewport" content="width=device-width, initial-scale=0.65"> | ||
</head> | ||
|
||
<body> | ||
<div class="container"> | ||
<div class="topnav1" id="myTopnav"> | ||
<a href="/" class="active">PyCashFlow</a> | ||
<div class="dropdown1"> | ||
<button class="dropbtn">Menu | ||
<i class="fa fa-caret-down"></i> | ||
</button> | ||
<div class="dropdown-content1"> | ||
<a href="/profile">Profile </a> | ||
<a href="/logout">Log Out </a> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div style="clear: both"> | ||
| ||
|
||
<h1 class="title" style="color:white"> | ||
<p style="font-size:20px; float: center; text-align: center"><span style="color:white; font-weight:bold">{{ todaydate }}</span></p> | ||
<p style="font-size:20px"><span style="color:white">Balance: {{ balance }}</span></p> | ||
<p style="font-size:20px">Lowest Balance: <span style="color:white; font-weight:bold">${{ minbalance }}</span></p> | ||
</h1> | ||
<head> | ||
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script> | ||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> | ||
<script> | ||
function cb(selection) { | ||
$.getJSON({ | ||
url: "/callback", data: { 'data': selection }, success: function (result) { | ||
Plotly.newPlot('chart', result, {staticPlot: true});; | ||
} | ||
}); | ||
} | ||
</script> | ||
</head> | ||
|
||
<body style="font-family:arial, sans-serif"> | ||
<div id="chart" class="chart"></div> | ||
</body> | ||
|
||
<script> | ||
d = {{ graphJSON | safe }}; | ||
d.config={responsive: true}; | ||
Plotly.newPlot('chart', d, {}); | ||
|
||
</script> | ||
<div id = "balancemodal" class = "modal fade" role="dialog"> | ||
<div class = "modal-dialog"> | ||
<div class="modal-content"> | ||
<div class = "modal-header"> | ||
<h4 class = "modal-title" style="color:black">Update Balance</h4> | ||
</div> | ||
|
||
<div class = "modal-body"> | ||
<form action = "{{url_for('main.balance')}}" method="POST"> | ||
<div class = "form-group"> | ||
<label style="color:black"> Balance:</label> | ||
<input type="number" step="0.01" class="form-control" name="amount" required = "True"> | ||
</div> | ||
<div class = "form-group"> | ||
<label style="color:black"> Date:</label> | ||
<input type="date" class="form-control" name="date" required = "True" max="3000-01-01" onfocus="this.max=new Date().toISOString().split('T')[0]" /> | ||
</div> | ||
<div class = "form-group"> | ||
<button class="btn btn-primary" type = "submit" name="schedule">Update Balance</button> | ||
</div> | ||
|
||
<div class="modal-footer"> | ||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> | ||
</div> | ||
|
||
</form> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
</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
Oops, something went wrong.