aboutsummaryrefslogtreecommitdiff
path: root/budget/templates/home.html
blob: d21d0ecd1128f8421d03894ecec3d440a4689c8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{% extends "layout.html" %}


{% block sidebar_wrapper %}{% endblock %}

{% block header %}
<div id="header">
    <div class="slide">
        <h1><span>{{ _("Manage your shared <br>expenses, easily") }}</span></h1>
        <a href="{{ url_for(".demo") }}" class="about_link">{{ _("Try out the demo")  }}</a>
    </div>
    <div class="additional-content">
        <p>{{ _("You're sharing a house?") }}<br /> {{ _("Going on holidays with friends?") }}<br /> {{ _("Simply sharing money with others?") }} <br /><strong>{{ _("We can help!") }}</strong></p>
    </div>

</div>
{% endblock %}

{% block container %}
<div class="container-fluid">
    <div class="content home">

      <div class="row">
        <div class="span8 columns">
            <form action="{{ url_for(".authenticate") }}" method="post">
                <h3>{{ _("Log to an existing project") }}...</h3>
                {{ forms.authenticate(auth_form, home=True) }}
                <button class="btn">{{ _("log in") }}</button>
                <a class="password-reminder" href="{{ url_for(".remind_password") }}">{{ _("can't remember your password?") }}</a>
            </form>
        </div>
        <div class="span8 columns">
            <form class="create" action="{{ url_for(".create_project") }}" method="post">
                <h3>...{{ _("or create a new one") }}</h3>
                {{ forms.create_project(project_form, home=True) }}
                <button class="btn">{{ _("let's get started") }}</button>
            </form>
        </div>
    </div>
    </div>
</div>
<script>
    $(document).ready(function(){
        $('form.create #password').qtip({
            content: '{{ _("This access code will be sent to your friends. It is stored as-is by the server, so don\\'t reuse a personal password here!") }}',
            show: {
                event: 'focus'
            },
            hide: {
                event: 'focusout'
            },
            position: {
                my: "bottom center",
                at: "top center",
                adjust: {
                    method: 'shift'
                }
               
            }
        });
    });
</script>
{% endblock %}