X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Finclude%2Femails.combobox.tpl;h=74e84b3fcdeb3e8c4fdce89a8b25ec7e96f2bc46;hb=e999a40a812f8a2f350d69c5e1611669ff8937d1;hp=c5cce09347bc55e9bea537ffc296e304acee710c;hpb=32d8754be017db3aa656812fca2a92704ebe29ae;p=platal.git diff --git a/templates/include/emails.combobox.tpl b/templates/include/emails.combobox.tpl index c5cce09..74e84b3 100644 --- a/templates/include/emails.combobox.tpl +++ b/templates/include/emails.combobox.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2008 Polytechnique.org *} +{* Copyright (C) 2003-2011 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -20,82 +20,75 @@ {* *} {**************************************************************************} - - - {if $name eq "email_directory"}Email annuaire AX - {elseif $name eq "email"}Ajouter une adresse email{else} - Email professionnel{/if} +{assign var=new value="new"|cat:$i} +{assign var=combobox value="combobox"|cat:$i} + + + {if $name eq "email_directory"} + Email annuaire AX + {elseif $name eq "email"} + Ajouter une adresse email + {else} + Email professionnel + {/if} {if $name eq "email"}{/if} - + {foreach from=$email_lists item=email_list key=key} + {if $email_list|@count} + + {foreach from=$email_list item=email} + + {/foreach} + {/if} + {/foreach} - - + + {if $name neq "email"}{/if} + {else} + + {/if} + {if $name neq "email"} + +
{if $name eq "email_directory"} {icon name="flag_orange" title="Visible sur l'annuaire"} {elseif $name neq "email"} - - {include file="include/flags.radio.tpl" name="`$jobpref`[email_pub]" val=$job.mail_pub} - + {if t($mainField)} + {include file="include/flags.radio.tpl" name="`$jobpref`[`$prefix`email_pub]" val=$pub + mainField=$mainField mainId=$mainId subField=$subField subId=$subId} + {else} + {include file="include/flags.radio.tpl" name="`$jobpref`[`$prefix`email_pub]" val=$pub} + {/if} + {/if} +
{/if} -
-