{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}
|