Skip to content
Permalink
Browse files

add selmer, templates, bootswatch template lux, input form, result page

  • Loading branch information...
bradlucas committed Sep 19, 2019
1 parent 7eb805d commit ce92691f84ee620cb5d353bd73441b3f3f398779
@@ -13,6 +13,7 @@

[com.drewnoakes/metadata-extractor "2.12.0"]

[selmer "1.12.12"]
]

:repl-options {:init-ns imagelocation.core}

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more.

@@ -0,0 +1,56 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>{{ title }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="stylesheet" href="/css/bootswatch-lux.min.css" media="screen">
<link rel="stylesheet" href="/css/custom.min.css" media="screen">

<!-- INSERT GOOGLE ANALYTICS HERE -->

</head>
<body>

<nav class="navbar navbar-expand-lg fixed-top navbar-dark bg-dark">
<div class="container">
<a class="navbar-brand" href="/">Image Location</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarColor02" aria-controls="navbarColor02" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>

<div class="collapse navbar-collapse" id="navbarColor02">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="/about">About</a>
</li>
</ul>
</div>
</div>
</nav>


<div class="container">
{% block content %}
{% endblock %}


<!-- insert sticky footer -->

<footer id="footer">
<div class="row">
<div class="col-lg-12">
<p>Copryright &copy; 2009-2019 Beacon Hill Inc. <a href="mailto:brad@beaconhill.com">brad@beaconhill.com</a></p>
</div>
</div>
</footer>
</div>


<script src="../_vendor/jquery/dist/jquery.min.js"></script>
<script src="../_vendor/popper.js/dist/umd/popper.min.js"></script>
<script src="../_vendor/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="../_assets/js/custom.js"></script>
</body>
</html>
@@ -0,0 +1,25 @@
{% extends "templates/base.html" %}
{% block content %}

<div class="col-lg-6">

<form action="/" method="post" enctype="multipart/form-data">
<fieldset>
<legend>Upload Image</legend>
<div class="form-group">
{% csrf-field %}
<label for="exampleInputFile">Select File</label>
<input type="file" name="file" size="20" "class="form-control-file" id="fileInputFile" aria-describedby="fileHelp">
<small id="fileHelp" class="form-text text-muted">Uploaded images are read for location information and then deleted. The system does not store uploaded images.</small>
</div>
<button type="submit" class="btn btn-primary">Submit</button>
</fieldset>
</form>
</div>
{% endblock %}
@@ -0,0 +1,22 @@
{% extends "templates/base.html" %}
{% block content %}


<div class="card mb-3">
<h3 class="card-header">Image Location</h3>

<ul class="list-group list-group-flush">
<li class="list-group-item">Lat/Lng {{result.lat}},{{result.lng}}</li>
</ul>

<div class="card-body">
<iframe width="100%" height="600" id="gmap_canvas" src="https://maps.google.com/maps?q={{result.lat}}%2C%20{{result.lng}}&t=&z=15&ie=UTF8&iwloc=&output=embed" frameborder="0" scrolling="no" marginheight="0" marginwidth="0"></iframe>
</div>

<div class="card-body">
<a href="{{result.link}}" class="card-link">Google Map Link</a>
</div>
</div>


{% endblock %}

0 comments on commit ce92691

Please sign in to comment.
You can’t perform that action at this time.