init
This commit is contained in:
commit
c97e3e8d4e
21 changed files with 231 additions and 0 deletions
38
app/main/templates/base.html
Normal file
38
app/main/templates/base.html
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{% block title %}{% endblock title %}</title>
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
|
||||
<link rel="stylesheet" href="{{ url_for('main.static', filename='main.css') }}">
|
||||
{% block stylesheet %}{% endblock stylesheet %}
|
||||
</head>
|
||||
<body>
|
||||
<nav class="navbar navbar-expand-lg navbar-light bg-light">
|
||||
<a href="{{url_for('main.homepage')}}" style="text-decoration: none; margin-right: 10px;"></a>
|
||||
<a href="#" style="text-decoration: none;"><span class="navbar-brand">User Page</span></a>
|
||||
<div class="collapse navbar-collapse" id="navbarNavAltMarkup">
|
||||
<div class="navbar-nav">
|
||||
<a class="nav-item nav-link active" href="#">Logout</a>
|
||||
</div>
|
||||
<!-- <div class="navbar-nav ms-auto" id="navbar-user-details">
|
||||
<p>Account Name: {{current_user.first_name}} {{current_user.last_name}}</p>
|
||||
<p>User Type: {{current_user.user_type}}</p>
|
||||
</div> -->
|
||||
</div>
|
||||
</nav>
|
||||
{% 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 content %}
|
||||
</body>
|
||||
</html>
|
||||
2
app/main/templates/homepage.html
Normal file
2
app/main/templates/homepage.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
{% extends 'base.html' %}
|
||||
{% block title %}Customer Search{% endblock title %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue