Fix minor ergonomy issues concerning the groups and the medals pages
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 6 Sep 2007 20:10:33 +0000 (22:10 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 6 Sep 2007 20:10:33 +0000 (22:10 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
templates/profile/deco.tpl
templates/profile/groups.tpl

index 87ca768..79d0433 100644 (file)
@@ -80,6 +80,7 @@ function add()
 function remove(id)
 {
   $("#medal_" + id).remove();
+  update();
 }
 
 {/literal}
index cf31e16..db3563f 100644 (file)
@@ -53,6 +53,7 @@
   function remove(cat, id)
   {
     $('#' + cat + '_' + id).remove();
+    update(cat);
   }
 
   function add(cat)
              + '    <input type="hidden" name="' + cat + '[' + id + ']" value="' + text + '" />'
              + '  </td>'
              + '  <td>'
-             + text
+             + '    <div style="float: left; width: 70%">'
+             +        text
+             + '    </div>'
              + '    <a href="javascript:remove(\'' + cat + '\', ' + id + ')">'
              + '      <img src="images/icons/cross.gif" alt="cross" title="Supprimer ce groupe" />'
              + '    </a>'
              + '  </td>'
              + '</tr>';
     $('#' + cat).after(html);
+    update(cat);
   }
 
   //]]>
       <input type="hidden" name="binets[{$bid}]" value="{$text}" />
     </td>
     <td>
-      {$text}
+      <div style="float: left; width: 70%">
+        {$text}
+      </div>
       <a href="javascript:remove('binets', {$bid})">{icon name="cross" title="Supprimer ce binet"}</a>
     </td>
   </tr>
       <input type="hidden" name="groupesx[{$bid}]" value="{$text}" />
     </td>
     <td>
-      {$text}
+      <div style="float: left; width: 70%">
+        {$text}
+      </div>
       <a href="javascript:remove('groupesx', {$bid})">{icon name="cross" title="Supprimer ce groupe X"}</a>
     </td>
   </tr>