aboutsummaryrefslogtreecommitdiff
path: root/budget/templates/home.html
blob: d970fe75015a98b09cc60bc00b01b77d14f2d887 (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
{% extends "layout.html" %}


{% block body %}
    <header id="header" class="row">
      <div class="col-5  offset-md-2">
            <h2>{{ _("Manage your shared <br>expenses, easily") }}</h2>
            <a href="{{ url_for(".demo") }}" class="tryout btn btn-inverse pull-right">{{ _("Try out the demo")  }}</a>
        </div>
        <div class="col-4">
            <p class="additional-content">{{ _("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>
    </header>

    <main class="row home">
        <div class="col-4 offset-md-2">
            <form id="authentication-form" class="form-horizontal" action="{{ url_for(".authenticate") }}" method="post">
                <fieldset class="form-group">
                    <legend>{{ _("Log to an existing project") }}...</legend>
                    {{ forms.authenticate(auth_form, home=True) }}
                </fieldset>
                <div class="controls">
                    <button class="btn" type="submit">{{ _("log in") }}</button>
                    <a class="password-reminder" href="{{ url_for(".remind_password") }}">{{ _("can't remember your password?") }}</a>
                </div>
            </form>
        </div>
        <div class="col-3 offset-md-1">
            <form id="creation-form" class="form-horizontal" action="{{ url_for(".create_project") }}" method="post">
                <fieldset class="form-group">
                    <legend>...{{ _("or create a new one") }}</legend>
                    {{ forms.create_project(project_form, home=True) }}
                </fieldset>
                <div class="controls">
                    <button class="btn" type="submit">{{ _("let's get started") }}</button>
                </div>
            </form>
        </main>
    </div>
{% endblock %}

{% block js %}

$('#creation-form #password').tooltip({
    title: '{{ _("This access code will be sent to your friends. It is stored as-is by the server, so don\\'t reuse a personal password!") }}',
    trigger: 'focus',
    placement: 'right'
});

{% endblock %}