| 1 |
{INCLUDE header.html} |
| 2 |
{INCLUDE chanserv/chanlist.html} |
| 3 |
<div class="panel-heading">Access List</div> |
| 4 |
<div class="panel-body"> |
| 5 |
{FOR M IN MESSAGES} |
| 6 |
<div class="alert alert-info"> |
| 7 |
{M}<br> |
| 8 |
</div> |
| 9 |
{END FOR} |
| 10 |
|
| 11 |
{IF EQ ACCESS_LIST YES} |
| 12 |
{IF EXISTS ACCESSES} |
| 13 |
<table id="tableNSAccess" class="table table-hover"> |
| 14 |
<thead> |
| 15 |
<tr> |
| 16 |
<th>Mask</th> |
| 17 |
<th>Access</th> |
| 18 |
<th>Creator</th> |
| 19 |
<th></th> |
| 20 |
</tr> |
| 21 |
</thead> |
| 22 |
<tbody> |
| 23 |
{FOR MASK,ACCESS,CREATOR IN MASKS,ACCESSES,CREATORS} |
| 24 |
<tr> |
| 25 |
<td style="font-weight: bold;">{MASK}</td> |
| 26 |
<td>{ACCESS}</td> |
| 27 |
<td>{CREATOR}</td> |
| 28 |
{IF EQ ACCESS_CHANGE YES} |
| 29 |
<td><a href="/chanserv/access?channel={ESCAPED_CHANNEL}&mask={MASK}&del=1" class="btn btn-sm btn-danger">Delete</a></td> |
| 30 |
{ELSE} |
| 31 |
<td></td> |
| 32 |
{END IF} |
| 33 |
</tr> |
| 34 |
{END FOR} |
| 35 |
</tbody> |
| 36 |
</table> |
| 37 |
{ELSE} |
| 38 |
<em>Access list is empty.</em> |
| 39 |
{END IF} |
| 40 |
|
| 41 |
<hr> |
| 42 |
|
| 43 |
{IF EQ ACCESS_CHANGE YES} |
| 44 |
<h4>Add an access entry</h4> |
| 45 |
<form class="form-horizontal" method="post" action="/chanserv/access?channel={ESCAPED_CHANNEL}"> |
| 46 |
<div class="form-group"> |
| 47 |
<label class="control-label col-lg-2" for="mask">Mask:</label> |
| 48 |
<div class="col-lg-6"> |
| 49 |
<input class="form-control" type="text" name="mask" id="mask" placeholder="Mask must be in the form nick!user@host"> |
| 50 |
</div> |
| 51 |
</div> |
| 52 |
<div class="form-group"> |
| 53 |
<label class="control-label col-lg-2" for="access">Access:</label> |
| 54 |
<div class="col-lg-6"> |
| 55 |
<input class="form-control" type="text" name="access" id="access" placeholder="Access level"> |
| 56 |
</div> |
| 57 |
</div> |
| 58 |
<div class="form-group"> |
| 59 |
<label class="control-label col-lg-2" for="reason">Provider:</label> |
| 60 |
<div class="col-lg-6"> |
| 61 |
<select name="provider" class="form-control"> |
| 62 |
{FOR PROVIDER IN PROVIDERS} |
| 63 |
<option value="{PROVIDER}">{PROVIDER}</option> |
| 64 |
{END FOR} |
| 65 |
</select> |
| 66 |
</div> |
| 67 |
</div> |
| 68 |
<div class="form-group"> |
| 69 |
<div class="col-lg-offset-2 col-lg-6"> |
| 70 |
<button type="submit" class="btn btn-primary">Send</button> |
| 71 |
</div> |
| 72 |
</div> |
| 73 |
</form> |
| 74 |
{END IF} |
| 75 |
{END IF} |
| 76 |
</div> |
| 77 |
{INCLUDE footer.html} |