diff --git a/app/views/clips/_form.html.erb b/app/views/clips/_form.html.erb deleted file mode 100644 index c0fa7cb..0000000 --- a/app/views/clips/_form.html.erb +++ /dev/null @@ -1,23 +0,0 @@ -<%= form_with model: clip do |form| %> -
| <%= form.label :title %> | -<%= form.text_field :title %> | -
| <%= form.label :video %> | -<%= form.file_field :video, :accept => 'video/quicktime,video/mp4' %> | -
| <%= form.label :category %> | -<%= form.select :category_id, Category.all.collect{ |t| [ t.name, t.id ] }%> | -
| <%= form.label :tag %> | -<%= collection_select(:clip, :tag_ids, Tag.all, :id, :name, {}, { :multiple => true } )%> | -
| <%= form.submit %> | -|
| <%= form.label :title %> | +<%= form.text_field :title %> | +
| Replace <%= form.label :video %> | +<%= form.file_field :video, :accept => 'video/quicktime,video/mp4' %> | +
| <%= form.label :category %> | +<%= form.select :category_id, Category.all.collect{ |t| [ t.name, t.id ] }%> | +
| <%= form.label :tag %> | +<%= collection_select(:clip, :tag_ids, Tag.all, :id, :name, {}, { :multiple => true } )%> | +
| <%= form.submit %> | +|
| <%= form.label :title %> | +<%= form.text_field :title %> | +
| <%= form.label :video %> | +<%= form.file_field :video, :accept => 'video/quicktime,video/mp4' %> | +
| <%= form.label :category %> | +<%= form.select :category_id, Category.all.collect{ |t| [ t.name, t.id ] }%> | +
| <%= form.label :tag %> | +<%= collection_select(:clip, :tag_ids, Tag.all, :id, :name, {}, { :multiple => true } )%> | +
| <%= form.submit %> | +|
| + <%= video_tag @clip.video, :controls => true%> + | + <% end %> +
+
|
+ ||||||||||||