New templates for floor editing, will replace floors.c
authorich <the_mgt@uncensored.citadel.org>
Wed, 18 Aug 2010 14:38:05 +0000 (14:38 +0000)
committerich <the_mgt@uncensored.citadel.org>
Wed, 18 Aug 2010 14:38:05 +0000 (14:38 +0000)
Additional defines for conds and variables are needed

webcit/static/t/floors.html [new file with mode: 0644]
webcit/static/t/floors_edit_one.html [new file with mode: 0644]

diff --git a/webcit/static/t/floors.html b/webcit/static/t/floors.html
new file mode 100644 (file)
index 0000000..1801283
--- /dev/null
@@ -0,0 +1,30 @@
+<?=("important_msg")>
+
+<div id="banner">
+        <h1><?_("Add/change/delete floors")></h1>
+</div>
+
+<div class="fix_scrollbar_bug">
+       <table border="1" width="100%" bgcolor="#fff">
+               <tr>
+                       <th><?_("Floor number")></th>
+                       <th><?_("Floor name")></th>
+                       <th><?_("Number of rooms")></th>
+                       <th><?_("Floor CSS")></th>
+               </tr>
+
+               <?ITERATE("LKRA", ="floors_edit_one")>
+
+               <tr>
+                       <td>&nbsp;</td>
+                       <td>
+                               <form method="post" action="create_floor">
+                                       <input type="hidden" name="nonce" value="<?NONCE>">
+                                       <input type="text" name="floorname" maxlength="250">
+                                       <input type="submit" name="sc" value="<?_("Create new floor")>">
+                               </form>
+                       </td>
+                       <td>&nbsp;</td>
+               </tr>
+       </table>
+</div>
diff --git a/webcit/static/t/floors_edit_one.html b/webcit/static/t/floors_edit_one.html
new file mode 100644 (file)
index 0000000..b61ba09
--- /dev/null
@@ -0,0 +1,34 @@
+<!--("Subtemplate to edit a single floor, called as ITERATION by floors.html")-->
+               <tr>
+                       <td>
+                               <table border="0">
+                                       <tr>
+                                               <td><?FLOORNUM>
+                                       <?!("COND:FLOOR:RECFOUNT",20,0)>
+                                               </td>
+                                               <td>
+                                                       <a href="delete_floor?floornum=<?FLOORNUM>" style="font-size: -1"><?_("(delete floor)")></a><br>
+                                       <??("X",20)>
+                                                       <a href="display_editfloorpic?which_floor=<?FLOORNUM>" style="font-size: -1"><?_("(edit graphic)")></a>
+                                               </td>
+                                       </tr>
+                               </table>
+                       </td>
+                       <td>
+                               <form method="post" action="rename_floor">
+                                       <input type="hidden" name="floornum" value="<?FLOORNUM>">
+                                       <input type="text" name="floorname" value="<?FLOORNAME>" maxlength="250">
+                                       <input type="hidden" name="nonce" value="<?NONCE>">
+                                       <input type="submit" name="sc" value="<?_("Change name")>">
+                               </form>
+                       </td>
+                       <td><?REFCOUNT></td>
+                       <td>
+                               <form method="post" action="set_floor_css">
+                                       <input type="hidden" name="floornum" value="<?FLOORNUM>">
+                                       <input type="text" name="floorcss" value="<?FLOORNAME>" maxlength="250">
+                                       <input type="hidden" name="nonce" value="<?NONCE>">
+                                       <input type="submit" name="sc" value="<?_("Change CSS")>">
+                               </form>
+                       </td>
+               </tr>