[% IF !page || page.match('^\d*$') ~%] [% PROCESS ReviewMembers ~%] [%~ ELSIF page == 'owner' ~%] [% PROCESS ReviewUsers role = page users = owners %] [%~ ELSIF page == 'editor' ~%] [% PROCESS ReviewUsers role = page users = editors %] [%~ END %] [%~ BLOCK ReviewMembers # (members) ~%] [% IF is_owner %]

[%|loc%]Manage list members[%END%]

[%|loc%]Administrative Options[%END%]

[%|loc%]Pending subscriptions[%END%] [%|loc%]Pending unsubscriptions[%END%] [% IF conf.use_blacklist != 'none' %] [%|loc%]Blacklist[%END%] [% END %] [%|loc%]Bounces[%END%] [% IF action == 'search' %] [%|loc%]Dump[%END%] [% ELSE %] [%|loc%]Dump[%END%] [% END %] [%|loc%]Exclude[%END%]
[% IF may_sync %]
[% END %]

[%|loc%]Subscription reminder message[%END%]


[%# 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' ~%]

[%|loc%]Add Subscribers[%END%]

[%|loc%]To add an individual user:[%END%]

[%|loc%]To add multiple users:[%END%]

[%|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%]

[%|loc%]Multiple add[%END%]


[%~ END %] [% END %]

[%|loc%]Search for a User[%END%]

[% IF action == 'search' %] [% IF too_many_select %] [%|loc%]Selection too wide, unable to display selection[%END%] [% END %] [% END %]

[%|loc%]Subscriber Table[%END%]

[% IF action == 'search' %]

[%|loc(occurrence)%]%1 occurrence(s) found[%END%]

[% END %] [% SET thosesubscribers = members %] [% PROCESS subscriber_table.tt2 %] [% IF action == 'search' %] [% IF similar_subscribers_occurence != 0 %]

[%|loc(similar_subscribers_occurence)%] Other similar subscriber's email(s) (%1)[%END%]

[% SET thosesubscribers = similar_subscribers %] [% PROCESS subscriber_table.tt2 %] [% END %] [% END %] [% IF total != 0 %] [% IF is_owner %]
[% END %]
[% IF action == 'search' %]

[%|loc%]Excluded users[%END%]

[% IF user.email %] [% IF exclude_users %] [% FOREACH exc = exclude_users %] [% END %] [% END %] [% END %]
[%|loc%]List of exclude[%END%]
[%|loc%]Email[%END%] [%|loc%]Since[%END%]
 [% exc.email %]   [% exc.since %] 
[% END %]
[% IF action != 'search' %]
[% SET mysize = (size || 0) ~%]
[% IF prev_page ~%] [%~ END %] [% IF page ~%] [%|loc(page,total_page)%]page %1 / %2[%END%] [%~ END %] [% IF next_page ~%] [%~ END %]
[% END %] [% END %] [%~ END #ReviewMembers %] [%~ BLOCK ReviewUsers # (role,users) ~%] [% PROCESS config_common.tt2 ~%] [% SET pS = config_schema.0 ~%] [% SET pV = config_values.${pS.name} ~%] [% SET pF = { email => 'small-6 medium-4 columns', gecos => 'small-6 medium-4 columns', reception => 'medium-2 columns show-for-medium', visibility => 'medium-2 columns show-for-medium', info => 'columns', } ~%] [% PROCESS EditListHeading ppaths = [pS.name] pitem = pS helem = 'h2' ~%]
[%~# FIXME ~%]
[% FOREACH kS = pS.format ~%] [% NEXT UNLESS pF.${kS.name} ~%] [% NEXT UNLESS kS.privilege == 'read' || kS.privilege == 'write' ~%]
[%~ END %]
[% IF pS.privilege == 'write' && is_privileged_owner ~%]
[%~ END %]
[% SET oI = 0 ~%] [% IF pV.size() ~%] [% FOREACH oV = pV ~%]
[% FOREACH kS = pS.format ~%] [% NEXT UNLESS pF.${kS.name} ~%] [% NEXT UNLESS kS.privilege == 'read' || kS.privilege == 'write' ~%]
[% IF kS.name == 'email' ~%] [%~ IF pS.name == 'owner' && oV.profile == 'privileged' ~%] [%~ ELSIF pS.name == 'owner' ~%] [%~ ELSIF pS.name == 'editor' ~%] [%~ END %] [% IF pS.privilege == 'write' && is_privileged_owner ~%] [% oV.email %] [%~ ELSE ~%] [% oV.email %] [%~ END %] [%~ ELSIF kS.name == 'reception' || kS.name == 'visibility' ~%] [% oV.${kS.name} | optdesc %] [%~ ELSE ~%] [% oV.${kS.name} || ' ' %] [%~ END %]
[%~ END %]
[% IF is_privileged_owner && oV.subscribed ~%] [% PROCESS EditListArrayDel ppaths = [pS.name,oI] pitem = pS labelled = 0 val = oV.email ~%] [%~ ELSE ~%]   [%~ END %]
[%~ SET oI = oI + 1 %] [%~ END %] [%~ ELSE ~%]

[% IF pS.name == 'owner' ~%] [%|loc%]List has no owners[%END%] [%~ ELSIF pS.name == 'editor' ~%] [%|loc%]List has no moderators[%END%] [%~ END %]

[%~ END %] [% FOREACH kS = pS.format; IF kS.name == 'email' && kS.privilege == 'write'; SET is_writable = 1; LAST; END; END ~%] [% IF is_writable && is_privileged_owner ~%]

[% IF pS.name == 'owner' ~%] [%|loc%]Add owners[%END%] [%~ ELSIF pS.name == 'editor' ~%] [%|loc%]Add moderators[%END%] [%~ END %]

[% IF pS.name == 'owner' ~%]
[%~ END %] [% FOREACH kS = pS.format ~%] [% NEXT UNLESS pF.${kS.name} ~%] [% NEXT UNLESS kS.privilege == 'read' || kS.privilege == 'write' ~%]
[% UNLESS kS.privilege == 'write' ~%]   [%~ ELSIF kS.name == 'reception' ~%] [%~ ELSIF kS.name == 'visibility' ~%] [%~ ELSE ~%] [%~ END %]
[% END ~%]
[%~ END %] [% IF pS.privilege == 'write' && is_privileged_owner ~%] [% END ~%]
[%# AJAX modal dialog ~%] [%~ END#ReviewUsers ~%]