openvk/Web/Presenters/templates/Videos/Upload.xml

51 lines
1.9 KiB
XML
Raw Permalink Normal View History

2020-06-07 19:04:43 +03:00
{extends "../@layout.xml"}
2022-08-09 09:37:08 +03:00
{block title}{_upload_video}{/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="/videos{$thisUser->getId()}">{_videos}</a>
2020-06-07 19:04:43 +03:00
»
2022-08-09 09:37:08 +03:00
{_upload_video}
2020-06-07 19:04:43 +03:00
{/block}
{block content}
2020-07-13 06:55:45 +03:00
<div class="container_gray">
2022-08-09 09:37:08 +03:00
<h4>{_upload_video}</h4>
2020-06-07 19:04:43 +03:00
<form method="post" enctype="multipart/form-data">
2020-07-13 06:55:45 +03:00
<table cellspacing="7" cellpadding="0" width="60%" border="0" align="center">
2020-06-07 19:04:43 +03:00
<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" /></td>
</tr>
<tr>
2022-08-09 09:37:08 +03:00
<td width="120" valign="top"><span class="nobold">{_description}:</span></td>
2020-07-13 06:55:45 +03:00
<td><textarea name="desc"></textarea></td>
2020-06-07 19:04:43 +03:00
</tr>
<tr>
2022-08-09 09:37:08 +03:00
<td width="120" valign="top"><span class="nobold">{_video}:</span></td>
<td>
<label class="button" style="">{_browse}
<input type="file" id="blob" name="blob" style="display: none;" onchange="filename.innerHTML=blob.files[0].name" accept="video/*" />
</label>
<div id="filename" style="margin-top: 10px;"></div>
</td>
2020-06-07 19:04:43 +03:00
</tr>
<tr>
2022-08-09 09:37:08 +03:00
<td width="120" valign="top"><span class="nobold">{_video_link_to_yt}:</span></td>
2020-06-07 19:04:43 +03:00
<td><input type="text" name="link" placeholder="https://www.youtube.com/watch?v=9FWSRQEqhKE" /></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="{_upload_button}" />
2020-06-07 19:04:43 +03:00
</td>
</tr>
</tbody>
</table>
</form>
2020-07-13 06:55:45 +03:00
</div>
2020-06-07 19:04:43 +03:00
{/block}