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-09-09 21:21:37 +02:00
|
|
|
<link rel=stylesheet type=text/css href="{{ url_for("static", filename='main.css') }}">
|
2011-10-16 23:38:27 +02:00
|
|
|
<script src="{{ url_for("static", filename="jquery/js/jquery-1.6.2.min.js") }}"></script>
|
|
|
|
{% block head %}{% endblock %}
|
2011-08-21 01:42:10 +02:00
|
|
|
<script type="text/javascript" charset="utf-8">
|
|
|
|
$(document).ready(function(){
|
|
|
|
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
|
|
|
$("body").bind("click", function(e) {
|
|
|
|
$("ul.menu-dropdown").hide();
|
|
|
|
$('a.menu').parent("li").removeClass("open").children("ul.menu-dropdown").hide();
|
|
|
|
});
|
|
|
|
|
|
|
|
$("a.menu").click(function(e) {
|
|
|
|
var $target = $(this);
|
|
|
|
var $parent = $target.parent("li");
|
|
|
|
var $siblings = $target.siblings("ul.menu-dropdown");
|
|
|
|
var $parentSiblings = $parent.siblings("li");
|
|
|
|
if ($parent.hasClass("open")) {
|
|
|
|
$parent.removeClass("open");
|
|
|
|
$siblings.hide();
|
|
|
|
} else {
|
|
|
|
$parent.addClass("open");
|
|
|
|
$siblings.show();
|
|
|
|
}
|
|
|
|
$parentSiblings.children("ul.menu-dropdown").hide();
|
|
|
|
$parentSiblings.removeClass("open");
|
|
|
|
return false;
|
|
|
|
});
|
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-10-18 04:30:34 +02:00
|
|
|
<body style="margin-top: 50px;">
|
2011-10-17 00:03:41 +02:00
|
|
|
{% macro translations() %}
|
|
|
|
<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>
|
|
|
|
{% endmacro %}
|
2011-08-21 01:42:10 +02:00
|
|
|
<div class="topbar">
|
2011-10-15 21:49:27 +02:00
|
|
|
<h3><a class="logo" href="{{ url_for(".home") }}">#! money?</a></h3>
|
2011-08-21 01:42:10 +02:00
|
|
|
{% if g.project %}
|
|
|
|
<ul>
|
2011-10-15 01:19:19 +02:00
|
|
|
<li class="active"><a href="">{{ _("Bills") }}</a></li>
|
2011-08-21 01:42:10 +02:00
|
|
|
</ul>
|
|
|
|
<ul class="nav secondary-nav">
|
|
|
|
<li class="menu">
|
2011-10-15 01:19:19 +02:00
|
|
|
<a href="#" class="menu"><strong>{{ g.project.name }}</strong> {{ _("options") }}</a>
|
2011-08-21 01:42:10 +02:00
|
|
|
<ul class="menu-dropdown" style="display: none; ">
|
2011-10-15 01:19:19 +02:00
|
|
|
<li><a href="{{ url_for(".edit_project") }}">{{ _("Project settings") }}</a></li>
|
2011-08-21 02:37:15 +02:00
|
|
|
<li class="divider"></li>
|
|
|
|
{% for id, name in session['projects'] %}
|
|
|
|
{% if id != g.project.id %}
|
2011-10-15 01:19:19 +02:00
|
|
|
<li><a href="{{ url_for(".list_bills", project_id=id) }}">{{ _("switch to") }} {{ name }}</a></li>
|
2011-08-21 02:37:15 +02:00
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
2011-10-15 01:19:19 +02:00
|
|
|
<li><a href="{{ url_for(".create_project") }}">{{ _("Start a new project") }}</a></li>
|
2011-08-21 01:42:10 +02:00
|
|
|
<li class="divider"></li>
|
2011-10-15 01:19:19 +02:00
|
|
|
<li><a href="{{ url_for(".exit") }}">{{ _("Logout") }}</a></li>
|
2011-08-21 01:42:10 +02:00
|
|
|
</ul>
|
|
|
|
</li>
|
2011-10-17 00:03:41 +02:00
|
|
|
{{ translations() }}
|
|
|
|
</ul>
|
|
|
|
{% else %}
|
|
|
|
<ul class="nav secondary-nav">
|
|
|
|
{{ translations() }}
|
2011-08-21 01:42:10 +02:00
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2011-08-21 03:16:54 +02:00
|
|
|
{% block header %}{% endblock %}
|
|
|
|
{% block container %}
|
2011-10-18 04:30:34 +02:00
|
|
|
<div class="container-fluid" style="height: 100%; padding-left: 10px;">
|
2011-10-18 18:39:38 +02:00
|
|
|
{% block sidebar %}{% endblock %}
|
2011-10-18 04:30:34 +02:00
|
|
|
<div class="content" style="margin-left: 250px;">
|
2011-07-23 20:36:13 +02:00
|
|
|
{% for message in get_flashed_messages() %}
|
2011-08-21 01:42:10 +02:00
|
|
|
<div class="flash alert-message info"><p>{{ message }}</p></div>
|
2011-07-23 20:36:13 +02:00
|
|
|
{% endfor %}
|
|
|
|
{% 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 %}
|
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>
|