[limb-svn] r6215 - in 3.x/trunk/limb/cms/template: . CRUD _cms
svn at limb-project.com
svn at limb-project.com
Mon Aug 6 12:15:56 MSD 2007
Author: RusMaxim
Date: 2007-08-06 12:15:56 +0400 (Mon, 06 Aug 2007)
New Revision: 6215
URL: http://fisheye.limb-project.com/changelog/limb/?cs=6215
Added:
3.x/trunk/limb/cms/template/CRUD/
3.x/trunk/limb/cms/template/CRUD/create.html
3.x/trunk/limb/cms/template/CRUD/display.html
3.x/trunk/limb/cms/template/CRUD/edit.html
3.x/trunk/limb/cms/template/CRUD/form_fields.html
3.x/trunk/limb/cms/template/_cms/admin_page.html
Log:
Templates for universal CRUD controller
Added: 3.x/trunk/limb/cms/template/CRUD/create.html
===================================================================
--- 3.x/trunk/limb/cms/template/CRUD/create.html (rev 0)
+++ 3.x/trunk/limb/cms/template/CRUD/create.html 2007-08-06 08:15:56 UTC (rev 6215)
@@ -0,0 +1,6 @@
+<core:set title='Create'/>
+<core:wrap file="_cms/admin_page.html" in="content">
+
+ <core:include file='CRUD/form_fields.html'/>
+
+</core:wrap>
Added: 3.x/trunk/limb/cms/template/CRUD/display.html
===================================================================
--- 3.x/trunk/limb/cms/template/CRUD/display.html (rev 0)
+++ 3.x/trunk/limb/cms/template/CRUD/display.html 2007-08-06 08:15:56 UTC (rev 6215)
@@ -0,0 +1,30 @@
+<core:set title='Elements'/>
+<core:wrap file="_cms/admin_page.html" in="content">
+
+ <route_url params='action:create'>Add new element</route_url>;
+
+ <list:list from='CRUD_list'>
+ <table class='listtable'>
+ <thead>
+ <tr>
+ <th>ID</th>
+ <th>Title</th>
+ <th>Actions</th>
+ </tr>
+ </thead>
+ <tbody>
+ <list:item>
+ <tr class='{$Parity} item'>
+ <td>{$id}</td>
+ <td>{$title}</td>
+ <td>
+ <route_url params='action:edit,id:{$id}'>Edit</route_url> |
+ <route_url params='action:delete,id:{$id}'>Delete</route_url>
+ </td>
+ </tr>
+ </list:item>
+ </tbody>
+ </table>
+ </list:list>
+
+</core:wrap>
\ No newline at end of file
Added: 3.x/trunk/limb/cms/template/CRUD/edit.html
===================================================================
--- 3.x/trunk/limb/cms/template/CRUD/edit.html (rev 0)
+++ 3.x/trunk/limb/cms/template/CRUD/edit.html 2007-08-06 08:15:56 UTC (rev 6215)
@@ -0,0 +1,6 @@
+<core:set title='Edit'/>
+<core:wrap file="_cms/admin_page.html" in="content">
+
+ <core:include file='CRUD/form_fields.html'/>
+
+</core:wrap>
\ No newline at end of file
Added: 3.x/trunk/limb/cms/template/CRUD/form_fields.html
===================================================================
--- 3.x/trunk/limb/cms/template/CRUD/form_fields.html (rev 0)
+++ 3.x/trunk/limb/cms/template/CRUD/form_fields.html 2007-08-06 08:15:56 UTC (rev 6215)
@@ -0,0 +1,10 @@
+<form id='CRUD_form' name='CRUD_form' method='post' runat='server' enctype="multipart/form-data">
+ <core:include file='form_errors.html'/>
+
+ <div class="field required">
+ <label for="title"> Title:</label>
+ <input name="title" type="text" title="title" class="input"/>
+ </div>
+
+ <input id='post' type='submit' value='Отправить' runat='client'/>
+</form>
\ No newline at end of file
Added: 3.x/trunk/limb/cms/template/_cms/admin_page.html
===================================================================
--- 3.x/trunk/limb/cms/template/_cms/admin_page.html (rev 0)
+++ 3.x/trunk/limb/cms/template/_cms/admin_page.html 2007-08-06 08:15:56 UTC (rev 6215)
@@ -0,0 +1,25 @@
+<html>
+
+ <head>
+ <base href="{$'LIMB_HTTP_BASE_PATH'|const}" />
+ <title>Admin page</title>
+ <meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
+
+ <link rel="stylesheet" type="text/css" href="/shared/cms/styles/yui/reset-min.css"/>
+ <link rel="stylesheet" type="text/css" href="/shared/cms/styles/yui/fonts-min.css"/>
+ </head>
+
+ <body>
+
+ <div id="header">
+ <h1>{$title}</h1>
+ <core:include file='flash_box.html' />
+ </div>
+
+ <div id="content">
+ <core:placeholder id='content'/>
+ </div>
+
+ </body>
+
+</html>
\ No newline at end of file
More information about the limb-svn
mailing list