X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=bluechips%2Ftemplates%2Fspend%2Findex.mako;h=d4064cb58e914a3808e6daf92aa5d33de85cf32c;hb=9da57a31985a14a068b7542ada896ede0ff53ab5;hp=1b0c6e3c493279f5f25c78ea4b96fcd7a8804582;hpb=0b9f273d12cbbe8790c4a9dec14d282a461e54be;p=bluechips.git diff --git a/bluechips/templates/spend/index.mako b/bluechips/templates/spend/index.mako index 1b0c6e3..d4064cb 100644 --- a/bluechips/templates/spend/index.mako +++ b/bluechips/templates/spend/index.mako @@ -9,7 +9,7 @@ - ${h.currency('amount', c.expenditure.amount, size=8)} + ${h.currency('amount', c.expenditure.amount, size=8, onkeyup="calcSplit();")} @@ -19,6 +19,10 @@ ${h.text('description', c.expenditure.description, size=64)} + + + ${h.text('tags', c.tags, size=64)} +

Change how an expenditure is split up. Enter a percentage, or something like a percentage, for each user. They don't have to add to 100.

@@ -32,15 +36,23 @@ - ${h.text('shares-%d.amount' % ii, percent)} + ${h.text('shares-%d.amount' % ii, percent, class_="share-text", onkeyup="calcSplit();")} ${h.hidden('shares-%d.user_id' % ii, user.id)} + + 0.00 + % endfor + ${h.submit(None, 'Submit', class_="submitbutton")} + %if c.expenditure.id: + + %endif +${h.javascript_link('%s/js/calculator.js' % request.script_name)}