Fix a typo in the reminder table.
authorVincent Zanotti <vincent.zanotti@m4x.org>
Mon, 1 Jun 2009 22:02:37 +0000 (00:02 +0200)
committerVincent Zanotti <vincent.zanotti@m4x.org>
Mon, 1 Jun 2009 22:08:10 +0000 (00:08 +0200)
Signed-off-by: Vincent Zanotti <vincent.zanotti@m4x.org>
templates/reminder/base.tpl [moved from templates/reminder/default.tpl with 77% similarity]
upgrade/0.10.1/00_inscription.sql

similarity index 77%
rename from templates/reminder/default.tpl
rename to templates/reminder/base.tpl
index f236497..7250525 100644 (file)
 {*                                                                        *}
 {**************************************************************************}
 
-<div class="warnings reminder">
-  <div style="float: right">
+<fieldset id="reminder" class="warnings">
+  <legend>{icon name=information} Information : Titre !
     <a href="" onclick="Ajax.update_html('reminder', '{$baseurl}/dismiss')">
-      {icon name=cross title="Cacher cet avertissement."}
+      {icon name=cross title="Cacher cette information."}
     </a>
-  </div>
-  {$text}<br />
+  </legend>
+
+  {$text}
   <div class="center">
-    [<a href="" onclick="Ajax.update_html('reminder', '{$baseurl}/yes')">{icon name=add} M'inscrire</a>]
-    -
-    [<a href="" onclick="Ajax.update_html('reminder', '{$baseurl}/no')">{icon name=delete} Ne pas m'inscrire</a>]
+    <a href="" onclick="Ajax.update_html('reminder', '{$baseurl}/yes'); return false" style="text-decoration: none">
+      {icon name=add} M'inscrire
+    </a> - 
+    <a href="" onclick="Ajax.update_html('reminder', '{$baseurl}/no'); return false" style="text-decoration: none">
+      {icon name=delete} Ne pas m'inscrire
+    </a>
   </div>
-</div>
+</fieldset>
 
 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}
index a675433..a23ef9e 100644 (file)
@@ -27,7 +27,7 @@ DROP TABLE IF EXISTS reminder;
 CREATE TABLE IF NOT EXISTS reminder (
   uid INT NOT NULL,
   type_id INT NOT NULL,
-  status ENUM('yes', 'no', 'dismissed') NOT NULL,
+  status ENUM('yes', 'no', 'dismiss') NOT NULL,
   remind_last TIMESTAMP NOT NULL,
   remind_next TIMESTAMP NULL,
   PRIMARY KEY(uid, type_id)