$this->_failure = false;
$this->register_prefilter('at_to_globals');
+ $this->addJsLink('xorg.js');
}
// }}}
$this->register_prefilter('trimwhitespace');
$this->register_prefilter('form_force_encodings');
- $this->addJsLink('xorg.js');
$this->assign('xorg_errors', $this->_errors);
$this->assign('xorg_failure', $this->_failure);
$this->assign('globals', $globals);
$new = Env::v('modif') == 'new';
$user = get_user_details($login, S::v('uid'), $view);
$user['freetext'] = MiniWiki::WikiToHTML($user['freetext']);
+ $user['cv'] = MiniWiki::WikiToHTML($user['cv']);
$title = $user['prenom'] . ' ' . empty($user['nom_usage']) ? $user['nom'] : $user['nom_usage'];
$page->assign('xorg_title', $title);
<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>
+ <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">
- <textarea name="cv" rows="15" cols="33">{$cv}</textarea>
+ <script type="text/javascript" src="javascript/ajax.js"></script>
+ <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>
<span class="comm">Commentaire ? ICQ ? etc...</span>
</td>
<td class="dcold">
- <textarea name="freetext" rows="3" cols="29" >{$freetext}</textarea>
+ <script type="text/javascript" src="javascript/ajax.js"></script>
+ <div id="ft_preview" style="display: none"></div>
+ <textarea name="freetext" id="freetext" rows="3" cols="29" >{$freetext}</textarea>
<br/>
<span class="smaller">
<a href="wiki_help/notitle" class="popup3">
{icon name=information title="Syntaxe wiki"} Voir la syntaxe wiki autorisée pour le commentaire
</a>
- </span>
+ </span><br />
+ <input type="submit" name="preview" value="Aperçu" onclick="previewWiki('freetext', 'ft_preview', true, 'ft_preview'); return false;" />
</td>
</tr>
</table>
{if $x.gpxs_join}<div><em class="intitule">Groupe(s) X : </em><span>{$x.gpxs_join|smarty:nodefaults}</span></div>{/if}
{/if}
{if $x.web}<div><em class="intitule">Site Web : </em><a href="{$x.web}" class='popup'>{$x.web}</a></div>{/if}
- {if $x.freetext}<div><em class="intitule">Commentaires : </em><br /><span>{$x.freetext|nl2br|smarty:nodefaults}</span></div>{/if}
+ {if $x.freetext}<div><em class="intitule">Commentaires : </em><br /><span>{$x.freetext|smarty:nodefaults}</span></div>{/if}
</td>
</tr>
{if $x.adr}
<tr>
<td>
<h2>Curriculum Vitae :</h2>
- {$x.cv|nl2br}
+ {$x.cv|smarty:nodefaults}
</td>
</tr>
{/if}