CC-1708 added x instead of input to remove items. Merging side playlist and playlist into one.
This commit is contained in:
parent
da85a5ad26
commit
01df8d8d6b
15 changed files with 78 additions and 230 deletions
|
@ -1,19 +1,22 @@
|
|||
<div><a href="<?php echo $this->url(
|
||||
array(
|
||||
'controller' => 'Playlist',
|
||||
'action' => 'new'
|
||||
),
|
||||
'default',
|
||||
true) ?>"> New Playlist</a></div>
|
||||
<span id="spl_new">New</span>
|
||||
<?php if (isset($this->pl)) : ?>
|
||||
<span id="spl_delete">Delete</span>
|
||||
<span id="spl_close">Close</span>
|
||||
<?php endif; ?>
|
||||
|
||||
<div><a href="<?php echo $this->url(
|
||||
array(
|
||||
'controller' => 'Playlist',
|
||||
'action' => 'edit'
|
||||
),
|
||||
'default',
|
||||
true) ?>"> Edit Playlist</a></div>
|
||||
<?php if (isset($this->pl)) : ?>
|
||||
|
||||
<?php
|
||||
<div id="spl_name"><?php echo $this->pl->getName(); ?></div>
|
||||
<div id="spl_length"><?php echo $this->pl->getLength(); ?></div>
|
||||
|
||||
echo $this->form;
|
||||
<ul id="spl_sortable">
|
||||
<?php if (count($this->pl->getContents())) : ?>
|
||||
<?php echo $this->partialLoop('sideplaylist/sidebarcontent.phtml', $this->pl->getContents()); ?>
|
||||
<?php else : ?>
|
||||
<li class="spl_empty">Empty playlist</li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
|
||||
<?php else : ?>
|
||||
<div>No open playlist</div>
|
||||
<?php endif; ?>
|
||||
|
|
6
application/views/scripts/playlist/sidebarcontent.phtml
Normal file
6
application/views/scripts/playlist/sidebarcontent.phtml
Normal file
|
@ -0,0 +1,6 @@
|
|||
<li class="spl_row" id="spl_<?php echo $this->partialCounter-1 ?>">
|
||||
<span class="spl_title"><?php echo $this->CcFiles['track_title'] ?></span>
|
||||
<span class="spl_playlength"><?php echo $this->cliplength ?></span>
|
||||
<span class="ui-icon ui-icon-close"></span>
|
||||
<span class="spl_artist"><?php echo $this->CcFiles['artist_name'] ?></span>
|
||||
</li>
|
|
@ -1,8 +1,7 @@
|
|||
<?php
|
||||
if (count($this->pl->getContents())) {
|
||||
echo $this->partialLoop('playlist/playlistEditorTable.phtml', $this->pl->getContents());
|
||||
}
|
||||
else {
|
||||
echo '<div class="pl_empty">Empty playlist</div>';
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
if (count($this->pl->getContents())) {
|
||||
echo $this->partialLoop('sideplaylist/sidebarcontent.phtml', $this->pl->getContents());
|
||||
}
|
||||
else {
|
||||
echo '<li class="pl_empty">Empty playlist</li>';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue