%TMPL:INCLUDE{"twiki"}%
%TMPL:INCLUDE{"rename"}%
%TMPL:DEF{"titleaction"}%(move attachment) %TMPL:END%



%TMPL:DEF{"webaction"}% *Move file attachment* %TMPL:END%



%TMPL:DEF{"bodystart"}%
<body class="twikiNoViewPage twikiRenamePage" onload="initPage()"><a name="PageTop"></a>%TMPL:END%



%TMPL:DEF{"topicaction"}%<div class="twikiTopicAction">
<table>
<tr>
<td class="twikiCancelCol">[[%WEB%.%TOPIC%][Cancel]]</td>
<td class="twikiSubmitCol"><input type="submit" class="twikiSubmit" value=" Move " /></td>
<td class="twikiAddCol"></td>
</tr></table></div>%TMPL:END%



%TMPL:DEF{"movewebhelp"}%To delete an attachment move it to web *Trash*, topic *TrashAttachment*.%TMPL:END%



%TMPL:DEF{"namehelp"}%The new topic chosen must already exist.%TMPL:END%



%TMPL:DEF{"content"}%
<form name="rename" action="%SCRIPTURLPATH%/rename%SCRIPTSUFFIX%/%WEB%/%TOPIC%">
---+ Move or Delete File <code>%FILENAME%</code>
<div class="twikiVersatileTable">
<table>
<tr>
<th>Change from:</th>
<td class="twikiOldCol"><b><nop>%WEB%.%TOPIC%</b></td>
<td class="twikiOldCol twikiHelpCol"></td>
</tr>
<tr>
<th>To web:</th>
<td class="twikiMainCol"><select name="newweb"> %WEBLIST{"<option $marker value=$qname>$name</option>" webs="Trash,public" selection="%WEB%" separator=" "}% </select></td>
<td class="twikiMainCol twikiHelpCol">%TMPL:P{"movewebhelp"}%</td>
</tr>
<tr>
<th>Topic name:</th>
<td class="twikiMainCol"><input name="newtopic" value="%TOPIC%" /></td>
<td class="twikiMainCol twikiHelpCol">%TMPL:P{"namehelp"}%</td>
</tr>
</table>
</div>
<input type="hidden" name="attachment" value="%FILENAME%" />
<input type="hidden" name="changeRefs" value="0" />
<div class="twikiHelp">
*Note:*
   * The attachment and any history will be moved to the new topic.
   * An error page will be shown if either of the topics are locked by another user.
   * Note that any URLs that refer to the attachment will be broken after this move.
</div>
%TMPL:P{"topicaction"}%
</form>%TMPL:END%