summaryrefslogtreecommitdiff
path: root/modules/extra/webcpanel/templates/default/chanserv/access.html
blob: 13c0ba82b13918a9c524f9df4f0f4d50516db6b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{INCLUDE header.html}
		{FOR M IN MESSAGES}
			{M}<br/>
		{END FOR}
		{IF EXISTS ACCESSES}
			<b>Access List</b></br>
			<table width="100%" height="100%">
				<tr>
					<th>Mask</th>
					<th>Access</th>
					<th>Creator</th>
				</tr>
				{FOR MASK,ACCESS,CREATOR,ACCESS_CHANGE IN MASKS,ACCESSES,CREATORS,ACCESS_CHANGES}
					<tr>
						<td>{MASK}</td>
						<td>{ACCESS}</td>
						<td>{CREATOR}</td>
						{IF EQ ACCESS_CHANGE YES}
							<td><a href="/chanserv/access?channel={ESCAPED_CHANNEL}&mask={MASK}&del=1">Delete</a></td>
						{END IF}
					</tr>
				{END FOR}
			</table>
		{ELSE}
			<b>Access list is empty.</b>
		{END IF}

		<br/><br/>

		<b>Add an access entry</b><br/>
		<form method="post" action="/chanserv/access?channel={ESCAPED_CHANNEL}">
			<table width="100%" height="100%">
				<tr>
					<th>Mask</th>
					<th>Access</th>
					<th>Provider</th>
				</tr>
				<tr>
					<td><input type="text" name="mask"></td>
					<td><input type="text" name="access"></td>
					<td>
						<select name="provider">
							{FOR PROVIDER IN PROVIDERS}
								<option value="{PROVIDER}">{PROVIDER}</option>
							{END FOR}
						</select>
					</td>
				</tr>
			</table>
			<input type="submit" value="Add">
		</form>
{INCLUDE footer.html}