<% content_for :page_title do %> <%= Spree.t(:edrone_module) %> <% end %> <% content_for :page_actions do %> <% if !@edrones.any? %> <%= button_link_to Spree.t(:integrate_with_edrone), new_object_url, class: "btn-success", icon: 'add', id: 'admin_new_tracker_link' %> <% end %> <% end if can? :create, Spree::Edrone %> <% if @edrones.any? %> <% @edrones.each do |edrone|%> <% end %>
<%= Spree.t(:app_id) %> <%= Spree.t(:app_secret) %> <%= Spree.t(:active) %>
<%= edrone.edrone_app_id %> <%= edrone.edrone_app_secret %> <%= edrone.active ? Spree.t(:say_yes) : Spree.t(:say_no) %> <%= link_to_edit(edrone, no_text: true) if can? :edit, edrone %>
<% else %>
<%= link_to(Spree.t(:integrate_with_edrone), new_object_url) if can? :create, Spree::Edrone %>!
<% end %>