2016-11-16 07:56:03 +09:00
|
|
|
- content_for :page_title do
|
|
|
|
= t('doorkeeper.authorizations.new.title')
|
|
|
|
|
2022-03-02 00:48:58 +09:00
|
|
|
.form-container.simple_form
|
2016-12-30 00:54:54 +09:00
|
|
|
.oauth-prompt
|
2022-03-02 00:48:58 +09:00
|
|
|
%h3= t('doorkeeper.authorizations.new.title')
|
2016-10-23 02:38:47 +09:00
|
|
|
|
2022-03-02 00:48:58 +09:00
|
|
|
%p= t('doorkeeper.authorizations.new.prompt_html', client_name: content_tag(:strong, @pre_auth.client.name))
|
2016-10-23 02:38:47 +09:00
|
|
|
|
2022-03-02 00:48:58 +09:00
|
|
|
%h3= t('doorkeeper.authorizations.new.review_permissions')
|
2016-10-23 02:38:47 +09:00
|
|
|
|
2022-03-02 00:48:58 +09:00
|
|
|
%ul.permissions-list
|
|
|
|
- grouped_scopes(@pre_auth.scopes).each do |scope|
|
|
|
|
%li.permissions-list__item
|
|
|
|
.permissions-list__item__icon
|
|
|
|
= fa_icon('check')
|
|
|
|
.permissions-list__item__text
|
|
|
|
.permissions-list__item__text__title
|
|
|
|
= t(scope.key, scope: [:doorkeeper, :grouped_scopes, :title])
|
|
|
|
.permissions-list__item__text__type
|
|
|
|
= t(scope.access, scope: [:doorkeeper, :grouped_scopes, :access])
|
|
|
|
|
|
|
|
.actions
|
|
|
|
= form_tag oauth_authorization_path, method: :post 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 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'
|