Restarted adding the get information. Currently, it pulls courses. Added action button to the bottom with two options. First, if a table exists with the course info, you can download it. Second, it brings you NP admin panel for the academy you're currently accessing.

This commit is contained in:
Norm Rasmussen
2023-04-05 18:47:39 -04:00
parent 1cb464975d
commit d55694fab0
12 changed files with 197 additions and 52 deletions

View File

@ -0,0 +1,17 @@
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<div class="floating-container">
<div class="floating-button">+</div>
<div class="element-container">
<a href="https://app.northpass.com/admin/schools/{{ session.admin_id }}">
<span class="float-element">
<i class="material-icons">admin_panel_settings</i>
</span>
{% if table %}
<a id="download" href="/downloadcsv">
<span class="float-element tooltip-left">
<i class="material-icons">download_for_offline
</i></a>
</span>
{% endif %}
</div>
</div>

View File

@ -0,0 +1,8 @@
<!DOCTYPE html>
{% include 'head.html' %}
{% include 'header.html' %}
{% include 'logo.html' %}
{% include 'subheader.html' %}
{% block content %}
{% include 'table.html' %}
{% endblock %}

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
{% include 'head.html' %}
{% include 'header.html' %}
{% include 'logo.html' %}
{% include 'subheader.html' %}
{% block content %}
{% if table %}
{% include 'table.html' %}
{% endif %}
{% endblock %}

View File

@ -24,6 +24,7 @@
</head>
<body>
{% block content %} {% endblock %}
{% include 'footer_button.html'%}
<script src="{{ url_for('static', filename='css/prism.js' )}}"></script>
<script src="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.7.0/build/highlight.min.js"></script>
<script>

View File

@ -13,6 +13,18 @@
</a>
</form>
<form class="navbutton"
id="get_info"
action="{{ url_for('get_info')}}"
method="post">
<a class="navoption"
onclick="document.forms['get_info'].submit()"
style="cursor:pointer;">
<i class="ri-cloud-line card__icon"></i>
<p class="navselection">Get Info</p>
</a>
</form>
<form class="navbutton"
id="bulk_add_opts"
action="{{ url_for('bulk_add_opts')}}"

View File

@ -0,0 +1,15 @@
<!DOCTYPE html>
<div class="get_opts">
<form class="navbutton"
id="get_courses"
action="{{ url_for('get_courses', variable='courses')}}"
method="post">
<a class="navoption"
onclick="document.forms['get_courses'].submit()"
style="cursor:pointer;">
<p class="navselection">Get Courses</p>
</a>
</form>
</div>

View File

@ -1,7 +1,6 @@
<!DOCTYPE html>
<div class="table">
<h4>Hello! Here are your results.</h4>
<a id="download" href="/downloadcsv">Click here to download as CSV.</a>
<h4>Here are your results.</h4>
</div>
<div class="panda-table">
{{ table | safe }}

View File

@ -90,15 +90,6 @@
</form>
</div>
{% endif %}
<div class="floating-container">
<div class="floating-button">
<a href="{{ url_for('download_templates') }}">
<span class="float-element tooltip-left">
<i class="material-icons">download_for_offline
</i></a>
</span>
</div>
</div>
<script>
codeInput.registerTemplate("code-input", codeInput.templates.hljs(hljs,
@ -108,3 +99,4 @@
<script>
codeInput.registerTemplate("code-input", codeInput.templates.prism(Prism, []));
</script>
{% include 'footer_button.html'%}