LSmail : add possibilty to set some display options from JS
[ldapsaisie.git] / public_html / templates / default / LSmail.tpl
1 <dl class='LSform{if $LSmail_options.class} {$LSmail_options.class}{/if}'>
2   {if $LSmail_options.display_mail_field}
3   <dt class='LSform'>{$LSmail_mail_label}</dt>
4   <dd class='LSform'>
5     {if $LSmail_mails != ""}
6       {if $LSmail_mails|@count==1}
7       <input type='text' name='LSmail_mail' id='LSmail_mail' value='{$LSmail_mails[0]}'/>
8       {else}
9       <select name='LSmail_mail' id='LSmail_mail'>
10         {html_options values=$LSmail_mails output=$LSmail_mails}
11       </select>
12       {/if}
13     {else}
14       <input type='text' name='LSmail_mail' id='LSmail_mail'/>
15     {/if}
16   </dd>
17   {else}
18     <input type='hidden' name='LSmail_mail' id='LSmail_mail' value='{$LSmail_mails[0]}'/>
19   {/if}
20   {if $LSmail_options.display_subject_field}
21   <dt class='LSform'>{$LSmail_subject_label}</dt>
22   <dd class='LSform'>
23     <input type='text' name='LSmail_subject' id='LSmail_subject' value="{$LSmail_subject}"/>
24   </dd>
25   {else}
26     <input type='hidden' name='LSmail_subject' id='LSmail_subject' value="{$LSmail_subject}"/>
27   {/if}
28   <dt class='LSform'>{$LSmail_msg_label}</dt>
29   <dd class='LSform'>
30     <textarea name='LSmail_msg' id='LSmail_msg'>{$LSmail_msg}</textarea>
31   </dd>
32 </dl>