{** * templates/controllers/grid/settings/library/form/editFileForm.tpl * * Copyright (c) 2014-2019 Simon Fraser University * Copyright (c) 2003-2019 John Willinsky * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. * * Library Files form for editing an existing file *}
getId()}" method="post"> {csrf} {fbvFormArea id="name"} {fbvFormSection title="common.name" required=true} {fbvElement type="text" id="libraryFileName" value=$libraryFileName maxlength="255" multilingual=true required=true} {/fbvFormSection} {/fbvFormArea} {fbvFormArea id="type"} {fbvFormSection title="common.type" required=true} {fbvElement type="select" from=$fileTypes id="fileType" selected=$libraryFile->getType() defaultValue="" defaultLabel="common.chooseOne"|translate required=true} {/fbvFormSection} {/fbvFormArea} {fbvFormArea id="file"} {fbvFormSection title="common.file"}
{translate key="common.fileName"} {$libraryFile->getOriginalFileName()|escape}
{translate key="common.fileSize"} {$libraryFile->getNiceFileSize()}
{translate key="common.dateUploaded"} {$libraryFile->getDateUploaded()|date_format:$datetimeFormatShort}
{/fbvFormSection} {/fbvFormArea} {fbvFormSection list="true" translate=false} {capture assign=enablePublicAccess}{translate key="common.publicAccess"}{/capture} {fbvElement type="checkbox" id="publicAccess" value="1" checked=$publicAccess label=$enablePublicAccess translate=false}

{capture assign=downloadUrl}{url router=$smarty.const.ROUTE_PAGE page="libraryFiles" op="downloadPublic" path=$libraryFile->getId()}{/capture} {translate key="settings.libraryFiles.public.viewInstructions" downloadUrl=$downloadUrl}

{/fbvFormSection} {fbvFormButtons}

{translate key="common.requiredField"}