saveMessage();
return true;
});
+ $(document).ready(
+ function() {
+ // Remove empty options in select (they were added only for HTML
+ // compatibility).
+ $('#to_contacts option[value=""]').remove();
+ $('#cc_contacts option[value=""]').remove();
+ });
{/literal}
//]]>
</script>
<option value="{$contact->hrpid}">
{$contact->full_name}
</option>
+ {assign var="to_not_empty" value="true"}
{/if}
{/foreach}
- </select><br />
+ {if !$to_not_empty}
+ {* HTML compatibility *}
+ <option value=""> </option>
+ {/if}
+ </select>
+ {if !$to_not_empty}
+ {/if}
+ <br />
<select id="cc_contacts" name="cc_contacts[]" multiple="multiple" style="width: 100%; height: 5em">
{foreach key=key item=contact from=$contacts}
{if in_array($contact->hrpid,$smarty.request.cc_contacts)}
<option value="{$contact->hrpid}">
{$contact->full_name}
</option>
+ {assign var="cc_not_empty" value="true"}
{/if}
{/foreach}
+ {if !$cc_not_empty}
+ {* HTML compatibility *}
+ <option value=""> </option>
+ {/if}
</select>
</div>
<div style="width: 19%; text-align: center; height: 8em; float: right;">
<div style="height: 4em">
Destinataires<br />
- <a href="" onclick="addTo(); return false" style="text-decoration: none">>> >></a><br />
- <a href="" onclick="removeTo(); return false" style="text-decoration: none"><< <<</a>
+ <a href="emails/send/addTo" onclick="addTo(); return false" style="text-decoration: none">>> >></a><br />
+ <a href="emails/send/removeTo" onclick="removeTo(); return false" style="text-decoration: none"><< <<</a>
</div>
<div style="height: 4em">
En copie<br />
- <a href="" onclick="addCc(); return false" style="text-decoration: none">>> >></a><br />
- <a href="" onclick="removeCc(); return false" style="text-decoration: none"><< <<</a>
+ <a href="emails/send/addCc" onclick="addCc(); return false" style="text-decoration: none">>> >></a><br />
+ <a href="emails/send/removeCc" onclick="removeCc(); return false" style="text-decoration: none"><< <<</a>
</div>
</div>
<div style="float: right; width: 40%">
<tr class='promo'>
<td class='titre'>Promotion :</td>
<td><input type='text' name='promo' size='4' maxlength='4'
- {if $smarty.post.promo}value='{$smarty.post.promo}'{else}value='{$smarty.session.promo}'{/if} />
+ {if $smarty.post.promo}value='{$smarty.post.promo}'{else}value='{$smarty.session.promo}'{/if} /></td>
<td class='smaller' colspan='3'>Par exemple : 2004</td>
</tr>
<tr class='groupex'>
<input type='text' name='liste' size='15' value='{$smarty.post.liste}' />@<span class='promo'><span id='promotion'></span>.</span><span class='groupex'><span class='smaller'>diminutifdugroupe</span>.</span>polytechnique.org
</td>
</tr>
- <script type="text/javascript">//<![CDATA[
- {literal}
- $(function() {
- $(":radio[name=asso]").change(function() {
- var asso = $(":radio[name=asso]:checked").val();
- if ((asso == "binet") || (asso == "alias")) {
- $(".groupex").hide();
- $(".promo").show();
- } else if (asso == "groupex") {
- $(".promo").hide();
- $(".groupex").show();
- } else {
- $(".groupex").hide();
- $(".promo").hide();
- }
- }).change();
- });
- $(function() {
- $(":text[name=promo]").change(function () {
- var str = $(":text[name=promo]").val();
- $("span#promotion").text(str);
- }).change();
- });
- {/literal}
- // ]]></script>
<tr>
<td class='titre'>Sujet (bref) :</td>
<td colspan='4'>
</td>
</tr>
</table>
+ <script type="text/javascript">//<![CDATA[
+ {literal}
+ $(function() {
+ $(":radio[name=asso]").change(function() {
+ var asso = $(":radio[name=asso]:checked").val();
+ if ((asso == "binet") || (asso == "alias")) {
+ $(".groupex").hide();
+ $(".promo").show();
+ } else if (asso == "groupex") {
+ $(".promo").hide();
+ $(".groupex").show();
+ } else {
+ $(".groupex").hide();
+ $(".promo").hide();
+ }
+ }).change();
+ });
+ $(function() {
+ $(":text[name=promo]").change(function () {
+ var str = $(":text[name=promo]").val();
+ $("span#promotion").text(str);
+ }).change();
+ });
+ {/literal}
+ // ]]></script>
<p>
La création de la liste sera soumise à un contrôle manuel avant d'être validée. Ce contrôle a
pour but notamment de vérifier qu'il n'y aura pas ambiguité entre les membres de la liste et son
{else}
La redirection n'est pas utilisée…
{/if}
+</p>
<p>
Pour modifier ta redirection remplis le champ suivant et clique sur <strong>Valider</strong>.
{$reminder->text()}
</div>
<div class="center">
- <a href="" onclick="Ajax.update_html('reminder', '{$reminder->baseurl()}/yes'); return false" style="text-decoration: none">
+ <a href="reminde/yes" onclick="Ajax.update_html('reminder', '{$reminder->baseurl()}/yes'); return false" style="text-decoration: none">
{icon name=add} M'inscrire
</a> -
- <a href="" onclick="Ajax.update_html('reminder', '{$reminder->baseurl()}/no'); return false" style="text-decoration: none">
+ <a href="reminde/no" onclick="Ajax.update_html('reminder', '{$reminder->baseurl()}/no'); return false" style="text-decoration: none">
{icon name=delete} Ne pas m'inscrire
</a> -
- <a href="" onclick="Ajax.update_html('reminder', '{$reminder->baseurl()}/dismiss'); return false" style="text-decoration: none">
+ <a href="reminder/later" onclick="Ajax.update_html('reminder', '{$reminder->baseurl()}/dismiss'); return false" style="text-decoration: none">
{icon name=cross} Décider plus tard
</a>
{if $reminder->info()}
<a href="{$reminder->baseurl()}/yes" style="text-decoration: none">
{icon name=add} M'inscrire
</a> -
- <a href="" onclick="Ajax.update_html('reminder', '{$reminder->baseurl()}/no'); return false" style="text-decoration: none">
+ <a href="reminder/no" onclick="Ajax.update_html('reminder', '{$reminder->baseurl()}/no'); return false" style="text-decoration: none">
{icon name=delete} Ne pas m'inscrire
</a> -
- <a href="" onclick="Ajax.update_html('reminder', '{$reminder->baseurl()}/dismiss'); return false" style="text-decoration: none">
+ <a href="reminder/later" onclick="Ajax.update_html('reminder', '{$reminder->baseurl()}/dismiss'); return false" style="text-decoration: none">
{icon name=cross} Décider plus tard
</a> -
<a class="popup2" style="text-decoration: none" href="Xorg/GoogleApps">{icon name=information} En savoir plus</a>
<div class="center">
<input type="submit" value="M'inscrire aux listes" /> -
- <a href="" onclick="Ajax.update_html('reminder', '{$reminder->baseurl()}/no'); return false" style="text-decoration: none">
+ <a href="reminder/no" onclick="Ajax.update_html('reminder', '{$reminder->baseurl()}/no'); return false" style="text-decoration: none">
{icon name=delete} Ne pas m'inscrire
</a> -
- <a href="" onclick="Ajax.update_html('reminder', '{$reminder->baseurl()}/dismiss'); return false" style="text-decoration: none">
+ <a href="reminder/later" onclick="Ajax.update_html('reminder', '{$reminder->baseurl()}/dismiss'); return false" style="text-decoration: none">
{icon name=cross} Décider plus tard
</a>
</div>
{/if}
<div class="right">
- <a href="" onclick="Ajax.update_html('reminder', '{$reminder->baseurl()}/dismiss'); return false" style="text-decoration: none">
+ <a href="reminder/later" onclick="Ajax.update_html('reminder', '{$reminder->baseurl()}/dismiss'); return false" style="text-decoration: none">
{icon name=cross} Mettre à jour plus tard
</a>
</div>