2012-11-20 03:47:19 -06:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>{% block head_title %}YouMap{% endblock %}</title>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<!-- Included CSS Files (Compressed) -->
|
|
|
|
<link rel="stylesheet" href="{{ STATIC_URL }}foundation/stylesheets/foundation.css">
|
|
|
|
<link rel="stylesheet" href="{{ STATIC_URL }}youmap/youmap.css">
|
|
|
|
|
|
|
|
<script src="{{ STATIC_URL }}foundation/javascripts/modernizr.foundation.js"></script>
|
|
|
|
|
|
|
|
<!-- IE Fix for HTML5 Tags -->
|
|
|
|
<!--[if lt IE 9]>
|
|
|
|
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
|
|
|
<![endif]-->
|
|
|
|
{% block extra_head %}
|
|
|
|
{% endblock extra_head %}
|
|
|
|
|
|
|
|
</head>
|
|
|
|
<body class="{% block body_class %}{% endblock %}">
|
|
|
|
|
|
|
|
<div>
|
|
|
|
{% block content %}
|
|
|
|
{% endblock %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script src="{{ STATIC_URL }}foundation/javascripts/modernizr.foundation.js"></script>
|
|
|
|
<script src="{{ STATIC_URL }}foundation/javascripts/jquery.js"></script>
|
|
|
|
<script src="{{ STATIC_URL }}foundation/javascripts/jquery.foundation.mediaQueryToggle.js"></script>
|
|
|
|
<script src="{{ STATIC_URL }}foundation/javascripts/jquery.foundation.reveal.js"></script>
|
2012-11-21 10:50:27 -06:00
|
|
|
<!--script src="{{ STATIC_URL }}foundation/javascripts/jquery.foundation.orbit.js"></script-->
|
2012-11-20 03:47:19 -06:00
|
|
|
<script src="{{ STATIC_URL }}foundation/javascripts/jquery.foundation.navigation.js"></script>
|
|
|
|
<script src="{{ STATIC_URL }}foundation/javascripts/jquery.foundation.buttons.js"></script>
|
|
|
|
<script src="{{ STATIC_URL }}foundation/javascripts/jquery.foundation.tabs.js"></script>
|
|
|
|
<script src="{{ STATIC_URL }}foundation/javascripts/jquery.foundation.forms.js"></script>
|
|
|
|
<script src="{{ STATIC_URL }}foundation/javascripts/jquery.foundation.tooltips.js"></script>
|
|
|
|
<script src="{{ STATIC_URL }}foundation/javascripts/jquery.foundation.accordion.js"></script>
|
|
|
|
<script src="{{ STATIC_URL }}foundation/javascripts/jquery.placeholder.js"></script>
|
|
|
|
<script src="{{ STATIC_URL }}foundation/javascripts/jquery.foundation.alerts.js"></script>
|
|
|
|
{% block bottom_js %}
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(document).foundationAlerts();
|
2012-11-21 10:50:27 -06:00
|
|
|
L.Chickpea.on('modal_ready', function (e) {
|
2012-11-20 03:47:19 -06:00
|
|
|
var $div = $('#reveal-container');
|
|
|
|
// reset class
|
|
|
|
$div.attr("class", "");
|
|
|
|
$div.addClass("reveal-modal");
|
2012-11-21 10:50:27 -06:00
|
|
|
if (e.cssClass) {
|
|
|
|
$div.addClass(e.cssClass);
|
2012-11-20 03:47:19 -06:00
|
|
|
}
|
2012-11-21 10:50:27 -06:00
|
|
|
return $div.empty().html(e.data.html).append('<a class="close-reveal-modal">×</a>').reveal();
|
|
|
|
});
|
|
|
|
L.Chickpea.on('modal_close', function (e) {
|
|
|
|
var $div = $('#reveal-container').trigger('reveal:close');
|
|
|
|
});
|
|
|
|
L.Chickpea.on('alert', function (e) {
|
|
|
|
$div = $('<div>').addClass('alert-box success global').html(e.content);
|
2012-11-20 03:47:19 -06:00
|
|
|
$div.append('<a href="#" class="close">×</a>');
|
|
|
|
$("body").prepend($div);
|
2012-11-21 10:50:27 -06:00
|
|
|
});
|
2012-11-20 03:47:19 -06:00
|
|
|
$('a.reveal').click(function(e) {
|
|
|
|
e.preventDefault();
|
|
|
|
var $this = $(this);
|
|
|
|
$.get($this.attr('href'), function(data) {
|
2012-11-22 08:05:57 -06:00
|
|
|
return L.Chickpea.fire('modal_ready', {'data': data});
|
2012-11-20 03:47:19 -06:00
|
|
|
}, 'json');
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
{% endblock %}
|
|
|
|
<div id="reveal-container" class="reveal-modal"></div>
|
|
|
|
</body>
|
|
|
|
</html>
|