You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
www_admin/root/tt/subscriber_edit_list.tt

107 lines
5.4 KiB

<h3>Edit [% list_name %] for
<a class="noarrow" href="detail?subscriber_id=[% subscriber_id %]">
[% subscriber.username %]@[% subscriber.domain %]</a>
</h3>
<div class="actions">
<a href="preferences?subscriber_id=[% subscriber_id %]&amp;#userprefs" class="aaction">back</a>
</div>
<div class="p1">
[% IF messages.nummsg %]<div class="goodmsg">[% messages.nummsg %]</div>[% END %]
[% IF messages.numerr %]<div class="errormsg">[% messages.numerr %]</div>[% END %]
<div class="list_explanation">
[% IF list_name == 'block_in_list' || list_name == 'adm_block_in_list' %]
[% IF list_mode %]
[% IF list_data %]
All incoming calls are blocked by default, only the following callers are allowed.<br />
[% ELSE %]
All incoming calls are currently blocked, exceptions may be added below.<br />
[% END %]
[% ELSE %]
[% IF list_data %]
All incoming calls are accepted by default, only the following callers are blocked.<br />
[% ELSE %]
All incoming calls are currently accepted, exceptions may be added below.<br />
[% END %]
[% END %]
[% IF block_in_clir %]
Anonymous calls (CLIR) are currently blocked!<br />
[% ELSE %]
Anonymous calls (CLIR) are currently accepted!<br />
[% END %]
[% ELSE %]
[% IF list_mode %]
[% IF list_data %]
All outgoing calls are blocked by default, only the following destinations are allowed.<br />
[% ELSE %]
All outgoing calls are currently blocked, exceptions may be added below.<br />
[% END %]
[% ELSE %]
[% IF list_data %]
All outgoing calls are allowed by default, only the following destinations are blocked.<br />
[% ELSE %]
All outgoing calls are currently allowed, exceptions may be added below.<br />
[% END %]
[% END %]
[% END %]
</div>
<table>
[% FOREACH blockentry = list_data %]
<tr class="[% blockentry.background %]">
<td [% IF blockentry.active == 0 %]class="listentry_disabled"[% END %]> [% blockentry.number %] </td>
<form action="do_edit_list" method="post">
<td >
<input type="hidden" name="subscriber_id" value="[% subscriber_id %]" />
<input type="hidden" name="list_name" value="[% list_name %]" />
<input type="hidden" name="block_del" value="[% blockentry.number %]" />
<input type="hidden" name="block_stat" value="[% blockentry.active %]" />
<div class="postlink">
<label for="listdel[% blockentry.id %]">delete</label>
<input type="image" class="hidden" src="/static/images/dot_trans.gif" alt="" id="listdel[% blockentry.id %]" />
</div>
</td>
</form>
<form action="do_edit_list" method="post">
<td>
<input type="hidden" name="subscriber_id" value="[% subscriber_id %]" />
<input type="hidden" name="list_name" value="[% list_name %]" />
[% IF blockentry.active == 1 %]
<input type="hidden" name="block_act" value="[% blockentry.number %]" />
<input type="hidden" name="block_stat" value="1" />
<div class="postlink">
<label for="blockact[% blockentry.id %]">deactivate</label>
<input type="image" class="hidden" src="/static/images/dot_trans.gif" alt="" id="blockact[% blockentry.id %]" />
</div>
[% ELSIF blockentry.active == 0 %]
<input type="hidden" name="block_act" value="[% blockentry.number %]" />
<input type="hidden" name="block_stat" value="0" />
<div class="postlink">
<label for="blockact[% blockentry.id %]">activate</label>
<input type="image" class="hidden" src="/static/images/dot_trans.gif" alt="" id="blockact[% blockentry.id %]" />
</div>
[% END %]
</td>
</form>
</tr>
[% END %]
</table>
<br />
<form action="/subscriber/do_edit_list" method="post">
<input type="hidden" name="subscriber_id" value="[% subscriber_id %]" />
<input type="hidden" name="list_name" value="[% list_name %]" />
<label for="blockaddtxt">New entry:</label><br />
<div class="postlink">
<input type="text" size="20" name="block_add" id="blockaddtxt" value="[% blockaddtxt %]" /> &nbsp;
<label for="blockadd">Add entry</label>
<input type="image" class="hidden" src="/static/images/dot_trans.gif" alt="" id="blockadd" />
[% IF messages.msgadd %]<div class="errormsg">[% messages.msgadd %]</div>[% END %]
</div><br clear="all" />
</form>
</div>