summaryrefslogtreecommitdiff
path: root/templates/mod/new_pm.html
blob: ece1325c5c6ec362a012a9d5f5227218a84acadf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{#{% if id == mod.id %}
	{% set username = 'me' %}
{% endif %}#}

<form action="?/new_PM/{{ username|e }}" method="post">
	<table>
		<tr>
			<th>To</th>
			{% if mod|hasPermission(config.mod.editusers) %}
				<td><a href="?/users/{{ id }}">{{ username|e }}</a></td>
			{% else %}
				<td>{{ username|e }}</td>
			{% endif %}
		</tr>
		<tr>
			<th>Message</th>
			<td><textarea name="message" rows="10" cols="40">{{ message }}</textarea></td>
		</tr>
	</table>

	<p style="text-align:center"><input type="submit" value="Send message"></p>
</form>