Slettet unødvendige filer

This commit is contained in:
Mikkel
2022-05-31 17:42:15 +02:00
parent 3e1fa025cc
commit abf12212f5
5 changed files with 0 additions and 354 deletions

View File

@ -1,59 +0,0 @@
{% extends "layout.html" %}
{% block content %}
<div class="content-section">
<form method="POST" action="">
{{ form.hidden_tag() }}
<fieldset class="form-group">
<legend class="border-bottom mb-4">Add a new customer</legend>
<div class="form-group">
{{ form.username.label(class="form-control-label") }}
{% if form.username.errors %}
{{ form.username(class="form-control form-control-lg is-invalid") }}
<div class="invalid-feedback">
{% for error in form.username.errors %}
<span>{{ error }}</span>
{% endfor %}
</div>
{% else %}
{{ form.username(class="form-control form-control-lg") }}
{% endif %}
</div>
<div class="form-group">
{{ form.CPR_number.label(class="form-control-label") }}
{% if form.CPR_number.errors %}
{{ form.CPR_number(class="form-control form-control-lg is-invalid") }}
<div class="invalid-feedback">
{% for error in form.CPR_number.errors %}
<span>{{ error }}</span>
{% endfor %}
</div>
{% else %}
{{ form.CPR_number(class="form-control form-control-lg") }}
{% endif %}
</div>
<div class="form-group">
{{ form.password.label(class="form-control-label") }}
{% if form.password.errors %}
{{ form.password(class="form-control form-control-lg is-invalid") }}
<div class="invalid-feedback">
{% for error in form.password.errors %}
<span>{{ error }}</span>
{% endfor %}
</div>
{% else %}
{{ form.password(class="form-control form-control-lg") }}
{% endif %}
</div>
</fieldset>
<div class="form-group">
{{ form.submit(class="btn btn-outline-info") }}
</div>
</form>
</div>
<div class="border-top pt-3">
<small class="text-muted">
Already Have An Account? <a class="ml-2" href="{{ url_for('Login.login') }}">Sign In</a>
</small>
</div>
{% endblock content %}

View File

@ -1,79 +0,0 @@
{% extends "layout_acc.html" %}
{% block content %}
<h1>{{ current_user.name }}</h1>
<div class="content-section">
<p>Investments:</p>
<table class="table table-striped">
<thead>
<tr>
<th scope="col">account_number</th>
<th scope="col">cpr_number</th>
<th scope="col">creation date</th>
</tr>
</thead>
<tbody>
{% for n in inv %}
<tr>
<th scope="row">{{n[0]}}</th>
<td>{{n[1]}}</td>
<td>{{n[2]}}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<div class="content-section">
<p>Investment accounts:</p>
<table class="table table-striped">
<thead>
<tr>
<th scope="col">account_number</th>
<th scope="col">cpr_number</th>
<th scope="col">account created</th>
<th scope="col">deposit total (CD)</th>
</tr>
</thead>
<tbody>
{% for n in inv_sums %}
<tr>
<th scope="row">{{n[0]}}</th>
<td>{{n[1]}}</td>
<td>{{n[2]}}</td>
<td>{{n[3]}}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<div class="content-section">
<p>Investment certificats of deposit:</p>
<table class="table table-striped">
<thead>
<tr>
<th scope="col">acc</th>
<th scope="col">cd_number</th>
<th scope="col">start_date</th>
<th scope="col">maturity_date</th>
<th scope="col">rate</th>
<th scope="col">amount</th>
</tr>
</thead>
<tbody>
{% for n in inv_cd_list %}
<tr>
<th scope="row">{{n[0]}}</th>
<td>{{n[3]}}</td>
<td>{{n[4]}}</td>
<td>{{n[5]}}</td>
<td>{{n[6]}}</td>
<td>{{n[7]}}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock content %}

View File

@ -1,100 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='main.css') }}">
{% if title %}
<title>UIS Prototype - {{ title }}</title>
{% else %}
<title>UIS Prototype</title>
{% endif %}
</head>
<body>
<header class="site-header">
<nav class="navbar navbar-expand-md navbar-dark bg-steel fixed-top">
<div class="container">
<a class="navbar-brand mr-4" href="/">UIS Prototype</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarToggle" aria-controls="navbarToggle" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarToggle">
<div class="navbar-nav mr-auto">
<a class="nav-item nav-link" href="{{ url_for('Login.home') }}">Home</a>
{% if current_user.is_authenticated %}
<li class="dropdown">
<a href="#" class="nav-item nav-link dropdown-toggle" data-toggle="dropdown">UIS bank<b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a class="nav-item nav-link" href="{{ url_for('Login.account') }}">Account</a></li>
<li><a class="nav-item nav-link" href="{{ url_for('Employee.transfer') }}">Transfer</a></li>
<li class="divider"></li>
<li><a class="nav-item nav-link" href="{{ url_for('Customer.invest') }}">Investments</a></li>
<li class="divider"></li>
<li><a class="nav-item nav-link" href="https://www.pgadmin.org">site pgAdmin</a></li>
<li><a class="nav-item nav-link" href="http://127.0.0.1:58653/browser/ ">pgAdmin4</a></li>
</ul>
</li>
{% else %}
{% endif %}
<a class="nav-item nav-link" href="{{ url_for('Login.about') }}">About</a>
</div>
<!-- Navbar Right Side -->
<div class="navbar-nav">
{% if current_user.is_authenticated %}
<a class="nav-item nav-link" href="{{ url_for('Login.account') }}">Account</a>
<a class="nav-item nav-link" href="{{ url_for('Employee.transfer') }}">Transfer</a>
<a class="nav-item nav-link" href="{{ url_for('Customer.invest') }}">Investments</a>
<a class="nav-item nav-link" href="{{ url_for('Login.logout') }}">Logout</a>
{% else %}
<a class="nav-item nav-link" href="{{ url_for('Login.login') }}">Login</a>
<a class="nav-item nav-link" href="{{ url_for('Employee.addcustomer') }}">Register</a>
{% endif %}
</div>
</div>
</div>
</nav>
</header>
<main role="main" class="container">
<div class="row">
<div class="col-md-8">
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
{% for category, message in messages %}
<div class="alert alert-{{ category }}">
{{ message }}
</div>
{% endfor %}
{% endif %}
{% endwith %}
{% block content %}{% endblock %}
</div>
<div class="col-md-4">
<div class="content-section">
<h3>Account</h3>
<ul class="list-group">
<li class="list-group-item list-group-item-light"><a class="nav-item nav-link" href="{{ url_for('Employee.transfer') }}">Transfer</a></li>
<li class="list-group-item list-group-item-light">Checking Accounts</li>
<li class="list-group-item list-group-item-light">Investment Accounts</li>
<li class="list-group-item list-group-item-light"><a class="nav-item nav-link" href="{{ url_for('Customer.invest') }}">View investment accounts</a></li>
<li class="list-group-item list-group-item-light">etc</li>
</ul>
</p>
</div>
</div>
</div>
</main>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
</body>
</html>

View File

@ -1,70 +0,0 @@
{% extends "layout.html" %}
{% block content %}
<h1>Test Page</h1>
<p>Dette er en testside. Hej med dig. <b>fed tekst,</b> <i>kursiv tekst</i> </p>
<p><b>fed tekst, <i>fed og kursiv tekst</i></b></p>
<p>Liste af ansatte:</p>
<ul>
{% for e in emp %}
<li>{{ e[1] }}</li>
{% endfor %}
</ul>
<form method="POST" action="">
{{ form.hidden_tag() }}
<fieldset class="form-group">
<legend class="border-bottom mb-4">Add a new employee</legend>
<!-- Id-felt -->
<div class="form-group">
{{ form.id.label(class="form-control-label") }}
{% if form.id.errors %}
{{ form.id(class="form-control form-control-lg is-invalid") }}
<div class="invalid-feedback">
{% for error in form.id.errors %}
<span>{{ error }}</span>
{% endfor %}
</div>
{% else %}
{{ form.id(class="form-control form-control-lg") }}
{% endif %}
</div>
<!-- Username-felt -->
<div class="form-group">
{{ form.username.label(class="form-control-label") }}
{% if form.username.errors %}
{{ form.username(class="form-control form-control-lg is-invalid") }}
<div class="invalid-feedback">
{% for error in form.username.errors %}
<span>{{ error }}</span>
{% endfor %}
</div>
{% else %}
{{ form.username(class="form-control form-control-lg") }}
{% endif %}
</div>
<!-- Password-felt -->
<div class="form-group">
{{ form.password.label(class="form-control-label") }}
{% if form.password.errors %}
{{ form.password(class="form-control form-control-lg is-invalid") }}
<div class="invalid-feedback">
{% for error in form.password.errors %}
<span>{{ error }}</span>
{% endfor %}
</div>
{% else %}
{{ form.password(class="form-control form-control-lg") }}
{% endif %}
</div>
</fieldset>
<!-- Submit-knap -->
<div class="form-group">
{{ form.submit(class="btn btn-outline-info") }}
</div>
</form>
{% endblock content %}

View File

@ -1,46 +0,0 @@
{% extends "layout.html" %}
{% block content %}
<div class="content-section">
<form method="POST" action="">
{{ form.hidden_tag() }}
<div class="form-group">
{{ form.sourceAccount.label(class="form-control-label") }}
{{ form.sourceAccount(class="form-control")}}
</div>
<fieldset class="form-group">
<div class="form-group">
{{ form.amount.label(class="form-control-label") }}
{% if form.amount.errors %}
{{ form.amount(class="form-control form-control-lg is-invalid") }}
<div class="invalid-feedback">
{% for error in form.password.errors %}
<span>{{ error }}</span>
{% endfor %}
</div>
{% else %}
{{ form.amount(class="form-control form-control-lg") }}
{% endif %}
</div>
</fieldset>
<div class="form-group">
{{ form.targetAccount.label(class="form-control-label") }}
{{ form.targetAccount(class="form-control") }}
</div>
<div class="form-group">
{{ form.submit(class="btn btn-outline-info") }}
</div>
</form>
</div>
<div class="content-section">
<p>Dropdown customer account tuples:</p>
<ul class="list-group">
{% for n in drop_cus_acc %}
<li class="list-group-item list-group-item-light">{{n}}}</li>
{% endfor %}
</ul>
<br>
<p>Same list with a filter: {{ drop_cus_acc|join(', ') }}</p>
</div>
{% endblock content %}