suspend_request.tt2 4.62 KB
Newer Older
1
<!-- suspend_request.tt2 -->
2
3

<div class="block">
4
[% IF user.email %]
5
  <h2>[%|loc%]Manage your subscriptions[%END%]
6
    <a class="openInNewWindow"
IKEDA Soji's avatar
IKEDA Soji committed
7
     href="[% 'nomenu/help' | url_rel(['user-suspend.html']) %]" target="wws_help">
8
9
      <i class="fa fa-info-circle" title="[%|loc%]Help[%END%]"
       aria-hidden="true"></i>
10
11
    </a>
  </h2>
12
13
14
  
  <p>[%|loc%]You are subscribed to the following lists[%END%]</p>
  
15
16
17
  <form class="noborder toggleContainer"
    data-toggle-selector="input[name='listname']"
    action="[% path_cgi %]" method="POST" name="suspend_request">
18
19
20
21
22
23
24
25
26
27
28
29
30
31
    [% IF which_info.size %]
    <div class="item_list">
      [% FOREACH l = which_info %]
        [% suspended = 0 %]
        [% suspendable = 0 %]
        [% additional_class = '' %]
        [% FOREACH sub = suspend_list %]
          [% IF sub.listname == l.key %]
            [% suspendable = 1 %]
            [% IF sub.listsuspend %]
              [% suspended = 1 %]
              [% additional_class = ' suspended' %]
            [% END %]
          [% END %]
32
        [% END %]
33
34
      <div class="item[% additional_class %]">
        <div class="item_content">
35
          <a class="item_title" href="[% 'info' | url_rel([l.key]) %]">
36
            [%|obfuscate(conf.spam_protection) %][% l.key %][% END %]
37
38
39
40
41
42
43
44
45
46
47
48
49
            [% IF l.value.admin %]
              <span class="highlighted">([%|loc%]Owner[%END%])</span>
            [% END %]
          </a>
          [% IF suspendable %]
            [% IF suspended %]
              [%|loc(sub.liststartdate)%]Suspended from %1 to[% END %]
              [% IF sub.listenddate %]
                [% sub.listenddate %]
              [% ELSE %]
                [%|loc%]indefinite end date[%END%]
              [% END %]<br/>
              <input id="listname.[% sub.listname %]" type="checkbox" checked="checked" name="listname" value="[% l.key %]" />
sikeda's avatar
sikeda committed
50
              <label for="listname.[% sub.listname %]">[%|loc(l.key)%]Check to restore reception from list %1[% END %]</label>
51
52
            [% ELSE %]
              <input id="listname.[% sub.listname %]" type="checkbox" checked="checked" name="listname" value="[% l.key %]" />
sikeda's avatar
sikeda committed
53
              <label for="listname.[% sub.listname %]">[%|loc(l.key)%]Check to suspend or unsubscribe from list %1[% END %]</label>
54
55
56
57
58
59
60
61
62
            [% END %]
          [% ELSE %]
            <p class="note">[%|loc%]You are not allowed to suspend your subscription / unsusbscribe from this list.[% END %]
          [% END %]
          <p class="list_subject">[% l.value.subject %]</p>
          
          
          <ul>
            [% IF l.value.admin %]
63
              <li><a href="[% 'review' | url_rel([l.key]) %]">[%|loc%]Review members[%END%]</a></li>
64
65
            [% END %]
            
66
            [% IF is_user_allowed_to('archive_web_access', l.key) %]
67
              <li><a href="[% 'arc' | url_rel([l.key]) %]">[%|loc%]Archives[%END%]</a></li>
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
            [% END %]
          </ul>
        </div>
      </div>
      [% END %]
    </div>
    
    [% ELSE %]
    
    <p>[%|loc%]No subscription.[%END%]</p>
    
  [% END %]
    
    <p>[%|loc%]You can bulk suspend or revoke your memberships by selecting relevant lists and using the buttons below. The suspend option prevents delivery of emails, this can be useful if you are out of the office for some time.[%END%]</p>
    
83
84
    <input class="MainMenuLinks toggleButton" type="button"
      value="[%|loc%]Toggle selection[%END%]" />
85
86
87
88
    <br />
    
    <input type="hidden" name="action" value="suspend_request_action"/>
    <input class="MainMenuLinks" type="submit" name="sub_action_suspendsave" value="[%|loc%]Suspend my subscriptions[%END%]"/>
89
90
91
92
93
94
95
96
97
98
99
  <div>
    <label for="date_deb">[%|loc%]From:[%END%]</label>
    <input type="text" id="date_deb" name="date_deb" maxlength="10" size="10"
      style="display: inline-block; max-width: 40%"
      value="[% d_day %]"
      placeholder="[%|loc%]dd-mm-yyyy[%END%]" />
    <label for="date_fin">[%|loc%]To:[%END%]</label>
    <input type="text" id="date_fin" name="date_fin" maxlength="10" size="10"
      style="display: inline-block; max-width: 40%"
      placeholder="[%|loc%]dd-mm-yyyy[%END%]" />
    <noscript>([%|loc%]dd-mm-yyyy[%END%])</noscript>
100
    <input type="checkbox" name="indefinite" /> [%|loc%]Suspend my membership indefinitely[%END%]
101
  </div>
102
103
104
105
106
107
108
109
    
    [% IF suspended %]
    <input class="MainMenuLinks" type="submit" name="sub_action_suspendstop" value="[%|loc%]Resume my subscriptions[%END%]"/>
    <br />
    [% END %]
    
    <input class="MainMenuLinks" type="submit" name="sub_action_signoff" value="[%|loc%]Unsubscribe[%END%]"/>
  </form>
110
111
112
[% ELSE %]
   [%|loc%]You need to be logged in to access this page.[%END%]
[% END %]
113
</div>
114
<!-- end suspend_request.tt2 -->