%= form_for @api_key, url: @api_key.new_record? ? new_admin_api_path(@api_key) : admin_api_path(@api_key), html: { class: "post" } do |f| %> <%= error_messages_for @api_key %>
* <%= ts("Required information") %>
<%= f.submit @api_key.new_record? ? ts("Create API Token") : ts("Update API Token") %>