<%= content_tag :div, class: "modal modal-right", id: "edit_broadcast_recording_modal", aria: { labelledby: "modalLabel", hidden: true }, role: "dialog", tabindex: -1 do %>
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="modalLabel">Edit Broadcast Recording</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <%= bootstrap_form_with model: [broadcast.project, broadcast, recording], layout: :horizontal, label_col: "col-3", control_col: "col-9" do |form| %>
        <div class="modal-body">
          <div id="broadcast_recording_fields">
            <%= form.text_field :name %>
            <%= form.text_area :description %>
          </div>
        </div>
        <div class="modal-footer">
          <%= form.button "Close", class: "btn btn-secondary", data: { dismiss: "modal" } %>
          <%= form.submit "Update Broadcast Recording", class: "btn btn-primary", data: { disable_with: t("shared.disable_with") } %>
        </div>
      <% end %>
    </div>
  </div>
<% end %>
