2024-05-25 15:44:57 +02:00
|
|
|
<div class="container">
|
|
|
|
<h1>Ajouter une Chanson à la Playlist</h1>
|
|
|
|
<?php echo form_open('playlists/add_song/'.$playlist_id); ?>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="song_id">Sélectionner une Chanson :</label>
|
|
|
|
<select name="song_id" class="form-control" required>
|
|
|
|
<?php foreach ($songs as $song): ?>
|
|
|
|
<option value="<?php echo $song->id; ?>"><?php echo $song->name; ?></option>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<button type="submit" class="btn btn-primary">Ajouter</button>
|
|
|
|
<?php echo form_close(); ?>
|
|
|
|
</div>
|
2024-06-07 13:50:15 +02:00
|
|
|
|