<%= form_for @channel, :html => {:method => 'put'} do |c| %>

<%= error_messages_for 'channel', :header_message => t(:try_again), :message => t(:channel_error) %>

<%= fields_for :tags do |t| %> <% end %>
<%= t(:channel_ranking) %> <%= @channel.ranking %>%
<%= t(:channel_id) %> <%= @channel.id %>
<%= t(:channel_name) %> <%= c.text_field :name %>
<%= t(:channel_description) %> <%= c.text_area :description, :cols => 30, :rows => 4 %>
<%= t(:metadata).capitalize %> <%= c.text_area :metadata, :cols => 30, :rows => 4 %>
<%= t(:tags) %> <%= t.text_area :name, :cols => 30, :rows => 2, :value => @channel.list_tags %>
<%= t(:latitude) %> <%= c.text_field :latitude %>
<%= t(:longitude) %> <%= c.text_field :longitude %>
<%= t(:elevation) %> <%= c.text_field :elevation %>
<%= t(:public) %> <%= c.check_box :public_flag %>
<%= t(:channel_url) %> <%= c.text_field :url %>
<%= t(:video_id) %> <%= c.text_field :video_id, :class=>'video_narrow'%> <%= c.radio_button :video_type, 'youtube' %> <%= t(:youtube) %> <%= c.radio_button :video_type, 'vimeo' %> <%= t(:vimeo) %>
<%= t(:field) %> 1 <%= c.text_field :field1, :class => 'field' %>
<%= t(:field) %> 2 <%= c.text_field :field2, :class => 'field' %>
<%= t(:field) %> 3 <%= c.text_field :field3, :class => 'field' %>
<%= t(:field) %> 4 <%= c.text_field :field4, :class => 'field' %>
<%= t(:field) %> 5 <%= c.text_field :field5, :class => 'field' %>
<%= t(:field) %> 6 <%= c.text_field :field6, :class => 'field' %>
<%= t(:field) %> 7 <%= c.text_field :field7, :class => 'field' %>
<%= t(:field) %> 8 <%= c.text_field :field8, :class => 'field' %>
<%= c.submit t(:save_model, model: 'Channel'), class: 'btn btn-primary' %>
<% end %>

<%= t(:channel_clear_message) %>

<%= button_to t(:channel_clear), "/channels/#{@channel.id}/clear", :data => { :confirm => t(:confirm_channel_clear) }, class: 'btn btn-danger' %>

<%= t(:channel_delete_message) %>

<%= button_to t(:delete_model, model: 'Channel'), channel_path(@channel.id), :method => 'delete', :data => { :confirm => t(:confirm_channel_delete) }, class: 'btn btn-danger' %>