mirror of https://github.com/sipwise/www_admin.git
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.
98 lines
3.7 KiB
98 lines
3.7 KiB
<h3>Search subscribers</h3>
|
|
<div class="p1">
|
|
<form action="/subscriber/search" method="post" class="search_subscriber">
|
|
|
|
<label class="search_label" for="search_by_username">Username:</label>
|
|
<input type="text" id="search_by_username" name="search_user" value="[% search_user %]" />
|
|
<input type="checkbox" id="exact_user" name="exact_user" [% IF exact_user %]checked="checked"[% END %] />
|
|
<label for="exact_user">exact match</label><br />
|
|
|
|
<label class="search_label" for="search_by_e164">E.164 number:</label>
|
|
<input type="text" id="search_by_e164" name="search_e164" value="[% search_e164 %]" />
|
|
<input type="checkbox" id="exact_e164" name="exact_e164" [% IF exact_e164 %]checked="checked"[% END %] />
|
|
<label for="exact_e164">exact match</label><br />
|
|
|
|
<label class="search_label" for="search_by_uuid">UUID:</label>
|
|
<input type="text" id="search_by_uuid" name="search_uuid" value="[% search_uuid %]" />
|
|
<input type="checkbox" id="exact_uuid" name="exact_uuid" [% IF exact_uuid %]checked="checked"[% END %]/>
|
|
<label for="exact_uuid">exact match</label><br />
|
|
|
|
<input type="submit" value="Search »" class="but" />
|
|
</form>
|
|
</div>
|
|
|
|
[% IF subscriber_list %]
|
|
|
|
<h3>Subscribers</h3>
|
|
|
|
<div class="p1">
|
|
<table>
|
|
<tr><td>SIP URI</td><td class="tdcenter">Account ID</td></tr>
|
|
|
|
[% FOREACH subscriber = subscriber_list %]
|
|
|
|
<tr>
|
|
<td>
|
|
[% IF subscriber.subscriber_id %]
|
|
<a href="/subscriber/detail?subscriber_id=[% subscriber.subscriber_id %]">
|
|
[% subscriber.username %]@[% subscriber.domain %]</a>
|
|
[% ELSE %]
|
|
[% subscriber.username %]@[% subscriber.domain %]
|
|
[% END %]
|
|
</td>
|
|
<td class="tdcenter">
|
|
<a href="/account/detail?account_id=[% subscriber.account_id %]">
|
|
[% subscriber.account_id %]</a>
|
|
</td>
|
|
</tr>
|
|
|
|
[% END %]
|
|
</table>
|
|
|
|
[% IF pagination %]
|
|
<div class="pagination">
|
|
<ul>
|
|
[% IF offset == 0 %]
|
|
<li class="disablepage">« prev</li>
|
|
[% ELSE %]
|
|
<li class="nextpage">
|
|
<a href="/subscriber/search?use_session=1&offset=[% offset - 1 %]">« prev</a>
|
|
</li>
|
|
[% END %]
|
|
[% FOREACH pagine = pagination %]
|
|
[% IF pagine.offset == offset %]
|
|
<li class="currentpage">
|
|
[% pagine.offset + 1 %]
|
|
</li>
|
|
[% ELSIF pagine.offset == -1 %]
|
|
...
|
|
[% ELSE %]
|
|
<li>
|
|
<a href="/subscriber/search?use_session=1&offset=[% pagine.offset %]">[% pagine.offset + 1 %]</a>
|
|
</li>
|
|
[% END %]
|
|
[% END %]
|
|
[% IF offset >= max_offset %]
|
|
<li class="disablepage">
|
|
next »
|
|
</li>
|
|
[% ELSE %]
|
|
<li class="nextpage">
|
|
<a href="/subscriber/search?use_session=1&offset=[% offset + 1 %]">next »</a>
|
|
</li>
|
|
[% END %]
|
|
</ul>
|
|
</div>
|
|
[% END %]
|
|
|
|
</div>
|
|
|
|
[% ELSIF searched %]
|
|
|
|
<div class="p1">
|
|
No matching subscribers found.
|
|
</div>
|
|
|
|
[% END %]
|
|
|