You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
646 B

{extends 'layout_view.tpl'}
{block name="title"}
{title}{$title|escape}{/title}
{/block}
{block name="content"}
{if ! $fileId}
<form method="post" action="{service controller=file action=remote}">
<h3>{tr}Upload from URL{/tr}</h3>
<p>
<input type="hidden" name="galleryId" value="{$galleryId|escape}">
<label>{tr}URL:{/tr} <input type="url" name="url" placeholder="https://"></label>
<input type="submit" class="btn btn-primary btn-sm" value="{tr}Add{/tr}">
</p>
</form>
{else}
<p>{tr}File added:{/tr} {object_link type=file id=$fileId title=$name}</p>
{/if}
{/block}