From 92ce7d4d4806fa4b707334d1179e156570e3cde9 Mon Sep 17 00:00:00 2001 From: Brice Maron Date: Wed, 24 Jul 2019 15:45:57 +0200 Subject: Improve usability specially for small screen - add buttons class to fix alignments - add responsive info to big tables - use visibility instead of display to avoid jumping rows - reorganize menu in responsive --- ihatemoney/templates/forms.html | 10 ++++++---- ihatemoney/templates/home.html | 2 +- ihatemoney/templates/layout.html | 36 +++++++++++++++++++++++++----------- ihatemoney/templates/list_bills.html | 4 ++-- 4 files changed, 34 insertions(+), 18 deletions(-) (limited to 'ihatemoney/templates') diff --git a/ihatemoney/templates/forms.html b/ihatemoney/templates/forms.html index 2a5e0a2..57f9440 100644 --- a/ihatemoney/templates/forms.html +++ b/ihatemoney/templates/forms.html @@ -24,10 +24,10 @@
{% if home %} - {{ _("Can't remember the password?") }} + {{ _("Can't remember the password?") }} {% endif %} {% if cancel %} - + {% endif %}
{% endmacro %} @@ -110,7 +110,7 @@
{{ form.submit(class="btn btn-primary") }} - {% if not edit %} {{ form.submit2(class="btn") }}{% endif %} + {% if not edit %} {{ form.submit2(class="btn btn-light") }}{% endif %}
{% endmacro %} @@ -121,7 +121,9 @@
{{ form.name(placeholder=_("Type user name here"), class="form-control") }} - +
+ +
{% endmacro %} diff --git a/ihatemoney/templates/home.html b/ihatemoney/templates/home.html index 512f780..4e32995 100644 --- a/ihatemoney/templates/home.html +++ b/ihatemoney/templates/home.html @@ -35,7 +35,7 @@ {{ forms.create_project(project_form, home=True) }}
- +
{% else %} diff --git a/ihatemoney/templates/layout.html b/ihatemoney/templates/layout.html index f96e8b2..2cb17da 100644 --- a/ihatemoney/templates/layout.html +++ b/ihatemoney/templates/layout.html @@ -31,40 +31,51 @@ +

#! money?

+ {% if g.project %}{{ g.project.name }}{% endif %} + @@ -86,7 +97,10 @@ {% block footer %} {% endblock %} diff --git a/ihatemoney/templates/list_bills.html b/ihatemoney/templates/list_bills.html index 718009b..98ff683 100644 --- a/ihatemoney/templates/list_bills.html +++ b/ihatemoney/templates/list_bills.html @@ -79,7 +79,7 @@ {% endblock %} {% block content %} -
{{ _("Invite people to join this project!") }}
+
{{ _("Invite people to join this project!") }}
{{ _("Add a new bill") }} {% if bills.count() > 0 %} - +
{% for bill in bills %} -- cgit v1.1
{{ _("Added on") }}{{ _("When?") }}{{ _("Who paid?") }}{{ _("For what?") }}{{ _("For whom?") }}{{ _("How much?") }}{{ _("Actions") }}