Jacou's comments
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 7 Sep 2007 20:15:44 +0000 (22:15 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 7 Sep 2007 20:15:44 +0000 (22:15 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
htdocs/css/keynote.css
modules/profile.php
modules/profile/jobs.inc.php [new file with mode: 0644]
modules/profile/page.inc.php
templates/profile/adresses.tpl
templates/profile/general.tpl
templates/profile/groups.tpl
templates/profile/jobs.job.tpl [moved from templates/profile/emploi.tpl with 76% similarity]
templates/profile/jobs.tpl [new file with mode: 0644]

index 8261843..084d2aa 100644 (file)
@@ -203,7 +203,7 @@ table.tinybicol td, table.bicol td {
 table.tinybicol td, table.bicol td, table.tinybicol tr, table.bicol tr { padding: 4px; }
 
 td.half { width: 50%; padding: 4px; }
-td.titre {
+.titre {
     color: #000000;
     background: inherit;
     font-weight: bold;
index f001599..2e4d29e 100644 (file)
@@ -335,7 +335,7 @@ class ProfileModule extends PLModule
         $wiz->addPage('ProfileAddresses', 'Adresses personnelles', 'adresses');
         $wiz->addPage('ProfileGroups', 'Groupes X - Binets', 'poly');
         $wiz->addPage('ProfileDecos', 'Décorations - Medailles', 'deco');
-        $wiz->addPage('ProfilePro', 'Informations professionnelles', 'emploi');
+        $wiz->addPage('ProfileJobs', 'Informations professionnelles', 'emploi');
         $wiz->addPage('ProfileSkills', 'Compétences diverses', 'skill');
         $wiz->addPage('ProfileMentor', 'Mentoring', 'mentor');
         $wiz->apply($page, 'profile/edit', $opened_tab);
diff --git a/modules/profile/jobs.inc.php b/modules/profile/jobs.inc.php
new file mode 100644 (file)
index 0000000..40628ee
--- /dev/null
@@ -0,0 +1,33 @@
+<?php
+/***************************************************************************
+ *  Copyright (C) 2003-2007 Polytechnique.org                              *
+ *  http://opensource.polytechnique.org/                                   *
+ *                                                                         *
+ *  This program is free software; you can redistribute it and/or modify   *
+ *  it under the terms of the GNU General Public License as published by   *
+ *  the Free Software Foundation; either version 2 of the License, or      *
+ *  (at your option) any later version.                                    *
+ *                                                                         *
+ *  This program is distributed in the hope that it will be useful,        *
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of         *
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
+ *  GNU General Public License for more details.                           *
+ *                                                                         *
+ *  You should have received a copy of the GNU General Public License      *
+ *  along with this program; if not, write to the Free Software            *
+ *  Foundation, Inc.,                                                      *
+ *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
+ ***************************************************************************/
+
+class ProfileJobs extends ProfilePage
+{
+    protected $pg_template = 'profile/jobs.tpl';
+
+    public function __construct(PlWizard &$wiz)
+    {
+        parent::__construct($wiz);
+    }
+}
+
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
+?>
index 7d2dc0d..6decf81 100644 (file)
@@ -227,6 +227,7 @@ require_once dirname(__FILE__) . '/general.inc.php';
 require_once dirname(__FILE__) . '/addresses.inc.php';
 require_once dirname(__FILE__) . '/groups.inc.php';
 require_once dirname(__FILE__) . '/decos.inc.php';
+require_once dirname(__FILE__) . '/jobs.inc.php';
 
 // vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
 ?>
index 8ca6568..5439dc0 100644 (file)
@@ -139,7 +139,7 @@ function validAddress(id, pref)
 </div>
 {/foreach}
 {if $addresses|@count eq 0}
-<div id="addresses_0">
+<div id="addresses_0_cont">
 {include file="profile/adresses.address.tpl" i=0 adr=0}
 </div>
 {/if}
index fd45b22..6c304d2 100644 (file)
               de changer ta photo, celle-ci correspond à ton ancien
               profil car la nouvelle n'a pas encore été validée par un administrateur du site !
               <a href="profile/{$smarty.session.forlife}?modif=new" class="popup2">Ta fiche avec la nouvelle photo</a>)
-              {/if}.
+              {/if} :
             </td>
             <td class="dcolg">
               <img src="photo/{$smarty.session.forlife}" alt=" [ PHOTO ] " />
     </tr>
     <tr>
       <td class="dcolg">
-        <span class="titre">Complément libre</span>
-        <span class="comm">Commentaire ? ICQ ? etc...</span>
-      </td>
-      <td class="dcold">
-        <div id="ft_preview" style="display: none"></div>
-        <textarea name="freetext" {if $errors.freetext}class="error"{/if} id="freetext" rows="3" cols="29" >{$freetext}</textarea>
-        <br/>
-        <span class="smaller">
+        <div>
+          <span class="titre">Complément libre</span>
+          <span class="comm">Commentaire ? ICQ ? etc...</span>
+        </div>
+        <div class="smaller" style="margin-top: 30px">
           <a href="wiki_help/notitle" class="popup3">
             {icon name=information title="Syntaxe wiki"} Voir la syntaxe wiki autorisée pour le commentaire
           </a>
-        </span><br />
-        <input type="submit" name="preview" value="Aperçu" onclick="previewWiki('freetext', 'ft_preview', true, 'ft_preview'); return false;" />
+          <div class="center">
+            <input type="submit" name="preview" value="Aperçu" 
+                    onclick="previewWiki('freetext', 'ft_preview', true, 'ft_preview'); return false;" />
+          </div>
+        </div>
+      </td>
+      <td class="dcold">
+        <div id="ft_preview" style="display: none"></div>
+        <textarea name="freetext" {if $errors.freetext}class="error"{/if}
+                  id="freetext" rows="8" cols="35" >{$freetext}</textarea>
       </td>
     </tr>
   </table>
index db3563f..cf24edd 100644 (file)
@@ -95,7 +95,7 @@
     </td>
   </tr>
   <tr class="top">
-    <td class="titre">
+    <td class="titre" style="width: 30%">
       <script type="text/javascript">printTitle("Section")</script>
     </td>
     <td>
similarity index 76%
rename from templates/profile/emploi.tpl
rename to templates/profile/jobs.job.tpl
index 2826683..908edb8 100644 (file)
 {*                                                                        *}
 {**************************************************************************}
 
-
-{section name=adresses_pro loop=2}
-{assign var='i' value=$smarty.section.adresses_pro.index} 
-
-<table class="bicol" cellspacing="0" cellpadding="0" summary="Profil: Informations professionnelles - Entreprise n°{$i+1}">
+<table class="bicol" cellspacing="0" cellpadding="0" summary="Entreprise n°{$eid+1}">
   <tr>
     <th colspan="2">
-      Informations professionnelles - Entreprise n°{$i+1}
+      Entreprise n°{$eid+1}
     </th>
   </tr>
   {include file=include/flags.radio.tpl name="pubpro[$i]" val=$pubpro.$i}
   </tr>
 </table>
 
-{/section}
-
-<table class="bicol" cellspacing="0" cellpadding="0" summary="Profil: Informations professionnelles - CV">
-  <tr>
-    <th colspan="2">
-      Informations professionnelles - CV
-    </th>
-  </tr>
-  <tr>
-    <td colspan="2" class="flags">
-      <table class="flags" summary="Flags" cellpadding="0" cellspacing="0">
-        <tr>
-          <td class="rouge">
-            <input type="checkbox" name="accesCV" checked="checked" disabled="disabled" />
-          </td>
-          <td class="texte">
-            privé
-          </td>
-        </tr>
-      </table>
-    </td>
-  </tr>
-  <tr>
-    <td class="dcolg">
-      <span class="titre">Curriculum vitae</span><br />
-      <span class="comm">Le CV n'est <strong>jamais</strong> public.<br />
-        <a href="Xorg/FAQ?display=light#cv" class="popup_800x480">Comment remplir mon CV ?</a></span><br />
-      <span class="comm"><a href="wiki_help" class="popup3">{icon name=information title="Syntaxe wiki"} Voir la syntaxe wiki</a></span>
-    </td>
-    <td class="dcold">
-      <div id="cv_preview" style="display: none"></div>
-      <textarea name="cv" id="cv" rows="15" cols="40">{$cv}</textarea><br />
-      <input type="submit" name="preview" value="Aperçu" onclick="previewWiki('cv',  'cv_preview', true, 'cv_preview'); return false;" />
-    </td>
-  </tr>
-</table>
-
 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}
diff --git a/templates/profile/jobs.tpl b/templates/profile/jobs.tpl
new file mode 100644 (file)
index 0000000..69022ff
--- /dev/null
@@ -0,0 +1,76 @@
+{**************************************************************************}
+{*                                                                        *}
+{*  Copyright (C) 2003-2007 Polytechnique.org                             *}
+{*  http://opensource.polytechnique.org/                                  *}
+{*                                                                        *}
+{*  This program is free software; you can redistribute it and/or modify  *}
+{*  it under the terms of the GNU General Public License as published by  *}
+{*  the Free Software Foundation; either version 2 of the License, or     *}
+{*  (at your option) any later version.                                   *}
+{*                                                                        *}
+{*  This program is distributed in the hope that it will be useful,       *}
+{*  but WITHOUT ANY WARRANTY; without even the implied warranty of        *}
+{*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *}
+{*  GNU General Public License for more details.                          *}
+{*                                                                        *}
+{*  You should have received a copy of the GNU General Public License     *}
+{*  along with this program; if not, write to the Free Software           *}
+{*  Foundation, Inc.,                                                     *}
+{*  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA               *}
+{*                                                                        *}
+{**************************************************************************}
+
+
+{foreach from=$entreprises item=job key=i}
+<div id="{"job_`$i`_cont"}">
+{include file="profile/jobs.job.tpl" i=$i job=$job}
+</div>
+{/foreach}
+{if $jobs|@count eq 0}
+<div id="job_0_cont">
+{include file="profile/jobs.job.tpl" i=0 job=0}
+</div>
+{/if}
+
+<div id="add_job" class="center">
+  <a href="javascript:addJob()">
+    {icon name=add title="Ajouter un emploi"} Ajouter un emploi
+  </a>
+</div>
+
+<table class="bicol" summary="CV">
+  <tr>
+    <th>
+      Informations professionnelles - CV
+    </th>
+  </tr>
+  <tr>
+    <td>
+      <div style="float: left; width: 25%">
+        <div class="titre">Curriculum vitae&nbsp;:</div>
+        <div class="flags">
+          <span class="rouge"><input type="checkbox" name="accesCV" checked="checked" disabled="disabled" /></span>
+          <span class="texte">privé</span>
+        </div>
+        <div class="smaller" style="margin-top: 30px">
+          <a href="Xorg/FAQ?display=light#cv" class="popup_800x480">
+            {icon name="lightbulb" title="Astuce"}Comment remplir mon CV&nbsp;?
+          </a><br />
+          <a href="wiki_help" class="popup3">
+            {icon name=information title="Syntaxe wiki"} Voir la syntaxe wiki
+          </a>
+          <div class="center">
+            <input type="submit" name="preview" value="Aperçu du CV"
+                   onclick="previewWiki('cv',  'cv_preview', true, 'cv_preview'); return false;" />
+          </div>
+        </div>
+      </div>
+      <div style="float: right">
+        <div id="cv_preview" style="display: none"></div>
+        <textarea name="cv" id="cv" rows="15" cols="55">{$cv}</textarea>
+      </div>
+    </td>
+  </tr>
+</table>
+
+{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}