app/views/admin/kinney_clips/_form.html.erb in kinney-0.0.3 vs app/views/admin/kinney_clips/_form.html.erb in kinney-0.1.0
- old
+ new
@@ -1,33 +1,40 @@
-<div id="vtt" style="float:right">
- <h2>VTT</h2>
- <div id="vtt_result"></div>
- <textarea rows="10" cols="70"></textarea>
+<div>
+ <div id="vtt" style="float:right;width:40%">
+ <h2>VTT</h2>
+ <div id="vtt_result"></div>
+ <textarea rows="10" cols="30"></textarea>
+ </div>
+ <div style="width:40%">
+ <% if @kinney_clip and !@kinney_clip.filename.blank? %>
+ <%= render :partial => '/kinney/video', :locals => {:clip => @kinney_clip} %>
+ <% else -%>
+ <video width="480" height="272" style="width:100%;height:100%;" poster=""
+ controls="true" preload="true" id="video_preview">
+ <source src="" type="video/webm" />
+ </video>
+ <% end -%>
+ </div>
</div>
-<div style="height:272px; width:480px">
- <% if @kinney_clip and !@kinney_clip.filename.blank? %>
- <%= render :partial => '/kinney/video', :locals => {:clip => @kinney_clip} %>
- <% else -%>
- <video width="480" height="272" style="width:100%;height:100%;" poster=""
- controls="true" preload="true" id="video_preview">
- <source src="" type="video/webm" />
- </video>
- <% end -%>
-</div>
<div style="clear:both">
<%= semantic_form_for [:admin, :kinney, @kinney_clip], :as => 'kinney_clip' do |f| %>
<%= f.inputs do %>
<%= f.input :filename %>
<%= f.input :duration, :label => 'Duration in seconds' %>
<%= f.input :title %>
<%= f.input :interview_date %>
+ <%= f.input :interview_place %>
<%= f.input :description, :input_html => {:rows => 4} %>
<%= f.input :top_pick %>
<%= f.input :featured %>
<%= f.input :topics, :input_html => {:class => 'chzn-select'} %>
<%= f.input :people, :input_html => {:class => 'chzn-select'} %>
- <%= f.input :quotes, :as => :ckeditor %>
+ <%= f.input :interviewers, :input_html => {:class => 'chzn-select'} %>
+ <%= f.input :media_type %>
+ <%= f.input :transcript_text, label: 'Transcript plain text file?' %>
+ <%= f.input :transcript_pdf, label: 'Transcript PDF?' %>
+ <%= f.input :quotes, :as => :html_editor %>
<% end -%>
<%= f.action(:submit) %>
<% end %>
</div>
\ No newline at end of file