openvk/Web/Presenters/templates/Photos/EditAlbum.xml

54 lines
2 KiB
XML
Raw Permalink Normal View History

2020-06-07 19:04:43 +03:00
{extends "../@layout.xml"}
{block title}{_edit_album}{/block}
2020-06-07 19:04:43 +03:00
{block header}
<a href="{$album->getOwner()->getURL()}">{$album->getOwner()->getCanonicalName()}</a>
»
{if $album->getOwner() instanceof openvk\Web\Models\Entities\Club}
2022-08-09 09:37:08 +03:00
<a href="/albums{$album->getOwner()->getId() * -1}">{_albums}</a>
2020-06-07 19:04:43 +03:00
{else}
2022-08-09 09:37:08 +03:00
<a href="/albums{$album->getOwner()->getId()}">{_albums}</a>
2020-06-07 19:04:43 +03:00
{/if}
»
{$album->getName()}
{/block}
{block content}
<div class="tabs">
<div id="activetabs" class="tab">
<a id="act_tab_a" href="/album{$album->getPrettyId()}/edit">{_edit_album}</a>
</div>
<div class="tab">
<a href="/photos/upload?album={$album->getPrettyId()}">{_add_photos}</a>
</div>
</div>
2020-06-07 19:04:43 +03:00
<form 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">{_name}:</span></td>
2020-06-07 19:04:43 +03:00
<td><input type="text" name="name" value="{$album->getName()}" /></td>
</tr>
<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">{$album->getDescription()}</textarea>
</td>
</tr>
<tr>
<td width="120" valign="top"></td>
<td>
<input type="hidden" name="hash" value="{$csrfToken}" />
2022-08-09 09:37:08 +03:00
<input type="submit" class="button" name="submit" value="{_save}" />
2020-06-07 19:04:43 +03:00
</td>
</tr>
</tbody>
</table>
</form>
<hr/>
<center>
2022-08-09 09:37:08 +03:00
{_you_can_also} <a href="/album{$album->getOwner() instanceof openvk\Web\Models\Entities\Club ? '-' : ''}{$album->getOwner()->getId()}_{$album->getId()}/delete?hash={rawurlencode($csrfToken)}">{_delete_album}</a>.
2020-06-07 19:04:43 +03:00
</center>
{/block}