Add trigWarning() too. Update xnet CSS.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 8 Jun 2008 15:33:38 +0000 (17:33 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 8 Jun 2008 15:33:38 +0000 (17:33 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
classes/platalpage.php
htdocs/css/default.css
htdocs/css/keynote.css
htdocs/css/openweb.css
htdocs/css/xnet.css

index bfb588e..59c3c20 100644 (file)
@@ -207,6 +207,11 @@ abstract class PlatalPage extends Smarty
         $this->trig($msg, 'errors');
     }
 
+    public function trigWarning($msg)
+    {
+        $this->trig($msg, 'warnings');
+    }
+
     public function trigSuccess($msg)
     {
         $this->trig($msg, 'success');
index 04e69ce..fa87cf7 100644 (file)
@@ -80,6 +80,13 @@ p {
     width: 98%;
 }
 
+.warnings {
+    margin-top: 10px;
+    border: 1px solid #ed0;
+    background-color: #ffc;
+    width: 98%;
+}
+
 .success {
     margin-top: 10px;
     border: 1px solid #0d2;
index 4f4c040..3304c51 100644 (file)
@@ -95,6 +95,13 @@ p.smaller {
     background-color: #200;
 }
 
+.warnings {
+    width: 98%;
+    border: 1px solid #ff0;
+    margin-top: 10px;
+    background-color: #220;
+}
+
 .success {
     width: 98%;
     border: 1px solid #0d3;
index d45611e..08f1a5c 100644 (file)
@@ -83,6 +83,13 @@ p {
     width: 98%;
 }
 
+.warnings {
+    margin-top: 10px;
+    border: 1px solid #ed0;
+    background-color: #ffc;
+    width: 98%;
+}
+
 .success {
     margin-top: 10px;
     border: 1px solid #0d2;
index 4eb241d..47029e8 100644 (file)
@@ -188,6 +188,27 @@ td#menu {
  * CLASSES
  ***************************************************************************/
 
+.errors {
+    margin-top: 10px;
+    border: 1px solid #f00;
+    background-color: #faa;
+    width: 98%;
+}
+
+.warnings {
+    margin-top: 10px;
+    border: 1px solid #dc0;
+    background-color: #ee7;
+    width: 98%;
+}
+
+.success {
+    margin-top: 10px;
+    border: 1px solid #0d2;
+    background-color: #7fa;
+    width: 98%;
+}
+
 .erreur { color: red !important; }
 .error  { color: red !important; }
 .center { text-align: center; }