2020-06-07 19:04:43 +03:00
|
|
|
{extends "../@layout.xml"}
|
2022-08-09 09:37:08 +03:00
|
|
|
{block title}{_upload_photo}{/block}
|
2020-06-07 19:04:43 +03:00
|
|
|
|
|
|
|
{block header}
|
|
|
|
<a href="{$thisUser->getURL()}">{$thisUser->getCanonicalName()}</a>
|
|
|
|
»
|
2022-08-09 09:37:08 +03:00
|
|
|
<a href="/albums{$thisUser->getId()}">{_albums}</a>
|
2020-06-07 19:04:43 +03:00
|
|
|
»
|
|
|
|
<a href="/album{$album->getPrettyId()}">{$album->getName()}</a>
|
|
|
|
»
|
2022-08-09 09:37:08 +03:00
|
|
|
{_upload_photo}
|
2020-06-07 19:04:43 +03:00
|
|
|
{/block}
|
|
|
|
|
|
|
|
{block content}
|
|
|
|
<form action="/photos/upload?album={$album->getPrettyId()}" method="post" enctype="multipart/form-data">
|
|
|
|
<table cellspacing="6">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
2022-08-09 09:37:08 +03:00
|
|
|
<td width="120" valign="top"><span class="nobold">{_description}:</span></td>
|
2020-06-07 19:04:43 +03:00
|
|
|
<td><textarea style="margin: 0px; height: 50px; width: 159px; resize: none;" name="desc"></textarea></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2022-08-09 09:37:08 +03:00
|
|
|
<td width="120" valign="top"><span class="nobold">{_photo}:</span></td>
|
2023-07-28 00:47:03 +03:00
|
|
|
<td><input type="file" name="blob" accept="image/*" /></td>
|
2020-06-07 19:04:43 +03:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td width="120" valign="top"></td>
|
|
|
|
<td>
|
|
|
|
<input type="hidden" name="hash" value="{$csrfToken}" />
|
|
|
|
<input type="submit" class="button" name="submit" value="Загрузить" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<input n:ifset="$_GET['album']" type="hidden" name="album" value="{$_GET['album']}" />
|
|
|
|
</form>
|
|
|
|
{/block}
|