aboutsummaryrefslogtreecommitdiff
path: root/ihatemoney/templates/forms.html
diff options
context:
space:
mode:
authorBrice Maron <b.maron@whatever-company.com>2019-07-24 15:45:57 +0200
committerAlexis Metaireau <alexis@notmyidea.org>2019-07-25 13:26:46 +0200
commit92ce7d4d4806fa4b707334d1179e156570e3cde9 (patch)
tree40d58397901e7447c1964a49219370f51c17b761 /ihatemoney/templates/forms.html
parent773fbec5b2b44ab22b68b6284fbc246de2f363fb (diff)
downloadihatemoney-mirror-92ce7d4d4806fa4b707334d1179e156570e3cde9.zip
ihatemoney-mirror-92ce7d4d4806fa4b707334d1179e156570e3cde9.tar.gz
ihatemoney-mirror-92ce7d4d4806fa4b707334d1179e156570e3cde9.tar.bz2
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
Diffstat (limited to 'ihatemoney/templates/forms.html')
-rw-r--r--ihatemoney/templates/forms.html10
1 files changed, 6 insertions, 4 deletions
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 @@
<div class="actions">
<button type="submit" class="btn btn-primary">{{ field.name }}</button>
{% if home %}
- <a href="{{ url_for(".remind_password") }}">{{ _("Can't remember the password?") }}</a>
+ <a href="{{ url_for(".remind_password") }}" class="btn btn-link">{{ _("Can't remember the password?") }}</a>
{% endif %}
{% if cancel %}
- <button type="reset" class="btn">{{ _("Cancel") }}</button>
+ <button type="reset" class="btn btn-light">{{ _("Cancel") }}</button>
{% endif %}
</div>
{% endmacro %}
@@ -110,7 +110,7 @@
</fieldset>
<div class="actions">
{{ form.submit(class="btn btn-primary") }}
- {% if not edit %} {{ form.submit2(class="btn") }}{% endif %}
+ {% if not edit %} {{ form.submit2(class="btn btn-light") }}{% endif %}
</div>
{% endmacro %}
@@ -121,7 +121,9 @@
<div class="input-group">
<label class="sr-only" for="name">_("Type user name here")</label>
{{ form.name(placeholder=_("Type user name here"), class="form-control") }}
- <button class=" input-group-addon btn">{{ _("Add") }}</button>
+ <div class="input-group-append">
+ <button class="btn btn-outline-secondary input-group-addon" type="submit">{{ _("Add") }}</button>
+ </div>
</div>
{% endmacro %}