source: trunk/LATMOS-Accounts-Web/root/html/services/mailing/to.tt @ 1135

Last change on this file since 1135 was 1135, checked in by nanardon, 12 years ago

Merge branch 'dyngroup'

File size: 2.1 KB
Line 
1<div style="float:left; border: solid;">
2<p>Rechercher:</p>
3[% c.prototype.form_remote_tag({
4    update => 'dest',
5    url => c.uri_for('/ajax', 'services', 'mailing', 'users_list'),
6 }) %]
7<select name="type" id="to_type">
8<option value="quick">Nom contient:</option>
9<option value="memberOf">Membre du groupe...</option>
10<option value="company">Société...</option>
11[% IF \c.model('Accounts').db.search_objects(
12    'group',
13    'exported=*',
14    'sutype=dpmt').size > 0 %]
15<option value="dpmt">Du département...</option>
16<option value="dpmt_assoc">Du département ou associé...</option>
17[% END %]
18</select>
19<br>
20<span id="to_res">
21[% INCLUDE 'ajax/services/mailing/quick_input.tt' %]
22</span>
23<br>
24<input type="image" src="[% c.uri_for('/static/icons/find.png') %]" width="24" height="24">
25[% c.prototype.observe_field( 'to_type', {
26    update => 'to_res',
27    url => c.uri_for('/services', 'mailing', 'filter'),
28    frequency => 1,
29    with   => "'type=select&filter=' + element.value",
30}) %]
31</form>
32<hr>
33
34[% c.prototype.form_remote_tag({
35    update => 'destlist',
36    url => c.uri_for('/ajax', 'services', 'mailing', 'mod_to'),
37 }) %]
38<div style="float: left; width:15em;">
39Résultat:
40<div id="dest" style="height: 20em; overflow: auto">
41</div>
42</div>
43<div style="float: right">
44<input type=hidden name=act value="" id=act>
45<input type="submit" name="add_to"
46    value="Ajouter >>" onclick="document.getElementById('act').value='add_to';"><br>
47<input type="submit" name="add_to"
48    value="Supprimer >>" onclick="document.getElementById('act').value='remove_to';"><br>
49</div>
50</div>
51
52</form>
53
54<div style="width: 20em; float:left; border: solid;">
55[%  c.prototype.link_to_remote(
56    '<img src="' _ c.uri_for('/static/icons', 'editclear.png') _ '">',
57    {
58    update => 'destlist',
59    url    => c.uri_for('/ajax', 'services', 'mailing', 'empty'),
60}, { entities => '' } ) %]
61
62<span style="float: right">
63<a href="[% c.uri_for('/services', 'mailing') %]">
64<img src="[% c.uri_for('/static/icons', 'emblem-default.png') %]">
65</a>
66</span>
67<hr style="clear: both;">
68<div id="destlist">
69[% INCLUDE 'ajax/services/mailing/dest_list.tt' %]
70</div>
71</div>
Note: See TracBrowser for help on using the repository browser.