r9744 - in helma-ng/trunk/apps/storage: . skins
[email protected] Wed, 13 May 2009 16:06:28 +0200 (CEST)
| Newsgroups | gmane.comp.java.helma.cvs |
|---|---|
| Message-ID | <20090513140628.DCBBF3D0D6@mia> |
Author: hannes
Date: 2009-05-13 16:06:28 +0200 (Wed, 13 May 2009)
New Revision: 9744
Modified:
helma-ng/trunk/apps/storage/config.js
helma-ng/trunk/apps/storage/skins/edit.html
helma-ng/trunk/apps/storage/skins/index.html
helma-ng/trunk/apps/storage/skins/remove.html
Log:
Add some text to storage main page
Details at http://dev.helma.org/trac/helma/changeset/9744
Modified: helma-ng/trunk/apps/storage/config.js
===================================================================
--- helma-ng/trunk/apps/storage/config.js 2009-05-13 13:33:44 UTC (rev 9743)
+++ helma-ng/trunk/apps/storage/config.js 2009-05-13 14:06:28 UTC (rev 9744)
@@ -6,5 +6,10 @@
'helma/logging'
];
+exports.macros = [
+ 'helma/skin/macros',
+ 'helma/skin/filters'
+];
+
exports.charset = 'UTF-8';
exports.contentType = 'text/html';
Modified: helma-ng/trunk/apps/storage/skins/edit.html
===================================================================
--- helma-ng/trunk/apps/storage/skins/edit.html 2009-05-13 13:33:44 UTC (rev 9743)
+++ helma-ng/trunk/apps/storage/skins/edit.html 2009-05-13 14:06:28 UTC (rev 9744)
@@ -1,7 +1,9 @@
<% extends 'skins/base.html' %>
-<% subskin 'content' %>
-<h3>Edit book</h3>
+<% subskin 'content' | markdown%>
+
+#### Edit book
+
<form action="<% action %>" method="post">
<div><label>Author: </label></div><div><input name="author" value="<% book.author.name | escapeHtml %>" size="30"/></div>
<div><label>Title: </label></div><div><input name="title" value="<% book.title | escapeHtml %>" size="30"/></div>
Modified: helma-ng/trunk/apps/storage/skins/index.html
===================================================================
--- helma-ng/trunk/apps/storage/skins/index.html 2009-05-13 13:33:44 UTC (rev 9743)
+++ helma-ng/trunk/apps/storage/skins/index.html 2009-05-13 14:06:28 UTC (rev 9744)
@@ -1,24 +1,37 @@
<% extends 'skins/base.html' %>
-<% subskin 'content' ----------------------------------- %>
-<% message | prefix "<p>" | suffix "</p>" %>
+<% subskin 'content' | markdown %>
+<% message %>
-<h3>Add a new book</h3>
+Helma NG provides a unified Storage API that provides mapping of native JavaScript objects
+to various database backends. Currently supported backends are:
+
+ * helma/storage/filestore - simple file store using JSON
+ * helma/storage/memstore - in memory database
+ * helma/storage/googlestore - Google App Engine datastore
+
+The Helma Storage API supports one-to-one, one-to-many and many-to-many relationships using
+plain JavaScript object references and arrays.
+
+### Add a new book
+
<form action="<% action %>" method="post">
- <div><label>Author: </label></div><div><input name="author" size="30"/></div>
- <div><label>Title: </label></div><div><input name="title" size="30"/></div>
- <p><input type="submit" name="save" value="Save"/></p>
+ <div><label>Author: </label></div><div><input name="author" size="30"/></div>
+ <div><label>Title: </label></div><div><input name="title" size="30"/></div>
+ <p><input type="submit" name="save" value="Save"/></p>
</form>
-<h3>Available Books</h3>
+### Available Books
+
<table cellspacing="0" cellpadding="3">
<% for book in <% books %> render book %>
</table>
<% subskin 'book' ----------------------------------- %>
+
<tr style="<% ifEven 'background-color: #eee;' %>">
- <td><% book.author.name %></td>
- <td><% book.title %></td>
- <td><a href="edit/<% book._id %>">[edit]</a></td>
- <td><a href="remove/<% book._id %>">[remove]</a></td>
+ <td><% book.author.name %></td>
+ <td><% book.title %></td>
+ <td><a href="edit/<% book._id %>">[edit]</a></td>
+ <td><a href="remove/<% book._id %>">[remove]</a></td>
</tr>
Modified: helma-ng/trunk/apps/storage/skins/remove.html
===================================================================
--- helma-ng/trunk/apps/storage/skins/remove.html 2009-05-13 13:33:44 UTC (rev 9743)
+++ helma-ng/trunk/apps/storage/skins/remove.html 2009-05-13 14:06:28 UTC (rev 9744)
@@ -1,7 +1,9 @@
<% extends 'skins/base.html' %>
-<% subskin 'content' %>
-<h3>Remove book</h3>
+<% subskin 'content' | markdown %>
+
+### Remove book
+
<form action="<% action %>" method="post">
<div>Do you really want to remove book "<% book.title %>"?</div>
<p><input type="submit" name="remove" value="Remove"/> <a href="../">Cancel</a></p>