]> ruin.nu Git - ndwebbie.git/blobdiff - root/src/forum/thread.tt2
Make it possible to move a thread from the thread view
[ndwebbie.git] / root / src / forum / thread.tt2
index bd3a1be8d7aa66e1062351a6f60007ed12dd9974..0095155f04e14633d88b6c1eb3bf27960ccb389d 100644 (file)
 [% END %]
 
 [% IF thread.moderate %]
+
+<form action="[% c.uri_for('moveThreads',thread.fbid) %]" method="post">
+<p>Move checked threads to:
+<input type="hidden" name="t:[% thread.ftid %]" value="1">
+<select name="board">
+[% FOR category IN categories %]
+       <optgroup label="[% category.category %]">
+       [% FOR targetboard IN category.boards %]
+               <option value="[% targetboard.fbid %]">[% targetboard.board %]</option>
+       [% END %]
+       </optgroup>
+[% END %]
+</select>
+<input type="submit" name="cmd" value="Move">
+</p>
+</form>
+
 <form action="[% c.uri_for('postthreadaccess',thread.ftid) %]#NewPosts" method="post">
 <fieldset class="forum-post"> <legend>Change thread access</legend>
 <table>