vaujdui
This commit is contained in:
@@ -19,11 +19,30 @@
|
||||
<p><strong>Genre:</strong> <?= $album->genreName ?></p>
|
||||
<p><strong>Year:</strong> <?= $album->year ?></p>
|
||||
<h4 class="title is-6">Songs</h4>
|
||||
<ul>
|
||||
<?php foreach ($album->songs as $song): ?>
|
||||
<li><?= anchor("music/view/{$song->trackId}", $song->songName) ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<div class="table-container">
|
||||
<table class="table is-striped is-fullwidth">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Titre</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($album->songs as $song): ?>
|
||||
<tr>
|
||||
<td><?= anchor("music/view/{$song->trackId}", $song->songName) ?></td>
|
||||
<td>
|
||||
<form method="post" action="<?= site_url('playlist/selectPlaylist') ?>" style="display:inline;">
|
||||
<input type="hidden" name="itemId" value="<?= $song->trackId ?>">
|
||||
<input type="hidden" name="itemType" value="song">
|
||||
<button type="submit" class="button is-link is-small">Ajouter à la playlist</button>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user