Changeset 1136 for trunk/LATMOS-Accounts-Web
- Timestamp:
- 09/15/12 08:52:20 (12 years ago)
- Location:
- trunk/LATMOS-Accounts-Web
- Files:
-
- 2 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LATMOS-Accounts-Web/MANIFEST
r1135 r1136 138 138 root/static/icons/gnome-stock-mail-snd.png 139 139 root/static/icons/gtk-about.png 140 root/static/icons/gtk-add.png 140 141 root/static/icons/gtk-cancel.png 141 142 root/static/icons/gtk-close.png … … 168 169 root/static/icons/user-invisible.png 169 170 root/static/icons/user-properties.png 171 root/static/icons/user-trash.png 170 172 root/static/icons/video-display.png 171 173 root/static/icons/view-calendar-day.png -
trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller/Services/Mailing.pm
r1135 r1136 97 97 $email->header_set( Subject => $c->req->param('subject') ); 98 98 99 warn $email->as_string;99 $c->stash->{receivers} = []; 100 100 foreach (sort (keys %{ $c->session->{to} })) { 101 101 my $obj = $c->model('Accounts')->base->get_object( … … 103 103 ) or next; 104 104 my $email_addr = $obj->get_attributes('mail') or next; 105 push(@{ $c->stash->{receivers} }, $email_addr); 105 106 my $to = sprintf( 106 107 '%s <%s>', … … 120 121 ); 121 122 } 123 $c->session->{mailing}{subject} = ''; 124 $c->session->{mailing}{body} = ''; 125 $c->session->{to} = {}; 122 126 123 127 } -
trunk/LATMOS-Accounts-Web/root/html/ajax/services/mailing/dest_list.tt
r1135 r1136 7 7 <table> 8 8 [% END %] 9 [% obj = c.model('Accounts').db.get_object('user', u) %] 10 9 11 <tr> 10 <td>[% u | html %]</td> 12 <td> 13 [% disp = obj.get_attributes('displayName') || u %] 14 [% disp | html %] 15 </td> 11 16 <td> 12 [% c.prototype.link_to_remote( 'Sup', { 17 [% c.prototype.link_to_remote( '<img src="' _ c.uri_for('/static/icons', 18 'user-trash.png') _ '" height="24" width="24" alt="" title="Retirer ' _ disp _ '">', { 13 19 update => 'destlist', 14 20 url => c.uri_for('/ajax', 'services', 'mailing', 'mod_to', { 15 21 'act' => 'remove_to', 16 22 'user' => u, 17 } )18 } ) %]23 },) 24 }, { entities => '' } ) %] 19 25 </td> 20 26 </tr> -
trunk/LATMOS-Accounts-Web/root/html/ajax/services/mailing/users_list.tt
r1135 r1136 3 3 <table> 4 4 [% END %] 5 [% obj = c.model('Accounts').db.get_object(ofilter.otype, u) %] 6 5 7 <tr> 6 <td>[% u | html %]</td> 8 <td> 9 [% disp = obj.get_attributes('displayName') || u %] 10 [% disp | html %] 11 </td> 7 12 <td><input type=checkbox name="user" checked=1 value="[% u | html %]"> 8 [% c.prototype.link_to_remote( '+', { 13 [% c.prototype.link_to_remote( '<img src="' _ c.uri_for('/static/icons', 14 'gtk-add.png') _ '" height="24" width="24" alt="" title="Ajouter ' _ disp _ '">', { 9 15 update => 'destlist', 10 16 url => c.uri_for('/ajax', 'services', 'mailing', 'mod_to', { … … 12 18 'user' => u, 13 19 }) 14 } ) %]20 }, { entities => '' } ) %] 15 21 </td> 16 22 </tr> -
trunk/LATMOS-Accounts-Web/root/html/includes/sidebar.tt
r1132 r1136 14 14 <li><a href="[% c.uri_for('/summary', 'offices') %]">Annuaire par bureaux</a></li> 15 15 <li><a href="[% c.uri_for('/summary', 'departments') %]">Liste des départements</a></li> 16 <li><a href="[% c.uri_for('/services', 'mailing') %]">Mail séléctif</a></li> 16 17 </ul> 17 18 … … 52 53 <li><a href="[% c.uri_for('/admin') 53 54 %]">Gestion...</a></li> 54 </li>55 55 </ul> 56 56 -
trunk/LATMOS-Accounts-Web/root/html/services/mailing/index.tt
r1135 r1136 1 1 <form action="[% c.uri_for() %]" method="POST"> 2 <label for="subject">Sujet</label><br> 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> 3 6 <input type="text" name="subject" value="[% c.session.mailing.subject | html %]"> 4 7 <br> 5 8 6 <input type="submit" name="sto" value="To ...">7 [% IF c.session.to.keys.size > 0 %][% c.session.to.keys.size %] destinataires[% END %]8 <br>9 9 <textarea name="body" rows="6" cols="60"> 10 10 [%- c.session.mailing.body | html -%] 11 11 </textarea><br> 12 <input type="submit" name="send" value="send"> 12 [% IF c.session.to.keys.size > 0 %] 13 <input type="submit" name="send" value="Envoyer"> 14 [% END %] 13 15 14 16 </form> -
trunk/LATMOS-Accounts-Web/root/html/services/mailing/send.tt
r1135 r1136 1 Sent 1 <p>Le message a été envoyé</p> 2 3 <p>Sujet: [% c.req.param('subject') | html %]</p> 4 5 Destinataire: 6 7 <ol> 8 [% FOREACH m = receivers %] 9 <li>[% m | html %]</li> 10 [% END %] -
trunk/LATMOS-Accounts-Web/root/html/services/mailing/to.tt
r1135 r1136 54 54 <div style="width: 20em; float:left; border: solid;"> 55 55 [% c.prototype.link_to_remote( 56 '<img src="' _ c.uri_for('/static/icons', 'editclear.png') _ '" >',56 '<img src="' _ c.uri_for('/static/icons', 'editclear.png') _ '" title="Vider la liste">', 57 57 { 58 58 update => 'destlist', … … 62 62 <span style="float: right"> 63 63 <a href="[% c.uri_for('/services', 'mailing') %]"> 64 <img src="[% c.uri_for('/static/icons', 'emblem-default.png') %]"> 64 <img src="[% c.uri_for('/static/icons', 'emblem-default.png') %]" 65 title="Valider la liste"> 65 66 </a> 66 67 </span>
Note: See TracChangeset
for help on using the changeset viewer.