| 1 |
Index: tracforge/templates/admin_tracforge_configset.html |
|---|
| 2 |
=================================================================== |
|---|
| 3 |
--- tracforge/templates/admin_tracforge_configset.html (revision 0) |
|---|
| 4 |
+++ tracforge/templates/admin_tracforge_configset.html (revision 0) |
|---|
| 5 |
@@ -0,0 +1,88 @@ |
|---|
| 6 |
+<!--! |
|---|
| 7 |
+ admin_tracforge_prototypes |
|---|
| 8 |
+ Created by Pedro Algarvio on 2008-05-14. |
|---|
| 9 |
+ Copyright (c) 2008 Noah Kantrowitz, Pedro Algarvio. All rights reserved. |
|---|
| 10 |
+--> |
|---|
| 11 |
+<!DOCTYPE html |
|---|
| 12 |
+ PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
|---|
| 13 |
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
|---|
| 14 |
+<html xmlns="http://www.w3.org/1999/xhtml" |
|---|
| 15 |
+ xmlns:py="http://genshi.edgewall.org/" |
|---|
| 16 |
+ xmlns:xi="http://www.w3.org/2001/XInclude"> |
|---|
| 17 |
+ <xi:include href="admin.html" /> |
|---|
| 18 |
+ <head> |
|---|
| 19 |
+ <title>TracForge Config Sets</title> |
|---|
| 20 |
+ </head> |
|---|
| 21 |
+ <body> |
|---|
| 22 |
+ <h2>TracForge Config Sets</h2> |
|---|
| 23 |
+ <form class="addnew" method="post"> |
|---|
| 24 |
+ <fieldset> |
|---|
| 25 |
+ <legend>Add Entry</legend> |
|---|
| 26 |
+ <div class="field"> |
|---|
| 27 |
+ <label>Tag: <input type="text" name="tag" class="textwidget" /></label> |
|---|
| 28 |
+ </div> |
|---|
| 29 |
+ <div class="field"> |
|---|
| 30 |
+ <label>Section: <input type="text" name="section" class="textwidget" /></label> |
|---|
| 31 |
+ </div> |
|---|
| 32 |
+ <div class="field"> |
|---|
| 33 |
+ <label>Key: <input type="text" name="key" class="textwidget" /></label> |
|---|
| 34 |
+ </div> |
|---|
| 35 |
+ <div class="field"> |
|---|
| 36 |
+ <label>Value: <input type="text" name="value" class="textwidget" /></label> |
|---|
| 37 |
+ </div> |
|---|
| 38 |
+ <div class="field"> |
|---|
| 39 |
+ <table> |
|---|
| 40 |
+ <tr> |
|---|
| 41 |
+ <td>Action: </td> |
|---|
| 42 |
+ <td><label><input type="radio" name="action" value="add" checked="checked" />Add</label></td> |
|---|
| 43 |
+ </tr> |
|---|
| 44 |
+ <tr> |
|---|
| 45 |
+ <td> </td> |
|---|
| 46 |
+ <td><label><input type="radio" name="action" value="del" />Delete</label></td> |
|---|
| 47 |
+ </tr> |
|---|
| 48 |
+ </table> |
|---|
| 49 |
+ </div> |
|---|
| 50 |
+ <p class="help">Add a new configuration entry</p> |
|---|
| 51 |
+ <div class="buttons"> |
|---|
| 52 |
+ <input type="submit" name="add" value="Add" /> |
|---|
| 53 |
+ </div> |
|---|
| 54 |
+ </fieldset> |
|---|
| 55 |
+ </form> |
|---|
| 56 |
+ |
|---|
| 57 |
+ <form method="post"> |
|---|
| 58 |
+ <table class="listing"> |
|---|
| 59 |
+ <thead> |
|---|
| 60 |
+ <tr> |
|---|
| 61 |
+ <th class="sel"> </th> |
|---|
| 62 |
+ <th>Section</th> |
|---|
| 63 |
+ <th>Key</th> |
|---|
| 64 |
+ <th>Value</th> |
|---|
| 65 |
+ <th>Action</th> |
|---|
| 66 |
+ </tr> |
|---|
| 67 |
+ </thead> |
|---|
| 68 |
+ <tbody> |
|---|
| 69 |
+ <py:for each="tag in tracforge.tags"> |
|---|
| 70 |
+ <tr class="header"> |
|---|
| 71 |
+ <th colspan="5">$tag</th> |
|---|
| 72 |
+ </tr> |
|---|
| 73 |
+ <py:for each="section in tracforge.configs[tag]"> |
|---|
| 74 |
+ <py:for each="key in tracforge.configs[tag][section]"> |
|---|
| 75 |
+ <tr> |
|---|
| 76 |
+ <td> |
|---|
| 77 |
+ <input type="checkbox" name="rows" value="$tag/$section/$key"/> |
|---|
| 78 |
+ </td> |
|---|
| 79 |
+ <td>$section</td> |
|---|
| 80 |
+ <td>$key</td> |
|---|
| 81 |
+ <td py:for="arg in tracforge.configs[tag][section][key]">$arg</td> |
|---|
| 82 |
+ </tr> |
|---|
| 83 |
+ </py:for> |
|---|
| 84 |
+ </py:for> |
|---|
| 85 |
+ </py:for> |
|---|
| 86 |
+ </tbody> |
|---|
| 87 |
+ </table> |
|---|
| 88 |
+ <div class="buttons"> |
|---|
| 89 |
+ <input type="submit" name="delete" value="Delete selected" /> |
|---|
| 90 |
+ </div> |
|---|
| 91 |
+ </form> |
|---|
| 92 |
+</body> |
|---|
| 93 |
+</html> |
|---|
| 94 |
|
|---|
| 95 |
Property changes on: tracforge/templates/admin_tracforge_configset.html |
|---|
| 96 |
___________________________________________________________________ |
|---|
| 97 |
Name: svn:keywords |
|---|
| 98 |
+ Id |
|---|
| 99 |
Name: svn-myme-type |
|---|
| 100 |
+ text/html+genshi |
|---|
| 101 |
Name: svn:eol-style |
|---|
| 102 |
+ native |
|---|
| 103 |
|
|---|
| 104 |
Index: tracforge/templates/admin_tracforge_configset.cs |
|---|
| 105 |
=================================================================== |
|---|
| 106 |
--- tracforge/templates/admin_tracforge_configset.cs (revision 3681) |
|---|
| 107 |
+++ tracforge/templates/admin_tracforge_configset.cs (working copy) |
|---|
| 108 |
@@ -1,66 +0,0 @@ |
|---|
| 109 |
-<h2>TracForge Config Sets</h2> |
|---|
| 110 |
- |
|---|
| 111 |
-<form class="addnew" method="post"> |
|---|
| 112 |
- <fieldset> |
|---|
| 113 |
- <legend>Add Entry</legend> |
|---|
| 114 |
- <div class="field"> |
|---|
| 115 |
- <label>Tag: <input type="text" name="tag" class="textwidget" /></label> |
|---|
| 116 |
- </div> |
|---|
| 117 |
- <div class="field"> |
|---|
| 118 |
- <label>Section: <input type="text" name="section" class="textwidget" /></label> |
|---|
| 119 |
- </div> |
|---|
| 120 |
- <div class="field"> |
|---|
| 121 |
- <label>Key: <input type="text" name="key" class="textwidget" /></label> |
|---|
| 122 |
- </div> |
|---|
| 123 |
- <div class="field"> |
|---|
| 124 |
- <label>Value: <input type="text" name="value" class="textwidget" /></label> |
|---|
| 125 |
- </div> |
|---|
| 126 |
- <div class="field" |
|---|
| 127 |
- <table> |
|---|
| 128 |
- <tr> |
|---|
| 129 |
- <td>Action: </td> |
|---|
| 130 |
- <td><label><input type="radio" name="action" value="add" checked="checked" />Add</label></td> |
|---|
| 131 |
- </tr> |
|---|
| 132 |
- <tr> |
|---|
| 133 |
- <td> </td> |
|---|
| 134 |
- <td><label><input type="radio" name="action" value="del" />Delete</label></td> |
|---|
| 135 |
- </tr> |
|---|
| 136 |
- </table> |
|---|
| 137 |
- </div> |
|---|
| 138 |
- <p class="help">Add a new configuration entry</p> |
|---|
| 139 |
- <div class="buttons"> |
|---|
| 140 |
- <input type="submit" name="add" value="Add" /> |
|---|
| 141 |
- </div> |
|---|
| 142 |
- </fieldset> |
|---|
| 143 |
-</form> |
|---|
| 144 |
- |
|---|
| 145 |
-<form method="post"> |
|---|
| 146 |
-<table class="listing"> |
|---|
| 147 |
-<thead> |
|---|
| 148 |
-<tr> |
|---|
| 149 |
- <th class="sel"> </th> |
|---|
| 150 |
- <th>Section</th> |
|---|
| 151 |
- <th>Key</th> |
|---|
| 152 |
- <th>Value</th> |
|---|
| 153 |
- <th>Action</th> |
|---|
| 154 |
-</tr> |
|---|
| 155 |
-</thead> |
|---|
| 156 |
-<?cs each:tag = tracforge.tags ?> |
|---|
| 157 |
- <tr class="header"> |
|---|
| 158 |
- <th colspan="5"><?cs var:tag ?></th> |
|---|
| 159 |
- </tr> |
|---|
| 160 |
- <?cs each:section = tracforge.configs[tag] ?><?cs each:key = section ?> |
|---|
| 161 |
- <tr> |
|---|
| 162 |
- <td><input type="checkbox" name="rows" value="<?cs var:tag ?>/<?cs name:section ?>/<?cs name:key ?>" /></td> |
|---|
| 163 |
- <td><?cs name:section ?></td> |
|---|
| 164 |
- <td><?cs name:key ?></td> |
|---|
| 165 |
- <td><?cs var:key.0 ?></td> |
|---|
| 166 |
- <td><?cs var:key.1 ?></td> |
|---|
| 167 |
- </tr> |
|---|
| 168 |
- <?cs /each ?><?cs /each ?> |
|---|
| 169 |
-<?cs /each ?> |
|---|
| 170 |
-</table> |
|---|
| 171 |
-<div class="buttons"> |
|---|
| 172 |
- <input type="submit" name="delete" value="Delete selected" /> |
|---|
| 173 |
-</div> |
|---|
| 174 |
-</form> |
|---|