move.smarty
1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<p class="descriptiveText">{i18n}Moving a document relocates the document
within the document repository.{/i18n}</p>
{assign var=iDocumentId value=$context->oDocument->getId()}
{capture assign=link}
{"viewDocument"|generateControllerUrl:"fDocumentId=$iDocumentId"}
{/capture}
<p class="descriptiveText">{i18n arg_link=$link}If you do not intend to
move this document, you should <a href="#link#">cancel the
move</a>.{/i18n}</p>
<form method="POST" action="{$smarty.server.PHP_SELF}">
<fieldset><legend>{i18n}Move{/i18n}</legend>
<input type="hidden" name="action" value="move" />
<input type="hidden" name="fDocumentId" value="{$iDocumentId}" />
{foreach from=$move_fields item=oWidget }
{$oWidget->render()}
{/foreach}
<div class="field ">
<label for="fFolderId">{i18n}Target folder{/i18n}</label>
<p class="descriptiveText">{i18n}Use the folder collection and path below to
browse to the folder into which you wish to move the documents.{/i18n}</p>
<input type="hidden" name="fFolderId" value="{$context->oFolder->getId()}" />
{foreach from=$collection_breadcrumbs item=breadcrumb name=bc}
<a href="{$breadcrumb.url}">{$breadcrumb.name}</a>
{if !$smarty.foreach.bc.last}
»
{/if}
{/foreach}
{$collection->render()}
</div>
<div class="form_actions">
<input type="submit" name="submit[move]" value="{i18n}Move{/i18n}" />
<input type="submit" name="submit[cancel]" value="{i18n}Cancel{/i18n}" />
</div>
</fieldset>
</form>