Skip to content

Commit

Permalink
add button
Browse files Browse the repository at this point in the history
  • Loading branch information
BlazingRockStorm committed Aug 20, 2024
1 parent dfe990a commit 346418d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/views/admin/songs/_form.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,13 @@

= form.fields_for :artists_songs do |artists_song_form|
.mb-3
= artists_song_form.label 'Main Artist', class: 'form-label'
= artists_song_form.label 'Artist', class: 'form-label'
= artists_song_form.select :artist_id, Artist.all.collect {|artist| [ artist.name, artist.id ] }, {}, class: 'form-control'
= artists_song_form.select :artist_type, ['main','featuring'], {}, class: 'form-control'

= button_tag 'Add Featuring Artist', type: 'button', class: 'btn btn-link mb-3'
= button_tag 'Remove Featuring Artist', type: 'button', class: 'btn btn-secondary mb-3'

.mb-3
= form.label :genre_id, class: 'form-label'
= form.select :genre_id, Genre.all.collect {|genre| [ genre.name, genre.id ] }, {}, class: 'form-control'
Expand Down

0 comments on commit 346418d

Please sign in to comment.