mirror of
https://github.com/openvk/openvk
synced 2024-12-23 17:12:01 +03:00
7d450c18fd
* Make audio player pizdatey * Simple ajax routing (scripts are broken) * Fix most common script problems pt1 * Add ajax player Осталось пофиксить скрипты и создание плейлистов! Ну и ещё некоторые хуйни по аудиозаписям которые я задумал. * Add context menu for audios * Refactor audio upload page * Repair playlists * Fix main problems * Midnight teme adaptation * Stupid bug fix * Save audios list in da localstorage and fix msgbox * Fix time setting * add beforeUnload event * Stupid bugs fix * update page footer on transition * fix wall publihing * fix 500 on non existent page
56 lines
2.3 KiB
XML
56 lines
2.3 KiB
XML
{extends "../@layout.xml"}
|
|
|
|
{block title}{_edit_playlist}{/block}
|
|
|
|
{block header}
|
|
<a href="{$owner->getURL()}">{$owner->getCanonicalName()}</a>
|
|
»
|
|
<a href="/playlists{$ownerId}">{_playlists}</a>
|
|
»
|
|
<a href="/playlist{$playlist->getPrettyId()}">{_playlist}</a>
|
|
»
|
|
{_edit_playlist}
|
|
{/block}
|
|
|
|
{block content}
|
|
<div class='PE_wrapper'>
|
|
<div class='PE_playlistEditPage'>
|
|
<div class="playlistCover">
|
|
<a onclick="document.querySelector(`input[name='cover']`).click()">
|
|
<input type='file' name='cover' style='display:none;' accept=".jpg,.png">
|
|
<img src="{$playlist->getCoverURL('normal')}" alt="{_playlist_cover}">
|
|
</a>
|
|
<div class="profile_links" style="width: 139px;">
|
|
<a class="profile_link" style="width: 98%;" id="_deletePlaylist" data-id="{$playlist->getId()}">{_delete_playlist}</a>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="PE_playlistInfo">
|
|
<div>
|
|
<input value='{$playlist->getName()}' type="text" name="title" placeholder="{_title}" maxlength="125" />
|
|
</div>
|
|
<div class="moreInfo">
|
|
<textarea placeholder="{_description}" name="description" maxlength="2045">{$playlist->getDescription()}</textarea>
|
|
</div>
|
|
<label>
|
|
<input type='checkbox' name='is_unlisted' value='1' n:attr='checked => $playlist->isUnlisted()'>
|
|
{_playlist_hide_from_search}
|
|
</label>
|
|
<a id='_playlistAppendTracks'>{_add_audio_verb}</a>
|
|
</div>
|
|
</div>
|
|
<div class='PE_audios generic_audio_list'>
|
|
<div n:foreach='$audios as $audio' class='vertical-attachment upload-item' data-id='{$audio->getId()}'>
|
|
<div class='vertical-attachment-content'>
|
|
{include 'player.xml', audio => $audio, hideButtons => true}
|
|
</div>
|
|
<div class="vertical-attachment-remove">
|
|
<div id="small_remove_button"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class='PE_end'>
|
|
<input class="button" type="button" id='playlist_edit' value="{_save}">
|
|
</div>
|
|
</div>
|
|
{/block}
|