thingspeak/app/views/channels/_import.html.erb

52 lines
1.8 KiB
Plaintext
Raw Permalink Normal View History

<div class="FL">
<h3><%= t(:import) %></h3>
<%= t(:upload_select) %>
2014-03-14 00:16:35 +01:00
<br>
<%= form_for :upload, :url => upload_channel_path(@channel), :html => { :multipart => true } do |f| %>
<%= f.file_field :csv %>
2014-03-14 00:16:35 +01:00
<br><br>
<%= t(:time_zone) %>
<%= time_zone_select 'feed', 'time_zone', nil, :default => 'UTC' %>
2014-03-14 00:16:35 +01:00
<br><br>
2014-08-05 20:44:39 +02:00
<%= f.submit t(:upload), data: { disable_with: t(:uploading) }, class: 'btn btn-primary' %>
<% end %>
<br><br>
<h3><%= t(:export) %></h3>
<%= t(:download_feeds) %>
<br><br>
2014-08-05 20:44:39 +02:00
<%= button_to t(:download), "#{@ssl_api_domain}stream/channels/#{@channel.id}/feeds?api_key=#{@channel.write_api_key}", class: 'btn btn-primary' %>
</div>
2014-02-18 01:51:30 +01:00
<div id="sidebar_old" >
<ul>
<li>
2014-02-18 01:51:30 +01:00
2014-02-28 19:57:58 +01:00
<div class="helplink">(<a target="_blank" href="/docs/channels#update"><%= t(:help_options) %></a>)</div>
<h2><%= t(:help_channel_update) %></h2>
<%= t(:help_channel_post) %>
2015-01-09 19:57:54 +01:00
<div class="code"><%= "#{@ssl_api_domain}update" %></div>
<%= t(:help_channel_post_example) %>
2015-01-09 19:57:54 +01:00
<div class="code"><%= "#{@ssl_api_domain}update?key=#{@key}&field1=0" %></div>
2014-03-14 00:16:35 +01:00
<br><br>
2014-02-18 01:51:30 +01:00
2014-02-28 19:57:58 +01:00
<div class="helplink">(<a target="_blank" href="/docs/channels#get_feed"><%= t(:help_options) %></a>)</div>
<h2><%= t(:help_channel_feed) %></h2>
<%= t(:help_channel_view) %>
2014-03-14 00:16:35 +01:00
<br>
2015-01-09 19:57:54 +01:00
<div class="code"><%= link_to "#{@ssl_api_domain}channels/#{@channel.id}/feed.json?key=#{@key}", "#{@api_domain}channels/#{@channel.id}/feed.json?key=#{@key}", :target => '_blank' %></div>
2014-03-14 00:16:35 +01:00
<br>
2014-02-18 01:51:30 +01:00
</li>
<li>
2014-02-28 19:57:58 +01:00
<div class="helplink">(<a target="_blank" href="/docs/channels#importer"><%= t(:help_options) %></a>)</div>
<h2><%= t(:help) %></h2>
<%= t(:help_channel_import) %>
</li>
</ul>
</div>
2014-02-18 01:51:30 +01:00