add missing templates

This commit is contained in:
Andrew Mleczko
2011-06-17 14:54:25 +02:00
parent 2a96f45f16
commit 5e096f7426
2 changed files with 38 additions and 0 deletions
@@ -0,0 +1,16 @@
<html metal:use-macro="main.macros['master']">
<body>
<div metal:fill-slot="main">
My Foo custom template
<div class="ui-pager" tal:content="structure pager" />
<table class="layout-grid" tal:content="structure fs.render()" />
<p>
<a class="ui-widget-header ui-widget-link ui-corner-all"
tal:attributes="href request.fa_url(request.model_name, 'new')">
<span class="ui-icon ui-icon-circle-plus"></span>
${F_('New')} ${model_name}
</a>
</p>
</div>
</body>
</html>
@@ -0,0 +1,22 @@
<html metal:use-macro="main.macros['master']">
<body>
<div metal:fill-slot="main">
Custom Foo view
<div tal:content="structure fs.render()" />
<div>
<p class="fa_field">
<a class="ui-widget-header ui-widget-link ui-widget-button ui-corner-all" href="#"
tal:attributes="href request.fa_url(request.model_name, request.model_id, 'edit')">
<input type="submit" value="${F_('Edit')}" />
</a>
<a class="ui-widget-header ui-widget-link ui-corner-all"
tal:attributes="href request.fa_url(request.model_name)">
<span class="ui-icon ui-icon-circle-arrow-w"></span>
${F_('Back')}
</a>
</p>
</div>
</div>
</body>
</html>