rework layout of asso.php a lot
authorPierre Habouzit (MadCoder <pierre.habouzit@m4x.org>
Mon, 25 Apr 2005 15:26:57 +0000 (15:26 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:28:45 +0000 (23:28 +0200)
git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-590

htdocs.net/css/xnet.css
templates/xnet/groupe/asso.tpl

index 7abac4b..55c9700 100644 (file)
@@ -164,6 +164,10 @@ table.links a {
     font-weight: bold;
 }
 
+table td.titre {
+    font-weight: bold;
+}
+
 /***************************************************************************
  * Special pages
  ***************************************************************************/
index 802bf92..53b72a4 100644 (file)
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************}
 
-<h1>{$asso.nom} : Accueil</h1>
-
 {if $asso.site}
-<a href="{$asso.site}"><img src='getlogo.php' alt="LOGO" /></a>
+<a href="{$asso.site}"><img src='getlogo.php' alt="LOGO" style="float: right;" /></a>
 {else}
-<img src='getlogo.php' alt="LOGO" />
+<img src='getlogo.php' alt="LOGO" style="float: right;" />
 {/if}
 
-{if $asso.site}
-<p class="descr">
-<strong>Site Web:</strong> <a href="{$asso.site}">{$asso.site}</a>
-</p>
-{/if}
+<h1>{$asso.nom} : Accueil</h1>
 
-{if $asso.resp && $asso.mail}
-<p class="descr">
-<strong>Contact:</strong> {mailto address=$asso.mail text=$asso.resp encode=javascript}
-</p>
-{elseif $asso.resp}
-<p class="descr">
-<strong>Contact:</strong> {$asso.resp}
-</p>
-{/if}
+<table cellpadding="0" cellspacing="0">
+  {if $asso.site}
+  <tr>
+    <td class="titre">
+      Site Web:
+    </td>
+    <td><a href="{$asso.site}">{$asso.site}</a></td>
+  </tr>
+  {/if}
 
-{if $asso.forum}
-<p class="descr">
-<strong>Forum:</strong>
-<a href="https://www.polytechnique.org/banana/thread.php?group={$asso.forum}">par le web</a> ou
-<a href="news://ssl.polytechnique.org/{$asso.forum}">par nntp</a>
-</p>
-{/if}
+  {if $asso.resp || $asso.mail}
+  <tr>
+    <td class="titre">
+      Contact:
+    </td>
+    <td>
+      {if $asso.mail}
+      {mailto address=$asso.mail text=$asso.resp encode=javascript}
+      {else}
+      {$asso.resp}
+      {/if}
+    </td>
+  </tr>
+  {/if}
 
-<strong>TODO: INSCRIPTION</strong>
+  {if $asso.forum}
+  <tr>
+    <td class="titre">
+      Forum:
+    </td>
+    <td>
+      <a href="https://www.polytechnique.org/banana/thread.php?group={$asso.forum}">par le web</a>
+      ou <a href="news://ssl.polytechnique.org/{$asso.forum}">par nntp</a>
+    </td>
+  </tr>
+  {/if}
 
-{if $asso.ax}
-<p class="descr">
-<strong>groupe agrée par l'AX</strong>
-</p>
-{/if}
+  <tr>
+    <td class="titre">
+      <strong>TODO: INSCRIPTION</strong>
+    </td>
+  </tr>
+
+  {if $asso.ax}
+  <tr>
+    <td class="titre center" colspan="2">
+      groupe agréé par l'AX
+    </td>
+  </tr>
+  {/if}
+</table>
+
+<br />
 
 <div>
   {$asso.descr|smarty:nodefaults}