initial Pylons code (fixes #3)
git-svn-id: file:///var/www/wwwusers/usr01/svn/pyalchemybiz/trunk@5 389c73d4-bf09-4d3d-a15e-f94a37d0667a
This commit is contained in:
parent
38d4c952cf
commit
554276ed23
42 changed files with 930 additions and 47 deletions
20
pyalchemybiz/templates/base.mako
Normal file
20
pyalchemybiz/templates/base.mako
Normal file
|
@ -0,0 +1,20 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.1//EN"
|
||||
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>PyAlchemyBiz</title>
|
||||
${h.stylesheet_link_tag('/pyalchemybiz.css')}
|
||||
${h.javascript_include_tag(
|
||||
'/javascripts/pyalchemybiz.js', builtins=True)}
|
||||
</head>
|
||||
<body>
|
||||
<div class="content">
|
||||
${next.body()}\
|
||||
<p class="footer">
|
||||
Return to the
|
||||
${h.link_to('FrontPage',
|
||||
h.url_for(action="index"))}
|
||||
</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
9
pyalchemybiz/templates/customer.mako
Normal file
9
pyalchemybiz/templates/customer.mako
Normal file
|
@ -0,0 +1,9 @@
|
|||
<%inherit file="base.mako" />
|
||||
|
||||
<h1>Hallo</h1>
|
||||
|
||||
<ul id="customers">
|
||||
% for customer in c.customers:
|
||||
<li>${customer.firstname} ${customer.lastname} [${h.link_to('edit', h.url_for(id=customer.id, action="edit"))}]</li>
|
||||
% endfor
|
||||
</ul>
|
Loading…
Add table
Add a link
Reference in a new issue