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') }}">
|
2012-04-05 15:40:09 +02:00
|
|
|
<script src="{{ url_for("static", filename="js/jquery-1.7.2.min.js") }}"></script>
|
2011-11-27 23:28:24 +01:00
|
|
|
<script src="{{ url_for("static", filename="js/ihatemoney.js") }}"></script>
|
2012-04-05 15:40:09 +02:00
|
|
|
<script src="{{ url_for("static", filename="js/bootstrap.min.js") }}"></script>
|
2012-09-03 18:11:31 +02:00
|
|
|
<script src="{{ url_for("static", filename="js/bootstrap-datepicker.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;
|
|
|
|
$(".flash").css({ "left": left+"px", "top":"45px" });
|
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
|
|
|
|
|
|
|
<div class="navbar navbar-fixed-top">
|
|
|
|
<div class="navbar-inner">
|
|
|
|
<div class="container-fluid">
|
|
|
|
<h1><a class="brand" href="{{ url_for(".home") }}">#! money?</a></h1>
|
|
|
|
{% if g.project %}
|
|
|
|
<ul class="nav primary-nav">
|
|
|
|
<li class="active"><a href="{{ url_for(".list_bills") }}">{{ _("Bills") }}</a></li>
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
<ul class="nav pull-right secondary-nav">
|
|
|
|
{% if g.project %}
|
|
|
|
<li class="dropdown">
|
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><strong>{{ g.project.name }}</strong> {{ _("options") }} <b class="caret"></b></a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li><a href="{{ url_for(".edit_project") }}">{{ _("Project settings") }}</a></li>
|
|
|
|
<li class="divider"></li>
|
|
|
|
{% for id, name in session['projects'] %}
|
|
|
|
{% if id != g.project.id %}
|
|
|
|
<li><a href="{{ url_for(".list_bills", project_id=id) }}">{{ _("switch to") }} {{ name }}</a></li>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
<li><a href="{{ url_for(".create_project") }}">{{ _("Start a new project") }}</a></li>
|
|
|
|
<li class="divider"></li>
|
|
|
|
<li><a href="{{ url_for(".exit") }}">{{ _("Logout") }}</a></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
2011-08-21 02:37:15 +02:00
|
|
|
{% endif %}
|
2012-04-05 15:40:09 +02:00
|
|
|
<li{% if g.lang == "fr" %} class="active"{% endif %}><a href="{{ url_for(".change_lang", lang="fr") }}">fr</a></li>
|
|
|
|
<li{% if g.lang == "en" %} class="active"{% endif %}><a href="{{ url_for(".change_lang", lang="en") }}">en</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
2011-08-21 01:42:10 +02:00
|
|
|
</div>
|
2012-04-05 15:40:09 +02:00
|
|
|
|
2011-08-21 03:16:54 +02:00
|
|
|
{% block header %}{% endblock %}
|
2012-04-05 15:40:09 +02:00
|
|
|
|
|
|
|
{% block body %}
|
2011-11-27 23:03:06 +01:00
|
|
|
<div class="container-fluid">
|
2011-10-18 18:39:38 +02:00
|
|
|
{% block sidebar %}{% endblock %}
|
2011-11-27 23:03:06 +01:00
|
|
|
<div class="content">
|
2012-04-05 15:40:09 +02:00
|
|
|
{% block content %}{% endblock %}
|
2011-08-21 01:42:10 +02:00
|
|
|
</div>
|
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() %}
|
|
|
|
<div class="flash alert alert-success"><p>{{ message }}</p></div>
|
|
|
|
{% endfor %}
|
|
|
|
|
2011-08-21 14:57:05 +02:00
|
|
|
{% block footer %}
|
2011-09-14 18:22:26 +02:00
|
|
|
<div id="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>
|
2011-08-21 14:57:05 +02:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|
2011-08-21 01:42:10 +02:00
|
|
|
|
2011-03-10 03:37:21 +01:00
|
|
|
</body>
|
|
|
|
</html>
|