<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>${self.title()}</title>
- ${h.stylesheet_link('/css/main.css')}
- <link media="only screen and (max-device-width: 480px)" href="/css/mobile.css" type="text/css" rel="stylesheet" />
+ ${h.stylesheet_link('%s/css/main.css' % request.script_name)}
+ <link media="only screen and (max-device-width: 480px)" href="${request.script_name}/css/mobile.css" type="text/css" rel="stylesheet" />
<meta name="viewport" content="initial-scale = 1.0, maximum-scale = 1.0, user-scalable=no" />
- <link rel="apple-touch-icon" href="/icons/apple-touch.png" />
- <link rel="apple-touch-startup-image" href="/icons/apple-touch-startup.png" />
+ <link rel="apple-touch-icon" href="${request.script_name}/icons/apple-touch.png" />
+ <link rel="apple-touch-startup-image" href="${request.script_name}/icons/apple-touch-startup.png" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
+ ${h.javascript_link('//ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js')}
+ ${h.javascript_link('%s/js/mobile.js' % request.script_name)}
</head>
<body>
% for message in h.flash.pop_messages():
<div id="non-mobile">
<a href="${h.url_for(request.url, use_non_mobile='yes')}">Use non mobile interface</a>
</div>
- ${h.javascript_link('//ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js')}
- ${h.javascript_link('/js/mobile.js')}
</body>
</html>
else:
klass = 'unselected'
%>
- <a id="${name}" class="${klass}" href="${h.url_for(controller=name, action='index', id=None)}">
- <img src="/icons/${name}.png" alt="">
+ <a id="${name}" class="${klass}" href="${h.url_for(controller=name, action='index')}">
+ <img src="${request.script_name}/icons/${name}.png" alt="">
<span>${name.capitalize()}</span>
</a>
% endfor
<th><label for="description">Description</label></th>
<td>${h.text('description', h.grab(c.expenditure, 'description'))}</td>
</tr>
+ <tr>
+ <th><label for="tags">Tags</label></th>
+ <td>${h.text('tags', h.grab(c, 'tags'))}</td>
+ </tr>
</table>
<p>Change how an expenditure is split up.</p>
% for ii, user_row in enumerate(c.users):
<%
user_id, user = user_row
- if user.resident:
- percent = 1
- else:
- percent = 0
%>
<tr>
<th><label for="shares-${ii}amount">${user.name}</label></th>
<td>
- ${h.text('shares-%d.amount' % ii, percent)}
+ ${h.text('shares-%d.amount' % ii, 1 if user.resident else None)}
${h.hidden('shares-%d.user_id' % ii, user.id)}
</td>
</tr>