navigation buttons

This commit is contained in:
Davide Alberani 2015-03-15 20:39:55 +01:00
parent 3aa2e057b6
commit 22da76e932

View file

@ -10,12 +10,32 @@
<script src="/js/controllers.js"></script>
<title>Event Man(ager)</title>
<link href="/static/css/bootstrap.min.css" rel="stylesheet">
<link href="/static/css/bootstrap-theme.min.css" rel="stylesheet">
</head>
<body>
<div class="main-header">
<input type="button" id="events-button" class="btn btn-link" value="Events" />
<input type="button" id="persons-button" class="btn btn-link" value="Persons" />
</div>
<div ng-view></div>
<div class="main-footer">
</div>
<script src="/static/js/jquery-2.1.3.min.js"></script>
<script src="/static/js/bootstrap.min.js"></script>
<script>
$(document).ready(function() {
$('#events-button').on('click', function() {
window.location = '/#/events';
});
$('#persons-button').on('click', function() {
window.location = '/#/persons';
});
});
</script>
</body>
</html>