diff --git a/app/views/sections/new.html.erb b/app/views/sections/new.html.erb index e016648..49f3e53 100644 --- a/app/views/sections/new.html.erb +++ b/app/views/sections/new.html.erb @@ -1,13 +1,14 @@

New section

-
data-loop="true" data-end=<%= @lesson.duration_in_seconds %>> +
+ data-loop="true" + data-end=<%= @lesson.duration_in_seconds %> + data-edit="true">
-<%= render "form", section: @section %> - -
- -
- <%= link_to "Back to lesson", lessons_path %> -
+<%= turbo_frame_tag "sections" do %> + <%= render "form", section: @section %> +<% end %>