Skip to content

Commit

Permalink
tracks new
Browse files Browse the repository at this point in the history
  • Loading branch information
michelson committed Aug 13, 2023
1 parent 2b8db62 commit 5994811
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions app/views/tracks/create.turbo_stream.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,19 @@
<% if @track_form.step == "info" %>
<%= form_with model: @track_form, url: tracks_path(), class: 'direct-upload' do |form| %>
<div class="mt-8 sm:mx-auto sm:w-full sm:max-w-xl">
<%= form.text_field :step %>
<%= form.hidden_field :step %>
<%= form.fields_for :tracks do |ff| %>
<div class="min-h-full flex flex-col justify-center py-12 sm:px-6 lg:px-8 border rounded-md">
<%= ff.text_field :audio, value: ff.object.audio.signed_id %>
<%= ff.hidden_field :audio, value: ff.object.audio.signed_id %>
<%= render "basic_info_fields", form: ff %>
</div>
<% end %>
<%= form.submit %>
</div>
<% end %>
<% end %>
<% if @track_form.step == "share" %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/tracks/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
</div>

<div class="my-5">
<%= form.check_box :make_playlist , label: "Make a playlist when multiple files are selected" %>
<% #= form.check_box :make_playlist , label: "Make a playlist when multiple files are selected" %>
<%= form.label :privacy%>
Expand Down

0 comments on commit 5994811

Please sign in to comment.