Lots of good progress getting it setup. Need to figure out templating, easier calling of functions, and cleaner routing.

This commit is contained in:
Norm Rasmussen
2023-02-17 16:59:42 -05:00
commit 1bcbef6220
19 changed files with 545 additions and 0 deletions

41
app/templates/get.html Normal file
View File

@ -0,0 +1,41 @@
{% extends 'head.html' %}
{% block content %}
<body>
<div class="container">
<header class="header">
<div>
<h1>Hello there, <span id="userName">CUSTOMER SUCCESS MANAGER</span>.</h1>
<img src="/static/NP-Logo-Primary-FC.png" alt="Northpass Full Color Logo"></img>
<p>Today is <span id="currentDate">Monday 1, January 2000</span>.</p>
</div>
<p id="currentTime">{{ request.form.apikey }}</p>
</header>
<h4>Hello! Please select what you'd like to do.</h4>
<main id="cardContainer">
<form class="card"
action="{{ url_for('get_people')}}"
method="post">
<a class="card"
onclick="document.forms[0].submit()"
style="cursor:pointer;">
<i class="ri-car-line card__icon"></i>
<p class="card__name">Get People</p>
</a>
</form>
<main id="cardContainer">
<form class="card"
id="get_courses"
action="{{ url_for('get_courses')}}"
method="post">
<a class="card"
onclick="document.forms['get_courses'].submit()"
style="cursor:pointer;">
<i class="ri-plane-line card__icon"></i>
<p class="card__name">Get Courses</p>
</a>
</form>
</main>
</div>
</body>
{% endblock %}

View File

@ -0,0 +1,21 @@
<!DOCTYPE html>
<html>
<head>
<title>Northpass CSM Bulk Actions</title>
</head>
<body>
<header class="topnav">
<div class="logo_container">
<img src="/static/NP-Logo-Primary-FC.png" alt="Northpass Full Color Logo"></img>
</div>
</header>
<h1>Hello! Please select what you'd like to do.</h1>
<form action="{{ url_for("get_courses")}}" method="post">
<label for="apikey">API Key:</label>
<input type="text" id="api" name="apikey"/>
<button type="submit">Submit</button>
</form>
</div>
</body>
</html>

20
app/templates/head.html Normal file
View File

@ -0,0 +1,20 @@
<!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" />
<link
href="https://cdn.jsdelivr.net/npm/remixicon@2.5.0/fonts/remixicon.css"
rel="stylesheet"
/>
<title>CSM Bulk Actions</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="{{ url_for('static', filename="css/styles.css") }}" />
</head>
{% block content %} {% endblock %}
</html>

20
app/templates/index.html Normal file
View File

@ -0,0 +1,20 @@
{% extends 'head.html' %}
{% block content %}
<body>
<div class="container">
<header class="header">
<div>
<h1>Hello there, CUSTOMER SUCCESS MANAGER.</h1>
<img src="/static/NP-Logo-Primary-FC.png" alt="Northpass Full Color Logo"></img>
</header>
<h4>Hello! Please click below to enter your key.</h4>
{% if error %}
<p class=error><strong>Error! </strong>{{ error }}
{% endif %}
<form action="{{ url_for("ask_key")}}" method="post">
<input type="text" name="apikey">
<input type="submit" value="Submit">
</form>
</div>
</body>
{% endblock %}