mirror of
https://grond.iut-fbleau.fr/stiti/SAE_2.02
synced 2024-11-12 22:01:41 +01:00
Quelques modifications de la playlist
This commit is contained in:
parent
4095bea242
commit
3664e46686
@ -1,3 +1,4 @@
|
||||
|
||||
<div class="container">
|
||||
<!-- Messages Flash -->
|
||||
<?php if($this->session->flashdata('success')): ?>
|
||||
@ -14,24 +15,27 @@
|
||||
|
||||
<h1><?php echo htmlspecialchars($playlist->name, ENT_QUOTES, 'UTF-8'); ?></h1>
|
||||
|
||||
<!-- Affichage de la description de la playlist -->
|
||||
<p><?php echo htmlspecialchars($playlist->description, ENT_QUOTES, 'UTF-8'); ?></p>
|
||||
|
||||
<?php if ($this->session->userdata('user_id') === $playlist->utilisateur_id): ?>
|
||||
<form action="<?php echo site_url('playlists/update/' . $playlist->id); ?>" method="post">
|
||||
<div class="form-group">
|
||||
<label for="name">Nom de la Playlist:</label>
|
||||
<br><label for="name">Nom de la Playlist:</label>
|
||||
<input type="text" name="name" value="<?php echo htmlspecialchars($playlist->name, ENT_QUOTES, 'UTF-8'); ?>" class="form-control" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="description">Description de la Playlist:</label>
|
||||
<br><label for="description">Description de la Playlist:</label>
|
||||
<textarea name="description" class="form-control" required><?php echo htmlspecialchars($playlist->description, ENT_QUOTES, 'UTF-8'); ?></textarea>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="visibility">Visibilité de la Playlist:</label>
|
||||
<br><label for="visibility">Visibilité de la Playlist:</label>
|
||||
<select name="public" class="form-control">
|
||||
<option value="1" <?php if ($playlist->public == 1) echo 'selected'; ?>>Public</option>
|
||||
<option value="0" <?php if ($playlist->public == 0) echo 'selected'; ?>>Privé</option>
|
||||
</select>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary">Enregistrer</button>
|
||||
<br><button type="submit" class="btn btn-primary">Enregistrer</button>
|
||||
</form>
|
||||
<?php endif; ?>
|
||||
|
||||
@ -78,4 +82,4 @@
|
||||
<a href="<?php echo site_url('playlists/add_artist/' . $playlist->id); ?>" class="btn btn-primary">Ajouter les musiques d'un artiste</a>
|
||||
<?php endif; ?>
|
||||
<a href="<?php echo site_url('playlists'); ?>" class="btn btn-secondary">Retour</a>
|
||||
</div>
|
||||
</div>
|
@ -2,6 +2,7 @@
|
||||
<h1>Liste des Playlists</h1>
|
||||
<a href="<?php echo site_url('playlists/create'); ?>" class="btn btn-primary">Créer une Nouvelle Playlist</a>
|
||||
<a href="<?php echo site_url('playlists/generate_random'); ?>" class="btn btn-primary">Générer une playlist aléatoire</a>
|
||||
<h1><br>Mes Playlists</h1>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
|
Loading…
Reference in New Issue
Block a user