- <input type="radio" value="1" id="inscr_yes"
- {if $asso.inscriptible eq 1}checked="checked"{/if}
- name="inscriptible" />
- <label for="inscr_yes">oui</label>
- <input type="radio" value="0" id="inscr_no"
- {if $asso.inscriptible neq 1}checked="checked"{/if}
- name="inscriptible" />
- <label for="inscr_no">non</label>
+ <label><input type="radio" value="1" {if $inscriptible eq 1}checked="checked"{/if} name="inscriptible" />oui</label>
+ <label><input type="radio" value="0" {if $inscriptible neq 1}checked="checked"{/if} name="inscriptible" />non</label>
+ </td>
+ </tr>
+
+ <tr>
+ <td class="titre">
+ Notifier les demandes d'inscriptions :
+ </td>
+ <td>
+ <label><input type="radio" value="1" {if $notify_all}checked="checked"{/if} name="notify_all"
+ onclick="$('#notification').hide()"/>à tous les animateurs</label>
+ <label><input type="radio" value="0" {if !$notify_all}checked="checked"{/if} name="notify_all"
+ onclick="$('#notification').show()" />seulement à certains</label>
+ </td>
+ </tr>
+ <tr id="notification" {if $notify_all}style="display: none"{/if}>
+ <td></td>
+ <td>
+ {if $notified || $unnotified}
+ <ul>
+ {if $notified}
+ {foreach from=$notified item=user}
+ <li>
+ <label><input type="checkbox" name="to_notify_{$user->id()}" checked="checked" />{$user->fullName(true)}</label>
+ </li>
+ {/foreach}
+ {/if}
+ {if $unnotified}
+ {foreach from=$unnotified item=user}
+ <li>
+ <label><input type="checkbox" name="to_notify_{$user->id()}" />{$user->fullName(true)}</label>
+ </li>
+ {/foreach}
+ {/if}
+ </ul>
+ {/if}