mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-17 03:03:26 +02:00
* moved forum.edit_post to twig templates
* fixed forum move thread
This commit is contained in:
46
system/templates/forum.edit_post.html.twig
Normal file
46
system/templates/forum.edit_post.html.twig
Normal file
@@ -0,0 +1,46 @@
|
||||
<br/>
|
||||
<form action="{{ getLink('forum') }}" method="post">
|
||||
<input type="hidden" name="action" value="edit_post" />
|
||||
<input type="hidden" name="id" value="{{ post_id }}" />
|
||||
<input type="hidden" name="save" value="save" />
|
||||
<table width="100%">
|
||||
<tr bgcolor="{{ config.vdarkborder }}">
|
||||
<td colspan="2">
|
||||
<font color="white"><b>Edit Post</b></font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr bgcolor="{{ config.darkborder }}">
|
||||
<td width="180"><b>Character:</b></td>
|
||||
<td>
|
||||
<select name="char_id">
|
||||
<option value="0">(Choose character)</option>
|
||||
{% for player in players %}
|
||||
<option value="{{ player.id }}"{% if player.id == player_id %} selected="selected"{% endif %}>{{ player.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr bgcolor="{{ config.lightborder }}">
|
||||
<td><b>Topic:</b></td>
|
||||
<td><input type="text" value="{{ topic|raw }}" name="topic" size="40" maxlength="60" /> (Optional)</td>
|
||||
</tr>
|
||||
<tr bgcolor="{{ config.darkborder }}">
|
||||
<td valign="top"><b>Message:</b><font size="1"><br/>You can use:<br/>[player]Nick[/player]<br />[url]http://address.com/[/url]<br />[img]http://images.com/images3.gif[/img]<br />[code]Code[/code]<br />[b]<b>Text</b>[/b]<br />[i]<i>Text</i>[/i]<br/>[u]<u>Text</u>[/u]<br />and smileys:<br />;) , :) , :D , :( , :rolleyes:<br />:cool: , :eek: , :o , :p</font>
|
||||
</td>
|
||||
<td>
|
||||
<textarea rows="10" cols="60" name="text">{{ text|raw }}</textarea><br />(Max. 15,000 letters)
|
||||
</td>
|
||||
</tr>
|
||||
<tr bgcolor="{{ config.lightborder }}">
|
||||
<td valign="top">Options:</td>
|
||||
<td>
|
||||
<label>
|
||||
<input type="checkbox" name="smile" value="1"{% if smile == 1 %} checked="checked"{% endif %}/>Disable Smileys in This Post
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<center>
|
||||
<input type="submit" value="Save Post" />
|
||||
</center>
|
||||
</form>
|
@@ -8,7 +8,8 @@
|
||||
<table border="0" cellpadding="3" cellspacing="1" width="100%">
|
||||
<tr bgcolor="{{ config.lightborder }}">
|
||||
<td>
|
||||
<form action="{{ getLink('forum') }}" method="get">
|
||||
<form action="" method="get">
|
||||
<input type="hidden" name="subtopic" value="forum" />
|
||||
<input type="hidden" name="action" value="move_thread" />
|
||||
<input type="hidden" name="save" value="1" />
|
||||
<input type="hidden" name="id" value="{{ post_id }}" />
|
||||
|
Reference in New Issue
Block a user