Fixup forms and templates for forms
This commit is contained in:
35
apps/map/templates/map/form-success.html
Normal file
35
apps/map/templates/map/form-success.html
Normal file
@ -0,0 +1,35 @@
|
||||
{% extends "base_page.html" %}
|
||||
{% load bootstrap3 %}
|
||||
{% load compress %}
|
||||
{% load i18n %}
|
||||
{% load humanize %}
|
||||
|
||||
{% block stylesheets %}
|
||||
{{ block.super }}
|
||||
<style>
|
||||
a.btn-jumbo {
|
||||
color: navy;
|
||||
width:320px;
|
||||
height:240px;
|
||||
border: 1px solid black;
|
||||
border-radius: 5px;
|
||||
white-space: normal;
|
||||
line-height:55px;
|
||||
padding:80px 20px;
|
||||
margin: 20px;
|
||||
}
|
||||
a.btn-jumbo > * {
|
||||
vertical-align: middle;
|
||||
display: inline-block;
|
||||
line-height:20px;
|
||||
}
|
||||
div.btn-jumbo-group {
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
{% endblock %}
|
||||
|
||||
{% block title %}{% trans "Thanks!" %}{% endblock %}
|
||||
{% block inner %}
|
||||
<p class="lead text-center">{% trans "Your submission will be reviewed shortly. We will update you via email." %}</p>
|
||||
{% endblock %}
|
@ -104,7 +104,7 @@
|
||||
map.on('click', function(e) {
|
||||
var popup = L.popup()
|
||||
.setLatLng(e.latlng)
|
||||
.setContent("<a class='btn btn-primary btn-sm' href='case-study/add?lat="+e.latlng.lat+"&lng="+e.latlng.lng+"' role='button'>{% trans "Submit a Case Study" %}</a>")
|
||||
.setContent("<a class='btn btn-primary btn-sm' href='{% url 'create' %}?lat="+e.latlng.lat+"&lng="+e.latlng.lng+"' role='button'>{% trans "Submit a Case Study" %}</a>")
|
||||
.openOn(map);
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user