Skip to content

Commit

Permalink
Fixup readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
cavis committed May 10, 2024
1 parent 51b7339 commit 5640ba6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/views/episodes/_form_feeds.html.erb
Expand Up @@ -3,10 +3,11 @@
<strong><%= t(".title") %>:</strong>
</p>

<%= form.collection_check_boxes(:feed_ids, episode.podcast.feeds.tab_order, :id, :friendly_title) do |b| %>
<% disabled = !policy(episode).create_or_update? %>
<%= form.collection_check_boxes(:feed_ids, episode.podcast.feeds.tab_order, :id, :friendly_title, {}, disabled: disabled) do |b| %>
<div class="form-check">
<%= b.check_box(class: "form-check-input") %>
<%= b.label(class: "form-check-label") { b.text } %>
<%= b.label(class: "form-check-label") { b.text } %>
</div>
<% end %>
<% end %>

0 comments on commit 5640ba6

Please sign in to comment.