aboutsummaryrefslogtreecommitdiff
path: root/ihatemoney/templates/home.html
diff options
context:
space:
mode:
authorAlexis Metaireau <alexis@notmyidea.org>2017-07-07 00:06:56 +0200
committerGitHub <noreply@github.com>2017-07-07 00:06:56 +0200
commit3a4282fd75e3b3317b2b08b4aa2e6ac154310e73 (patch)
tree9470c907ba1f884246af87d26d55c3aaac6d6dc5 /ihatemoney/templates/home.html
parent0e374cd5e0ef5a9be67084365f91de2ab84f636c (diff)
downloadihatemoney-mirror-3a4282fd75e3b3317b2b08b4aa2e6ac154310e73.zip
ihatemoney-mirror-3a4282fd75e3b3317b2b08b4aa2e6ac154310e73.tar.gz
ihatemoney-mirror-3a4282fd75e3b3317b2b08b4aa2e6ac154310e73.tar.bz2
Absolute imports & some other improvements (#243)
* Use absolute imports and rename package to ihatemoney * Add a ihatemoney command * Factorize application creation logic * Refactor the tests * Update the wsgi.py module with the new create_app() function * Fix some styling thanks to Flake8. * Automate Flake8 check in the CI.
Diffstat (limited to 'ihatemoney/templates/home.html')
-rw-r--r--ihatemoney/templates/home.html56
1 files changed, 56 insertions, 0 deletions
diff --git a/ihatemoney/templates/home.html b/ihatemoney/templates/home.html
new file mode 100644
index 0000000..9bfe467
--- /dev/null
+++ b/ihatemoney/templates/home.html
@@ -0,0 +1,56 @@
+{% extends "layout.html" %}
+
+
+{% block body %}
+ <header id="header" class="row">
+ <div class="col-xs-12 col-sm-5 offset-md-2">
+ <h2>{{ _("Manage your shared <br>expenses, easily") }}</h2>
+ {% if is_demo_project_activated %}
+ <a href="{{ url_for(".demo") }}" class="tryout btn">{{ _("Try out the demo") }}</a>
+ {% endif %}
+ </div>
+ <div class="col-xs-12 col-sm-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-xs-12 col-sm-5 col-md-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-xs-12 col-sm-5 col-md-3 offset-sm-1">
+ {% if is_admin_mode_enabled %}
+ <a href="{{ url_for(".create_project") }}">...{{ _("or create a new one") }}</a>
+ {% else %}
+ <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>
+ {% endif %}
+ </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 %}