added delete form in templates

This commit is contained in:
Savetheinternet 2011-01-21 13:13:50 +11:00
parent 915dcc55eb
commit 8edccdb2aa
2 changed files with 22 additions and 0 deletions

View File

@ -86,7 +86,18 @@
</table>
</form>
<hr/>
<form action="{post_url}" method="post">
<input type="hidden" name="delete" value="1" />
<input type="hidden" name="board" value="{board[uri]}" />
{mod?<input type="hidden" name="mod" value="1" />}
{body}
<div class="delete">
Delete Post [<input title="Delete file only" type="checkbox" name="file" id="delete_file"/>
<label for="delete_file">File</label>] Password
<input type="password" name="password" size="12" maxlength="18" />
<input type="submit" value="Delete" />
</div>
</form>
Pages: {pages:
[<a href="{pages[link]}">{pages[num]}</a>]{!%last? }
}

View File

@ -70,7 +70,18 @@
</table>
</form>
<hr/>
<form action="{post_url}" method="post">
<input type="hidden" name="delete" value="1" />
<input type="hidden" name="board" value="{board[uri]}" />
{mod?<input type="hidden" name="mod" value="1" />}
{body}
<div class="delete">
Delete Post [<input title="Delete file only" type="checkbox" name="file" id="delete_file"/>
<label for="delete_file">File</label>] Password
<input type="password" name="password" size="12" maxlength="18" />
<input type="submit" value="Delete" />
</div>
</form>
<a href="{return}">[Return.]</a>
<p class="unimportant" style="text-align:center;">Copyright &copy; 2010 <a href="http://omegasdg.com/">OmegaSDG</a></p>
</body>