]> git.decadent.org.uk Git - maypole.git/commitdiff
Changes Request.Query to Request.Params calls and cleaned up some html/css
authorSimon Flack <sf@flacks.net>
Tue, 23 Nov 2004 16:49:08 +0000 (16:49 +0000)
committerSimon Flack <sf@flacks.net>
Tue, 23 Nov 2004 16:49:08 +0000 (16:49 +0000)
git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@287 48953598-375a-da11-a14b-00016c27c3ee

templates/factory/list
templates/factory/pager
templates/maypole.css

index 03a712b661954af4c119aa109625a89b5927ffc9..5a4388e749a360cca3ae0f79f21bddec67cf52b5 100644 (file)
@@ -8,7 +8,7 @@
 [% END %]
 [% INCLUDE navbar %]
 <div class="list">
-    <table id="matrix" width="100%" >
+    <table id="matrix">
         <tr>
             [% FOR col = classmetadata.list_columns.list;
                 NEXT IF col == "id";
                 SET additional = additional _ "&page=" _ pager.current_page
                     IF pager;
                 SET additional = additional _ "&o2=desc" 
-                IF col == request.query.order and request.query.o2 != "desc";
+                IF col == request.params.order and request.params.o2 != "desc";
                 SET action = "list";
                 FOR name = classmetadata.columns.list;
                   IF request.query.$name;
                     SET additional =
                         additional  _ "&" _ name _ "=" _
-                        request.query.$name;
+                        request.params.$name;
                     SET action = "search";
                   END;
                 END;
                 link(classmetadata.table, action, additional,
                     classmetadata.colnames.$col);
-                IF col == request.query.order;
-                    IF request.query.o2 != "desc";
+                IF col == request.params.order;
+                    IF request.params.o2 != "desc";
                         "&darr;";
                     ELSE;
                         "&uarr;";
index bb78138691e6377de22150bc01273e2f31ce19b3..6aed9c21c9cf024d31b0d37bdb1bc678069f6d14 100644 (file)
@@ -26,14 +26,14 @@ IF pager AND pager.first_page != pager.last_page;
           ELSE;
             SET label = num;
             SET args = "?page=" _ num;
-           SET args = args _ "&order=" _ request.query.order
-             IF request.query.order;
+           SET args = args _ "&order=" _ request.params.order
+             IF request.params.order;
            SET args = args _ "&amp;o2=desc"
-             IF request.query.o2 == "desc";
+             IF request.params.o2 == "desc";
             SET action = "list";
             FOR col = classmetadata.columns.list;
-              IF request.query.$col;
-                SET args = args _ "&" _ col _ "=" _ request.query.$col;
+              IF request.params.$col;
+                SET args = args _ "&" _ col _ "=" _ request.params.$col;
                 SET action = "search";
               END;
             END;
index 84368e97d8d6b27038d740c3584c664bbec983e0..a458d8943dcc6c08d3f5a8a2e32ed5fc4de6bd8c 100644 (file)
@@ -158,6 +158,8 @@ table {
     background-color: #ffffff;
 }
 
+#matrix { width: 100%; }
+
 #matrix th {
     background-color: #b5cadc;
     border: 1px solid #778;
@@ -290,11 +292,6 @@ label .field {
 
 .error { color: #d00; }
 
-.actions {
-    white-space: nowrap;
-    background-color: #fff;
-}
-
 .action {
     border: 1px outset #7d95b5;
     style:block;
@@ -306,10 +303,33 @@ label .field {
     background-color: #7d95b5;
 }
 
-.field {
+.actionform {
     display: inline;
 }
 
+.actionbutton {
+    height: 16px;
+    width: 40px;
+    font-family: sans-serif;
+    font-size: 10px;
+    border: 1px outset;
+    background-color: #fff;
+    margin-bottom: 0px;
+}
+
+.actionbutton:hover {
+    color: #fff;
+    background-color: #7d95b5;
+}
+
+.actions {
+    white-space: nowrap;
+}
+
+.field {
+    display:inline;
+}
+
 .pager {
     font: 11px Arial, Helvetica, sans-serif;
     text-align: center;
@@ -348,3 +368,4 @@ label .field {
     border-color: #036;
     text-decoration: none;
 }
+