<% content_for(:page_title) do %> YiffyAPI - Edit API Key <% end %> <%= render partial: "yiff_rest/home/head" %> <%= render partial: "nav" %>
<%= simple_form_for(@apikey, url: yiff_rest_apikey_path(@apikey)) do |f| %> <%= f.input(:application_name, label: "Application Name") %> <%= f.input(:usage) %> <%= f.input(:limit_long, input_html: { min: 0 }, label: "Limit (Long)") %> <%= f.input(:window_long, input_html: { min: 0 }, label: "Window (Long)") %> <%= f.input(:limit_short, input_html: { min: 0 }, label: "Limit (Short)") %> <%= f.input(:window_short, input_html: { min: 0 }, label: "Window (Short)") %> <%= f.input(:bulk_limit, input_html: { min: 0 }, label: "Bulk Limit") %> <%= f.input(:owner_id, label: "Owner ID") %>
<%= f.input(:flags_images, as: :boolean, label: "Images Access") %> <%= f.input(:flags_thumbs, as: :boolean, label: "Thumbs Access") %> <%= f.input(:flags_shortener, as: :boolean, label: "Shortener Access") %> <%= f.input(:flags_images_bulk, as: :boolean, label: "Images Bulk Access") %>
<%= f.button(:submit, name: nil, label: "Save Changes") %> <% end %>