Skip to content

Commit

Permalink
Add turbo frame to new section
Browse files Browse the repository at this point in the history
  • Loading branch information
mauriciofierrom committed Nov 14, 2023
1 parent e0762be commit 9031460
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions app/views/sections/new.html.erb
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
<h1>New section</h1>

<div class="player" data-controller="player" data-video-id=<%= video_id(@lesson) %> data-loop="true" data-end=<%= @lesson.duration_in_seconds %>>
<div class="player"
data-controller="player"
data-video-id=<%= video_id(@lesson) %>
data-loop="true"
data-end=<%= @lesson.duration_in_seconds %>
data-edit="true">
<div id="player"></div>
</div>

<%= render "form", section: @section %>

<br>

<div>
<%= link_to "Back to lesson", lessons_path %>
</div>
<%= turbo_frame_tag "sections" do %>
<%= render "form", section: @section %>
<% end %>

0 comments on commit 9031460

Please sign in to comment.