about summary refs log tree commit diff
path: root/app/views/oauth/authorizations/new.html.haml
blob: ba5d426f5c284105b21faacca423f2b06ce8cc70 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
.oauth-prompt
  %h2
    Application
    %strong=@pre_auth.client.name
    requests access to your account

  %p
    It will be able to
    = @pre_auth.scopes.map { |scope| t(scope, scope: [:doorkeeper, :scopes]) }.map { |s| "<strong>#{s}</strong>"}.to_sentence.html_safe

= form_tag oauth_authorization_path, method: :post, class: 'simple_form' do
  = hidden_field_tag :client_id, @pre_auth.client.uid
  = hidden_field_tag :redirect_uri, @pre_auth.redirect_uri
  = hidden_field_tag :state, @pre_auth.state
  = hidden_field_tag :response_type, @pre_auth.response_type
  = hidden_field_tag :scope, @pre_auth.scope
  = button_tag t('doorkeeper.authorizations.buttons.authorize'), type: :submit

= form_tag oauth_authorization_path, method: :delete, class: 'simple_form' do
  = hidden_field_tag :client_id, @pre_auth.client.uid
  = hidden_field_tag :redirect_uri, @pre_auth.redirect_uri
  = hidden_field_tag :state, @pre_auth.state
  = hidden_field_tag :response_type, @pre_auth.response_type
  = hidden_field_tag :scope, @pre_auth.scope
  = button_tag t('doorkeeper.authorizations.buttons.deny'), type: :submit, class: 'negative'