Skip to content

Commit

Permalink
Add default values to the audio format selects
Browse files Browse the repository at this point in the history
  • Loading branch information
radical-ube committed Oct 7, 2024
1 parent c77a815 commit 32bf83d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/views/feeds/_form_audio_format.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,28 @@

<div class="col-3 <%= display_bitrate(feed) %>" data-toggle-field-target="field" field="mp3 mp4">
<div class="form-floating input-group">
<%= form.select :audio_bitrate, audio_bitrate_options %>
<%= form.select :audio_bitrate, options_for_select(audio_bitrate_options, 128) %>
<%= form.label :audio_bitrate %>
</div>
</div>

<div class="col-3 <%= display_bitdepth(feed) %>" data-toggle-field-target="field" field="wav flac">
<div class="form-floating input-group">
<%= form.select :audio_bitdepth, audio_bitdepth_options %>
<%= form.select :audio_bitdepth, options_for_select(audio_bitdepth_options, 32) %>
<%= form.label :audio_bitdepth %>
</div>
</div>

<div class="col-3 <%= display_audio_format(feed) %>" data-toggle-field-target="field" field="mp3 wav flac mp4">
<div class="form-floating input-group">
<%= form.select :audio_channel, audio_channel_options %>
<%= form.select :audio_channel, options_for_select(audio_channel_options, 2) %>
<%= form.label :audio_channel %>
</div>
</div>

<div class="col-3 <%= display_audio_format(feed) %>" data-toggle-field-target="field" field="mp3 wav flac mp4">
<div class="form-floating input-group">
<%= form.select :audio_sample, audio_sample_options %>
<%= form.select :audio_sample, options_for_select(audio_sample_options, 44100) %>
<%= form.label :audio_sample %>
</div>
</div>
Expand Down

0 comments on commit 32bf83d

Please sign in to comment.