mirror of
https://github.com/wassname/pyramid_formalchemy.git
synced 2026-08-18 12:20:30 +08:00
add missing templates
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user