added code eval form
authorDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 16 Jun 2010 13:19:11 +0000 (15:19 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 16 Jun 2010 13:19:11 +0000 (15:19 +0200)
public/mojo_facets.css
templates/data/items/table.html.ep

index b67da0f..64bc459 100644 (file)
@@ -160,6 +160,21 @@ form.action_filter {
        color: #444;
 }
 
+/* items/table */
+
+form#eval {
+       position: fixed;
+       bottom: 0;
+       left: 0;
+       width: 100%;
+       z-index: 10;
+       background: #eee;
+}
+
+form#eval textarea {
+       width: 100%;
+}
+
 /* items/list.html.ep */
 a.facet {
        font-family: monospace;
@@ -211,3 +226,5 @@ tr.hidden {
        margin: 1em;
        text-align: center;
 }
+
+
index b55d7c0..3a46164 100644 (file)
@@ -48,5 +48,12 @@ filter
 
 </table>
 
+<form id=eval>
+<textarea name=code>
+<%= param('code') %>
+</textarea>
+<input type=submit value="Execute">
+</form>
+
 <script type="text/javascript" src="/edit_table.js"></script>