<%= t "user_api_key.title" %>

<% if @no_trust_level %>

<%= t("user_api_key.no_trust_level") %>

<% elsif @generic_error %>

<%= t("user_api_key.generic_error") %>

<% else %>

<%= t("user_api_key.description", application_name: @application_name) %>

<%= form_tag(user_api_key_path) do %> <%= hidden_field_tag 'application_name', @application_name %> <%= hidden_field_tag 'access', @access %> <%= hidden_field_tag 'nonce', @nonce %> <%= hidden_field_tag 'client_id', @client_id %> <%= hidden_field_tag('auth_redirect', @auth_redirect) if @auth_redirect %> <%= hidden_field_tag 'push_url', @push_url %> <%= hidden_field_tag 'public_key', @public_key%> <%= hidden_field_tag 'scopes', @scopes%> <%= submit_tag t('user_api_key.authorize'), class: 'btn btn-primary' %> <% end %>
<% end %>