forked from leftypol/leftypol
new PM
This commit is contained in:
parent
761cb4feab
commit
e49ece459e
5 changed files with 121 additions and 3 deletions
22
templates/mod/new_pm.html
Normal file
22
templates/mod/new_pm.html
Normal file
|
@ -0,0 +1,22 @@
|
|||
{#{% if id == mod.id %}
|
||||
{% set username = 'me' %}
|
||||
{% endif %}#}
|
||||
|
||||
<form action="" 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"></textarea></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p style="text-align:center"><input type="submit" value="Send message"></p>
|
||||
</form>
|
Loading…
Add table
Add a link
Reference in a new issue