2011-07-31 23:55:02 +02:00
|
|
|
{% import "forms.html" as forms %}
|
2011-03-10 03:37:21 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
2011-10-15 02:40:19 +02:00
|
|
|
<title>{{ _("Account manager") }}{% block title %}{% endblock %}</title>
|
2011-08-21 01:42:10 +02:00
|
|
|
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
2011-11-27 23:28:24 +01:00
|
|
|
<link rel=stylesheet type=text/css href="{{ url_for("static", filename='css/main.css') }}">
|
2017-02-01 19:14:49 +01:00
|
|
|
<script src="{{ url_for("static", filename="js/jquery-3.1.1.min.js") }}"></script>
|
2011-11-27 23:28:24 +01:00
|
|
|
<script src="{{ url_for("static", filename="js/ihatemoney.js") }}"></script>
|
2017-02-01 19:14:49 +01:00
|
|
|
<script src="{{ url_for("static", filename="js/tether.min.js") }}"></script>
|
2012-04-05 15:40:09 +02:00
|
|
|
<script src="{{ url_for("static", filename="js/bootstrap.min.js") }}"></script>
|
2011-10-16 23:38:27 +02:00
|
|
|
{% block head %}{% endblock %}
|
2011-08-21 01:42:10 +02:00
|
|
|
<script type="text/javascript" charset="utf-8">
|
|
|
|
$(document).ready(function(){
|
2011-11-02 13:44:55 +01:00
|
|
|
var left = window.innerWidth/2-$('.flash').width()/2;
|
2017-02-02 11:48:40 +01:00
|
|
|
$(".flash").css({ "left": left+"px", "top":"0.6rem" });
|
2011-08-21 01:42:10 +02:00
|
|
|
setTimeout(function(){
|
|
|
|
$(".flash").fadeOut("slow", function () {
|
|
|
|
$(".flash").remove();
|
|
|
|
});
|
2011-09-14 01:16:25 +02:00
|
|
|
}, 4000);
|
2011-08-21 01:42:10 +02:00
|
|
|
|
2012-09-03 18:11:31 +02:00
|
|
|
$('.datepicker').datepicker({
|
|
|
|
format: 'yyyy-mm-dd',
|
|
|
|
weekStart: 1,
|
|
|
|
autoclose: true,
|
|
|
|
language: '{{ g.lang }}'
|
|
|
|
});
|
|
|
|
|
|
|
|
$('.dropdown-toggle').dropdown();
|
2011-08-10 23:55:07 +02:00
|
|
|
|
2011-08-21 01:42:10 +02:00
|
|
|
{% block js %}{% endblock %}
|
|
|
|
});
|
|
|
|
</script>
|
2011-03-10 03:37:21 +01:00
|
|
|
</head>
|
2011-11-27 23:03:06 +01:00
|
|
|
<body>
|
2012-04-05 15:40:09 +02:00
|
|
|
|
2017-02-02 11:48:40 +01:00
|
|
|
<nav class="navbar navbar-toggleable-md navbar fixed-top navbar-inverse bg-inverse">
|
|
|
|
<h1 class="col-2"><a class="navbar-brand" href="{{ url_for(".home") }}">#! money?</a></h1>
|
|
|
|
<ul class="navbar-nav col-5 offset-md-1">
|
2012-04-05 15:40:09 +02:00
|
|
|
{% if g.project %}
|
2013-04-07 23:01:32 +02:00
|
|
|
{% block navbar %}
|
2017-01-30 23:23:03 +01:00
|
|
|
<li class="nav-item{% if current_view == 'list_bills' %} active{% endif %}"><a class="nav-link" href="{{ url_for(".list_bills") }}">{{ _("Bills") }}</a></li>
|
|
|
|
<li class="nav-item{% if current_view == 'settle_bill' %} active{% endif %}"><a class="nav-link" href="{{ url_for(".settle_bill") }}">{{ _("Settle") }}</a></li>
|
2013-04-07 23:01:32 +02:00
|
|
|
{% endblock %}
|
2012-04-05 15:40:09 +02:00
|
|
|
{% endif %}
|
2017-02-02 11:48:40 +01:00
|
|
|
</ul>
|
|
|
|
<ul class="navbar-nav secondary-nav col-4">
|
2012-04-05 15:40:09 +02:00
|
|
|
{% if g.project %}
|
2017-02-02 11:48:40 +01:00
|
|
|
<li class="nav-item dropdown">
|
|
|
|
<a href="#" class="nav-link dropdown-toggle" id="navbarDropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><strong>{{ g.project.name }}</strong> {{ _("options") }} <b class="caret"></b></a>
|
|
|
|
<ul class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
|
|
|
|
<li><a class="dropdown-item" href="{{ url_for(".edit_project") }}">{{ _("Project settings") }}</a></li>
|
|
|
|
<li class="dropdown-divider"></li>
|
2012-04-05 15:40:09 +02:00
|
|
|
{% for id, name in session['projects'] %}
|
|
|
|
{% if id != g.project.id %}
|
2017-02-02 11:48:40 +01:00
|
|
|
<li><a class="dropdown-item" href="{{ url_for(".list_bills", project_id=id) }}">{{ _("switch to") }} {{ name }}</a></li>
|
2012-04-05 15:40:09 +02:00
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
2017-02-02 11:48:40 +01:00
|
|
|
<li><a class="dropdown-item" href="{{ url_for(".create_project") }}">{{ _("Start a new project") }}</a></li>
|
|
|
|
<li class="dropdown-divider"></li>
|
|
|
|
<li><a class="dropdown-item" href="{{ url_for(".exit") }}">{{ _("Logout") }}</a></li>
|
2012-04-05 15:40:09 +02:00
|
|
|
</ul>
|
|
|
|
</li>
|
2011-08-21 02:37:15 +02:00
|
|
|
{% endif %}
|
2017-02-02 11:48:40 +01:00
|
|
|
<li class="nav-item{% if g.lang == "fr" %} active{% endif %}"><a class="nav-link" href="{{ url_for(".change_lang", lang="fr") }}">fr</a></li>
|
|
|
|
<li class="nav-item{% if g.lang == "en" %} active{% endif %}"><a class="nav-link" href="{{ url_for(".change_lang", lang="en") }}">en</a></li>
|
2012-04-05 15:40:09 +02:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
2017-02-01 20:22:25 +01:00
|
|
|
</nav>
|
|
|
|
|
2011-11-27 23:03:06 +01:00
|
|
|
<div class="container-fluid">
|
2017-02-01 20:22:25 +01:00
|
|
|
{% block body %}
|
2011-10-18 18:39:38 +02:00
|
|
|
{% block sidebar %}{% endblock %}
|
2017-02-01 20:22:25 +01:00
|
|
|
<main class="content offset-1 col-10">
|
2012-04-05 15:40:09 +02:00
|
|
|
{% block content %}{% endblock %}
|
2017-02-01 20:22:25 +01:00
|
|
|
</main>
|
2011-03-10 03:37:21 +01:00
|
|
|
</div>
|
2011-08-21 03:16:54 +02:00
|
|
|
{% endblock %}
|
2012-04-05 15:40:09 +02:00
|
|
|
|
|
|
|
{% for message in get_flashed_messages() %}
|
2017-02-01 20:22:25 +01:00
|
|
|
<div class="flash alert alert-success">{{ message }}</div>
|
2012-04-05 15:40:09 +02:00
|
|
|
{% endfor %}
|
|
|
|
|
2011-08-21 14:57:05 +02:00
|
|
|
{% block footer %}
|
2017-02-01 20:22:25 +01:00
|
|
|
<footer>
|
2011-10-18 00:04:50 +02:00
|
|
|
<p><a href="https://github.com/spiral-project/ihatemoney">{{ _("This is a free software") }}</a>, {{ _("you can contribute and improve it!") }}</p>
|
2017-02-01 20:22:25 +01:00
|
|
|
</footer>
|
2011-08-21 14:57:05 +02:00
|
|
|
{% endblock %}
|
2011-08-21 01:42:10 +02:00
|
|
|
|
2011-03-10 03:37:21 +01:00
|
|
|
</body>
|
|
|
|
</html>
|