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:
17
app/templates/footer_button.html
Normal file
17
app/templates/footer_button.html
Normal 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>
|
||||
8
app/templates/get_courses.html
Normal file
8
app/templates/get_courses.html
Normal 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 %}
|
||||
10
app/templates/get_info.html
Normal file
10
app/templates/get_info.html
Normal 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 %}
|
||||
@ -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>
|
||||
|
||||
@ -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')}}"
|
||||
|
||||
15
app/templates/subheader.html
Normal file
15
app/templates/subheader.html
Normal 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>
|
||||
@ -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 }}
|
||||
|
||||
@ -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'%}
|
||||
|
||||
Reference in New Issue
Block a user