review.tt2 7.77 KB
Newer Older
1
<!-- review.tt2 -->
2
[% IF is_owner %]
3
<h2>[%|loc%]Manage list members[%END%] <a  href="[% 'nomenu/help/admin' | url_rel %]#manage_members" title="[%|loc%]Open in a new window[%END%]" onclick="window.open('','wws_help','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=400,height=200')" target="wws_help"><i class="fa fa-question-circle" title="[%|loc%]Help[%END%]"></i></a></h2>
4

5
  <h3>[%|loc%]Administrative Options[%END%]</h3>
6
  <a class="actionMenuLinks" href="[% 'subindex' | url_rel([list]) %]">[%|loc%]Pending subscriptions[%END%]</a> 
7
  <a class="actionMenuLinks" href="[% 'sigindex' | url_rel([list]) %]">[%|loc%]Pending unsubscriptions[%END%]</a> 
8
  [% IF conf.use_blacklist != 'none' %]
9
    <a class="actionMenuLinks" href="[% 'blacklist' | url_rel([list]) %]">[%|loc%]Blacklist[%END%]</a>
10
  [% END %]
11
  <a class="actionMenuLinks" href="[% 'reviewbouncing' | url_rel([list]) %]">[%|loc%]Bounces[%END%]</a>
12
  [% IF action == 'search' %]
13
     <a class="actionMenuLinks" href="[% 'dump' | url_rel([list,filter]) %]">[%|loc%]Dump[%END%]</a>
14
  [% ELSE %]
15
     <a class="actionMenuLinks" href="[% 'dump' | url_rel([list,'light']) %]">[%|loc%]Dump[%END%]</a> 
16
  [% END %]
17
     <a class="actionMenuLinks" href="[% 'show_exclude' | url_rel([list]) %]">[%|loc%]Exclude[%END%]</a> 
18
19
20
21
22
  <br />

  [% IF may_sync %]
  <br />
  <form name="synchronize_list_members" action="[% path_cgi %]" method="post">
sikeda's avatar
sikeda committed
23
  <input class="MainMenuLinks heavyWork" type="submit" name="action_sync_include" value="[%|loc%]Synchronize members with data sources[%END%]" />
24
25
26
  <input type="hidden" name="list" value="[% list %]"/>
  </form>
  [% END %]
27
28
  <hr>
  <h3>[%|loc%]Subscription reminder message[%END%]</h3>
29
  <form class="noborder" name="synchronize_list_members" action="[% path_cgi %]" method="post">
30
31
32
33
    <input class="MainMenuLinks" type="submit" name="action_remind"
      value="[%|loc%]Remind all[%END%]" />
    <input type="hidden" name="previous_action" value="[% action %]" />
    <input type="hidden" name="list" value="[% list %]" />
34
  </form>
35
  <hr>
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
  [%# If a list is not 'open' and allow_subscribe_if_pending has been set to
      'off', add cannot be performed. ~%]
  [% IF list_status == 'open' || conf.allow_subscribe_if_pending == 'on' ~%]
    <h3>[%|loc%]Add Subscribers[%END%]</h3>
    <form action="[% path_cgi %]" method="POST">
    <h4>[%|loc%]To add an individual user:[%END%]</h4>
    <fieldset>
    <input type="hidden" name="previous_action" value="review" />
    <input type="hidden" name="list" value="[% list %]" />
    <input type="hidden" name="action" value="add" />
    <div>
      <label for="email_search">[%|loc%]Email address:[%END%]</label>
      <input id="email_search" type="text" name="email" size="35" />
    </div>
    <div>
      <input id="quietly" type="checkbox" name="quiet" />
      <label for="quietly">
        [%|loc%]Quiet (don't send welcome email)[%END%]
      </label>
IKEDA Soji's avatar
IKEDA Soji committed
55
56
    </div>
    <div>
57
58
59
60
61
62
63
64
      <input class="MainMenuLinks" type="submit" name="action_add"
       value="[%|loc%]Add[%END%]" />
    </div>
    </fieldset>
    </form>
    <h4>[%|loc%]To add multiple users:[%END%]</h4>
    <p>[%|loc%]Click the Multiple Add button below to bulk-add users using a form.  (Alternatively, consider using a data-source such as SQL or an Active Directory Group).[%END%]</p>
    <div>
MargoM's avatar
MargoM committed
65
    <p>
66
67
68
      <a class="button" href="[% 'import' | url_rel([list]) %]">
        [%|loc%]Multiple add[%END%]
      </a>
MargoM's avatar
MargoM committed
69
    </p>
70
    </div>
71
    <hr>
72
  [%~ END %]
73
[% END %]
salaun's avatar
salaun committed
74

75
76
<h3>[%|loc%]Search for a User[%END%]</h3>
<form action="[% path_cgi %]" method="post"> 
77
78
79
80
<fieldset>
<input type="hidden" name="previous_action" value="review" />
<input type="hidden" name="list" value="[% list %]" />
<input type="hidden" name="action" value="search" />
81
   <label for="filter">[%|loc%]Search for a user by email address, name or part of them: [%END%]</label>
82
   <input title="[%|loc%]Enter a name, email or part of them[%END%]" type="text" size="18" id="filter" name="filter" value="[% filter %]" />
83
84
<input class="MainMenuLinks" type="submit" name="action_search" value="[%|loc%]Search[%END%]" />

85
86
[% IF action == 'search' %]
[% IF too_many_select %]
87
[%|loc%]Selection too wide, unable to display selection[%END%]
88
89
90
91
[% END %]
[% END %]
</fieldset>
</form>
92
93
94

<hr>
<h3>[%|loc%]Subscriber Table[%END%]</h3>
95

96
97
<form class="toggleContainer" data-toggle-selector="input[name='email']"
  name="myform" action="[% path_cgi %]" method="POST">
98
99
100
101
102
103
104
105
106
107
<fieldset>
  <input type="hidden" name="previous_action" value="[% action %]" />
  <input type="hidden" name="previous_list" value="[% list %]" />
  <input type="hidden" name="list" value="[% list %]" />
[% IF action == 'search' %]
<h2>[%|loc(occurrence)%]%1 occurrence(s) found[%END%]</h2>
[% END %]

[% SET thosesubscribers = members %]
[% PROCESS subscriber_table.tt2 %]
salaun's avatar
salaun committed
108

109
[% IF action == 'search' %]	
110
111
  [% IF similar_subscribers_occurence != 0 %]
    <h2> [%|loc(similar_subscribers_occurence)%] Other similar subscriber's email(s) (%1)[%END%]</h2>
112
113
114
115
  [% SET thosesubscribers = similar_subscribers %]
  [% PROCESS subscriber_table.tt2 %]
  [% END %]
[% END %]
salaun's avatar
salaun committed
116

117
[% IF total != 0 %]
118
119
  [% IF is_owner %]
  <div>
120
121
    <input class="MainMenuLinks toggleButton" type="button"
      value="[%|loc%]Toggle Selection[%END%]" />
122
123
124
125
  </div>
  <div>
    <input class="MainMenuLinks" type="submit" name="action_del"
      value="[%|loc%]Delete selected email addresses[%END%]" />
IKEDA Soji's avatar
IKEDA Soji committed
126
127
  </div>
  <div>
128
129
130
131
132
133
134
    <input type="checkbox" id="quiet" name="quiet" />
    <label for="quiet">
      [%|loc%]Quiet (don't send deletion email)[%END%]
    </label>
  </div>
  [% END %]
  <hr>
135

136
137
   [% IF action == 'search' %]
     <h4>[%|loc%]Excluded users[%END%]</h4>
138
139
     <table  class="responsive listOfItems">
     <caption>[%|loc%]List of exclude[%END%]</caption>
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
      <tr>
	<th>[%|loc%]Email[%END%]</th>
        <th>[%|loc%]Since[%END%]</th>
      </tr>

      [% IF user.email %]
        [% IF exclude_users %]
          [% FOREACH exc = exclude_users %] 
            <tr class="color0">
              <td>&nbsp;[% exc.email %]&nbsp;</td>
	      <td>&nbsp;[% exc.since %]&nbsp;</td>
            </tr>
	  [% END %]
        [% END %]
      [% END %]
    </table>
   [% END %]
   </fieldset>
   </form>

[% IF action != 'search' %]
<div class="search_form">
  <form class="noborder" action="[% path_cgi %]">
  <fieldset>
  <label for="size">[%|loc%]Page size[%END%]</label>
  <input type="hidden" name="sortby" value="[% sortby %]" />
  <input type="hidden" name="action" value="review" />
  <input type="hidden" name="list" value="[% list %]" />
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
  [% SET mysize = (size || 0) ~%]
  <select id="size" name="size" class="submitOnChange">
  [% FOREACH s = [25, 50, 100, 500] ~%]
    [% IF 0 < mysize && mysize < s ~%]
      <option value="[% size %]" selected>[% size %]</option>
      <option value="[% s %]">[% s %]</option>
      [%~ mysize = 0 ~%]
    [%~ ELSIF mysize == s ~%]
      <option value="[% size %]" selected>[% size %]</option>
      [%~ mysize = 0 ~%]
    [%~ ELSIF s < mysize && loop.last() ~%]
      <option value="[% s %]">[% s %]</option>
      <option value="[% size %]" selected>[% size %]</option>
    [%~ ELSE ~%]
      <option value="[% s %]">[% s %]</option>
    [%~ END %]
  [%~ END %]
185
  </select>
186
187
188
189
  <noscript>
    <input type="submit" class="MainMenuLinks" name="action_review"
      value="[%|loc%]Change[%END%]" />
  </noscript>
190
191
  </fieldset>
  </form>
192
193
194
195
196
197
198
199
200
201
202
203
204
  [% IF prev_page ~%]
    <a href="[% 'review' | url_rel([list,prev_page,size,sortby]) %]">
    <i class="fa fa-caret-left fa-lg" title="[%|loc%]Previous page[%END%]"></i>
    </a>
  [%~ END %]
  [% IF page ~%]
    [%|loc(page,total_page)%]page %1 / %2[%END%]
  [%~ END %]
  [% IF next_page ~%]
    <a href="[% 'review' | url_rel([list,next_page,size,sortby]) %]">
    <i class="fa fa-caret-right fa-lg" title="[%|loc%]Next page[%END%]"></i>
    </a>
  [%~ END %]
205
206
207
</div>
[% END %]

208
[% END %]
209
<!-- end review.tt2 -->