You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
1.1 KiB

  1. .prompt= raw t('.prompt', client_name: "<strong class=\"prompt-highlight\">#{ @pre_auth.client.name }</strong>")
  2. /- if @pre_auth.scopes.count > 0
  3. / .scope-permission-prompt
  4. / %p= t('.able_to')
  5. / %ul.scope-permissions
  6. / - @pre_auth.scopes.each do |scope|
  7. / %li= t scope, scope: [:doorkeeper, :scopes]
  8. .actions
  9. = form_tag oauth_authorization_path, method: :post do
  10. = hidden_field_tag :client_id, @pre_auth.client.uid
  11. = hidden_field_tag :redirect_uri, @pre_auth.redirect_uri
  12. = hidden_field_tag :state, @pre_auth.state
  13. = hidden_field_tag :response_type, @pre_auth.response_type
  14. = hidden_field_tag :scope, @pre_auth.scope
  15. = button_tag t('doorkeeper.authorizations.buttons.authorize'), type: :submit
  16. = form_tag oauth_authorization_path, method: :delete do
  17. = hidden_field_tag :client_id, @pre_auth.client.uid
  18. = hidden_field_tag :redirect_uri, @pre_auth.redirect_uri
  19. = hidden_field_tag :state, @pre_auth.state
  20. = hidden_field_tag :response_type, @pre_auth.response_type
  21. = hidden_field_tag :scope, @pre_auth.scope
  22. = button_tag t('doorkeeper.authorizations.buttons.deny'), type: :submit, class: 'negative'