This commit is contained in:
2019-10-27 02:18:42 +01:00
commit 134a3fa598
32 changed files with 1056 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
</head>
<body>
<div id=content>
{% block content %}
{% endblock %}
</div>
</body>
</html>
+10
View File
@@ -0,0 +1,10 @@
{% extends "mobile/base.html" %}
{% block content %}
<body>
<h1>Bloomhunt</h1>
<p>Hunt blooming trees in your area.</p>
<a class="btn btn-default" id="btn_scan" href="/mobile/scan">Scan a blooming tree</a>
{% endblock %}
+19
View File
@@ -0,0 +1,19 @@
{% extends "mobile/base.html" %}
{% block content %}
<h1>Scan a blooming tree!</h1>
<p>We will help you identifying the tree you are hunting.</p>
<p>{{ question.text }}</p>
{% for option in question.options %}
<form action="" method="post">
{% csrf_token %}
<input name="question" type="hidden" value="{{ question.key }}">
<input name="chosen_option" class="btn btn-default" type="submit" value="{{ option.text }}">
</form>
{% endfor %}
{% endblock %}
+28
View File
@@ -0,0 +1,28 @@
{% extends "mobile/base.html" %}
{% block content %}
<p>Congratulions, you are the first to report that this <b>{{ tree.name }}</b>
tree is blooming.<p>
<p>You may give it a name now</p>
<form action="/mobile/addtree/" method="post">
{% csrf_token %}
<input type="text" name="name">
<input type="hidden" name="tree" value="{{ tree.name }}">
<input id="in_long" type="text" name="longitude">
<input id="in_lat" type="text" name="latitude">
<input type="submit" value="Name your tree">
</form>
<script>
navigator.geolocation.getCurrentPosition(function(position) {
var in_long = document.getElementById("in_long");
var in_lat = document.getElementById("in_lat");
in_long.value = position.coords.longitude;
in_lat.value = position.coords.latitude;
});
</script>
{% endblock %}
+12
View File
@@ -0,0 +1,12 @@
{% extends "mobile/base.html" %}
{% block content %}
<h1>You are now one of the glorious Bloom Hunters!</h1>
<p>Does that feel great? It should! You really achieved something in
your life!</p>
<a class="btn btn-default" href="/mobile">Back to hunting</a>
{% endblock %}