<%= t(:api_key_write) %>

<%= @write_key %>

<%= button_to t(:api_key_write_new), channel_api_keys_path(@channel, :write => 1), :data => { :confirm => t(:confirm_new_api_key) }, class: 'btn btn-warning btn-sm' %>

<%= t(:api_key_read) %>

<% @read_keys.each do |read_key| %>
<%= t(:api_key_key) %>: <%= read_key %>
<%= t(:note) %>: <%= form_for read_key, :as => :api_key, :url => channel_api_key_path(@channel, read_key), :html => {:method => 'put'} do |f| %> <%= f.text_area :note, :cols => 30, :rows => 4 %>
<%= f.submit t(:note_save), class: 'btn btn-primary btn-sm btn-margin' %>
<% end %> <%= button_to t(:api_key_delete), channel_api_key_path(@channel, read_key), :method => 'delete', :data => { :confirm => t(:confirm_read_key_delete) }, class: 'btn btn-danger btn-sm btn-margin' %>


<% end %> <%= button_to t(:api_key_read_new), channel_api_keys_path(@channel, :write => 0), class: 'btn btn-warning btn-sm' %>