1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-12-18 02:16:03 +01:00

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> </table>
</form> </form>
<hr/> <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} {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: Pages: {pages:
[<a href="{pages[link]}">{pages[num]}</a>]{!%last? } [<a href="{pages[link]}">{pages[num]}</a>]{!%last? }
} }

View File

@ -70,7 +70,18 @@
</table> </table>
</form> </form>
<hr/> <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} {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> <a href="{return}">[Return.]</a>
<p class="unimportant" style="text-align:center;">Copyright &copy; 2010 <a href="http://omegasdg.com/">OmegaSDG</a></p> <p class="unimportant" style="text-align:center;">Copyright &copy; 2010 <a href="http://omegasdg.com/">OmegaSDG</a></p>
</body> </body>