Changeset 1229


Ignore:
Timestamp:
04/17/13 18:24:04 (11 years ago)
Author:
nanardon
Message:

improve mailer design

Location:
trunk/LATMOS-Accounts-Web/root/html
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts-Web/root/html/ajax/services/mailing/attachments.tt

    r1158 r1229  
    11[% FOREACH a = c.session.mailing.attachments %] 
    22[% IF loop.first %] 
     3<fieldset> 
     4<legend>Fichiers attachés:</legend> 
    35<table> 
    46[% END %] 
    57<tr> 
    6 <td>[% a.filename | html %]</td> 
    7 <td>[% a.as_string.length %]</td> 
     8<td><span style="font-family:monospace;">[% a.filename | html %]</span></td> 
     9<td><span style="font-size: 0.8em">([% a.as_string.length %] octets)</span></td> 
    810<td> 
    9 [% c.prototype.link_to_remote('<img src="' _ c.uri_for('/static/icons', 
     11[% c.prototype.link_to_remote('<img src="' _ c.uri_for('/static/images', 
    1012'user-trash.png') _ '" height="24" width="24" alt="" title="Retirer ' _ disp _ 
    1113'">', { 
     
    1820[% IF loop.last %] 
    1921</table> 
     22</fieldset> 
    2023[% END %] 
    2124[% END %] 
  • trunk/LATMOS-Accounts-Web/root/html/ajax/services/mailing/users_list.tt

    r1162 r1229  
    1212    <td><input type=checkbox name="user" checked=1 value="[% u | html %]"> 
    1313    [% c.prototype.link_to_remote( 
    14         '<img src="' _ c.uri_for('/static', 'icons', 'gtk-add.png') _ '" height="24" width="24" alt="" title="Ajouter ' _ disp _ '">', 
     14        '<img src="' _ c.uri_for('/static', 'images', 'gtk-add.png') _ '" height="24" width="24" alt="" title="Ajouter ' _ disp _ '">', 
    1515        { 
    1616        update => 'destlist', 
  • trunk/LATMOS-Accounts-Web/root/html/services/mailing/index.tt

    r1158 r1229  
     1<h2>Envoyer un mail:</h2> 
     2 
    13<form action="[% c.uri_for() %]" method="POST"> 
    2 <input type="submit" name="sto" value="Selectionner les destinaires ..."> 
    3 [% IF c.session.to.keys.size > 0 %][% c.session.to.keys.size %] destinataires[% END %] 
    4 <br> 
    5 <label for="subject">Sujet:</label> 
    6 <input type="text" name="subject" value="[% c.session.mailing.subject | html %]"> 
     4[% IF c.session.to.keys.size || 0 > 0 %] 
     5<input type="submit" name="send" value="Envoyer"> 
     6[% END %] 
    77<br> 
    88 
     9<fieldset> 
     10<legend>En tête:</legend> 
     11<p><label>De:</label> 
     12[% c.model('Accounts').base.get_object( 
     13        'user', c.user.username 
     14    ).get_attributes('mail') | html %] 
     15</p> 
     16<p><label for="subject">Sujet:</label> 
     17<input type="text" name="subject" value="[% c.session.mailing.subject | html %]"> 
     18</p> 
     19<p> 
     20[% IF c.session.to.keys.size || 0 > 0 %][% c.session.to.keys.size %] destinataires 
     21[% ELSE %] 
     22(pas de destinataire selectionné) 
     23[% END %] 
     24<input type="submit" name="sto" value=" 
     25[%- IF c.session.to.keys.size || 0 > 0 -%] 
     26Modifier la liste... 
     27[%- ELSE -%] 
     28Selectionner les destinaires ... 
     29[%- END -%]"> 
     30</p> 
     31</fieldset> 
     32 
     33 
     34<fieldset> 
     35<legend>Corps:</legend> 
     36<label for="body">Message:</label><br> 
    937<textarea name="body" rows="6" cols="60"> 
    1038[%- c.session.mailing.body | html -%] 
    11 </textarea><br> 
    12 [% IF c.session.to.keys.size > 0 %] 
    13 <input type="submit" name="send" value="Envoyer"> 
    14 [% END %] 
     39</textarea> 
     40</fieldset> 
    1541 
    1642</form> 
     
    1945[% INCLUDE 'ajax/services/mailing/attachments.tt' %] 
    2046</div> 
     47<fieldset> 
     48<legend>Attacher un fichier:</legend> 
    2149<form action="[% c.uri_for('/services', 'mailing') %]" 
    2250    enctype="multipart/form-data" method="POST"> 
     
    2452<input type="submit" value="Ajouter"> 
    2553</form> 
     54</fieldset> 
Note: See TracChangeset for help on using the changeset viewer.