aboutsummaryrefslogtreecommitdiff
path: root/budget/forms.py
diff options
context:
space:
mode:
authorA.Avenel <avenel.alexandre@gmail.com>2012-11-20 23:33:32 +0100
committerA.Avenel <avenel.alexandre@gmail.com>2012-11-25 13:53:30 +0100
commitbbd4a1a838bf7bf3c42617cbdcfd7189dec771a4 (patch)
treeb6667a020dfc7dc7a245a9161e84843cd68b8691 /budget/forms.py
parent0fcc2c72ec30b0ca10867f48a49c246f96387cc7 (diff)
downloadihatemoney-mirror-bbd4a1a838bf7bf3c42617cbdcfd7189dec771a4.zip
ihatemoney-mirror-bbd4a1a838bf7bf3c42617cbdcfd7189dec771a4.tar.gz
ihatemoney-mirror-bbd4a1a838bf7bf3c42617cbdcfd7189dec771a4.tar.bz2
Cosmetic changes for "add a bill" panel
Diffstat (limited to 'budget/forms.py')
-rw-r--r--budget/forms.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/budget/forms.py b/budget/forms.py
index 4a810de..5d7c18b 100644
--- a/budget/forms.py
+++ b/budget/forms.py
@@ -19,16 +19,14 @@ def select_multi_checkbox(field, ul_class='', **kwargs):
choice_id = u'toggleField'
js_function = u'toggle();'
options = dict(kwargs, id=choice_id, onclick=js_function)
- label = _("Select All/None")
- html.append(u'<li><label for="%s">%s<span>%s</span></label></li>'
- % (choice_id, '<input %s /> ' % html_params(**options), label))
+ html.append(u'<p><a id="selectall" onclick="selectall()">%s</a> | <a id="selectnone" onclick="selectnone()">%s</a></p>'% (_("Select all"), _("Select none")))
for value, label, checked in field.iter_choices():
choice_id = u'%s-%s' % (field_id, value)
options = dict(kwargs, name=field.name, value=value, id=choice_id)
if checked:
options['checked'] = 'checked'
- html.append(u'<li><label for="%s">%s<span>%s</span></label></li>'
+ html.append(u'<p><label for="%s">%s<span>%s</span></label></p>'
% (choice_id, '<input %s /> ' % html_params(**options), label))
html.append(u'</ul>')
return u''.join(html)