diff --git a/cameteo-interface/templates/base.html b/cameteo-interface/templates/base.html.j2 similarity index 100% rename from cameteo-interface/templates/base.html rename to cameteo-interface/templates/base.html.j2 diff --git a/cameteo-interface/templates/config_page.html b/cameteo-interface/templates/config_page.html.j2 similarity index 71% rename from cameteo-interface/templates/config_page.html rename to cameteo-interface/templates/config_page.html.j2 index 2c80d38..cb64e99 100644 --- a/cameteo-interface/templates/config_page.html +++ b/cameteo-interface/templates/config_page.html.j2 @@ -1,4 +1,4 @@ -{% extends "base.html" %} +{% extends "base.tpl" %} {% block title %}Camétéo{% endblock %} {% block content %} diff --git a/cameteo-interface/templates/data_graph.html.j2 b/cameteo-interface/templates/data_graph.html.j2 new file mode 100644 index 0000000..6a4552a --- /dev/null +++ b/cameteo-interface/templates/data_graph.html.j2 @@ -0,0 +1,46 @@ +{% extends "base.tpl" %} +{% block title %}Camétéo{% endblock %} + +{% block styles %} + {{super()}} + {{ css_ressources }} + {{ js_ressources }} +{% endblock %} + +{% block content %} +{% from "bootstrap/pagination.html" import render_pagination %} +
+ {{ plot_div|safe }} +
+ {{ render_pagination(dat) }} +
+ + + + + + + + + + + {% for item in dat.items -%} + {% if item.value is number %} + + {% else %} + + {% endif %} + + + + + + {%- endfor %} + +
Date/HeureTypeValeurCapteur
{{ item.valdate }}{{ item.type_id }}{{ item.value }} {{ item.unit }}{{ item.sensor_id }}
+ {{ render_pagination(dat) }} +
+
+{{ plot_script|safe }} + +{% endblock %} \ No newline at end of file diff --git a/cameteo-interface/templates/data_viz.html b/cameteo-interface/templates/data_viz.html deleted file mode 100644 index 30a224c..0000000 --- a/cameteo-interface/templates/data_viz.html +++ /dev/null @@ -1,85 +0,0 @@ -{% extends "base.html" %} -{% block title %}Camétéo{% endblock %} - -{% block styles %} - {{super()}} - - -{% endblock %} - -{% block content %} -{% from "bootstrap/pagination.html" import render_pagination %} -
-
- {{ render_pagination(dat) }} -
- - - - - - - - - - {% for item in dat.items -%} - {% if item.value is number %} - - {% else %} - - {% endif %} - {%- endfor %} - -
Date/HeureValeurCapteur
{{ item.valdate }}{{ item.value }} {{ item.unit }}{{ item.sensor_id }}
{{ item.valdate }}{{ item.value }}{{ item.sensor_id }}
- {{ render_pagination(dat) }} -
-
- -{% endblock %} \ No newline at end of file diff --git a/cameteo-interface/templates/data_viz.html.j2 b/cameteo-interface/templates/data_viz.html.j2 new file mode 100644 index 0000000..dc70781 --- /dev/null +++ b/cameteo-interface/templates/data_viz.html.j2 @@ -0,0 +1,37 @@ +{% extends "base.tpl" %} +{% block title %}Camétéo{% endblock %} + +{% block content %} +{% from "bootstrap/pagination.html" import render_pagination %} +
+
+ {{ render_pagination(dat) }} +
+ + + + + + + + + + + {% for item in dat.items -%} + {% if item.value is number %} + + {% else %} + + {% endif %} + + + + + + {%- endfor %} + +
Date/HeureTypeValeurCapteur
{{ item.valdate }}{{ item.type_id }}{{ item.value }} {{ item.unit }}{{ item.sensor_id }}
+ {{ render_pagination(dat) }} +
+
+{% endblock %} \ No newline at end of file diff --git a/cameteo-interface/templates/index.html b/cameteo-interface/templates/index.html deleted file mode 100644 index 2631881..0000000 --- a/cameteo-interface/templates/index.html +++ /dev/null @@ -1,14 +0,0 @@ -{% extends "base.html" %} -{% block title %}Camétéo{% endblock %} - -{% block content %} - -
-
-

Bienvenue !

-

Camétéo est un projet de prise de mesures et de photos pour documenter - des activités d'extérieurs (randonnées, jardin...).

-

Voir les données...

-
-
-{% endblock %} \ No newline at end of file diff --git a/cameteo-interface/templates/index2.html b/cameteo-interface/templates/index.html.j2 similarity index 91% rename from cameteo-interface/templates/index2.html rename to cameteo-interface/templates/index.html.j2 index 2631881..55be6dd 100644 --- a/cameteo-interface/templates/index2.html +++ b/cameteo-interface/templates/index.html.j2 @@ -1,4 +1,4 @@ -{% extends "base.html" %} +{% extends "base.tpl" %} {% block title %}Camétéo{% endblock %} {% block content %} diff --git a/cameteo-interface/templates/photos.html.j2 b/cameteo-interface/templates/photos.html.j2 new file mode 100644 index 0000000..f7fa1cb --- /dev/null +++ b/cameteo-interface/templates/photos.html.j2 @@ -0,0 +1,14 @@ +{% extends "base.tpl" %} +{% block title %}Camétéo - Photos{% endblock %} + +{% block content %} + +
+
+

Photo précédente{% if numero > 0 %} | Photo suivante{% endif %}

+

Dernière photo prise

+

Télécharger la photo

+

+
+ +{% endblock %} \ No newline at end of file