4f0354303f
Simplify channels & user controllers and models, moving code to the models. Remove catch-all route and ensure all actions are specified, fixing url paths. Change clone to dup in feed_controller as using clone seems to affect the cloned object (problem only in ruby 1.9.3?)
17 lines
548 B
Plaintext
17 lines
548 B
Plaintext
<h2>
|
|
<%= link_to t(:channels), channels_path %> »
|
|
<%= link_to channel_path(@channel.id) do %> <%= t(:channel) %> <%= @channel.id %><% end %> »
|
|
<%= t(:import) %>
|
|
</h2>
|
|
|
|
<%= t(:upload_select) %>
|
|
<br /><br />
|
|
<%= form_for :upload, :url => upload_channel_path(@channel), :html => { :multipart => true } do |f| %>
|
|
<%= f.file_field :csv %>
|
|
<br /><br />
|
|
<%= t(:time_zone) %>
|
|
<%= time_zone_select 'feed', 'time_zone', nil, :default => 'UTC' %>
|
|
<br /><br />
|
|
<%= f.submit t(:upload), :disable_with => t(:uploading) %>
|
|
<% end %>
|