X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=bluechips%2Ftemplates%2Fbase.mako;h=38117c92a1c4526bebff6a4c48c2b6131661dce2;hb=f50debcd4e8b1d8dba486c0ae08a2aedae1f3a54;hp=23e32f1469ac123eaa7c0e4c5ab670bd3528b8b3;hpb=1e4dfac7ed0c6a2c8d23f82d2ca071a27401abcf;p=bluechips.git diff --git a/bluechips/templates/base.mako b/bluechips/templates/base.mako index 23e32f1..38117c9 100644 --- a/bluechips/templates/base.mako +++ b/bluechips/templates/base.mako @@ -5,8 +5,14 @@ ${self.title()} ${h.stylesheet_link('/css/main.css')} + ${h.stylesheet_link('/js/jquery.date_input.css')} + % if c.mobile_client: +
+ Use mobile interface +
+ % endif @@ -52,6 +64,9 @@
${next.body()}
+ ${h.javascript_link('//ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js')} + ${h.javascript_link('/js/jquery.date_input.js')} + ${h.javascript_link('/js/admin.js')} @@ -76,7 +91,9 @@ Spender Description Amount + My Share + % for e in es: <% @@ -90,7 +107,9 @@ ${formatUser(e.spender)} ${e.description} ${e.amount} + ${e.share(request.environ['user'])} ${h.link_to('Edit', h.url_for(controller='spend', action='edit', id=e.id))} + ${h.link_to('Delete', h.url_for(controller='spend', action='delete', id=e.id))} % endfor @@ -105,6 +124,7 @@ Description Amount + % for t in ts: <% @@ -120,6 +140,7 @@ ${t.description} ${t.amount} ${h.link_to('Edit', h.url_for(controller='transfer', action='edit', id=t.id))} + ${h.link_to('Delete', h.url_for(controller='transfer', action='delete', id=t.id))} % endfor