summaryrefslogtreecommitdiff
path: root/app/templates/home.html
blob: ace98e9df21cddca2d827cc1b792c3c77d4823d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{# -*- mode: web; -*- #}

{% extends "base.html" %}

{% block title %}
{% if current_user.is_authenticated %}
Welcome, {{ user.name_first }} {{ user.name_last }}!
{% else %}
Welcome to the ERP for the FAPG!
{% endif %}
{% endblock %}

{% block actions %}
<li><a href="{{ url_for('main.download_database') }}" class="button">Download database</a></li>
{% endblock %}

{% block content %}
<h2>Available modules</h2>
<dl>
    {% for module in modules %}
    <dt>
	{% if current_user.is_authenticated %}
	{# Send to actual module page #}
	<a href="/modules/{{ module.name }}">{{ module.name }}</a>
	{% else %}
	{# Send to module promo section #}
	<a href="/modules#{{ module.name }}">{{ module.name }}</a>
	{% endif %}
    </dt>
    <dd>{{ module.description }}</dd>
    {% endfor %}
</dl>

{% endblock %}
Copyright 2019--2024 Marius PETER