Skip to content

Commit

Permalink
position stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
station committed Jul 26, 2016
1 parent 5f57ae7 commit f54a6ef
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions frontend/templates/poke_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ <h2>Location</h2>
<script src="http://openlayers.org/en/v3.17.1/build/ol.js"></script>



<div id="map" class="map"></div>
<script>
var map = new ol.Map({
Expand Down Expand Up @@ -124,6 +125,25 @@ <h2>Location</h2>
window.setInterval(addRandomFeature, 1000);

</script>

<h2>Set Location</h2>

<form action="/{{profile.account.pk}}/position" method="POST">
{% csrf_token %}

<div class="form-group">
<label for="latitude">Latitude</label>
<input type="text" class="form-control" id="latitude" name="latitude" placeholder="Latitude">
</div>
<div class="form-group">
<label for="longitude">Longitude</label>
<input type="text" class="form-control" id="longitude" name="longitude" placeholder="Longitude">
</div>
<button type="submit" class="btn btn-primary">Go</button>
</form>



<h2 class="sub-header">Inventory Items</h2>
<div class="table-responsive">
<table class="table table-striped">
Expand Down

0 comments on commit f54a6ef

Please sign in to comment.