2017-08-17 22:00:37 +05:30
|
|
|
- scopes = local_assigns.fetch(:scopes)
|
|
|
|
- prefix = local_assigns.fetch(:prefix)
|
|
|
|
- token = local_assigns.fetch(:token)
|
|
|
|
|
|
|
|
- scopes.each do |scope|
|
2018-11-08 19:23:39 +05:30
|
|
|
%fieldset.form-group.form-check
|
2019-02-13 22:33:31 +05:30
|
|
|
= check_box_tag "#{prefix}[scopes][]", scope, token.scopes.include?(scope), id: "#{prefix}_scopes_#{scope}", class: "form-check-input qa-#{scope}-radio"
|
2018-11-18 11:00:15 +05:30
|
|
|
= label_tag ("#{prefix}_scopes_#{scope}"), scope, class: 'label-bold form-check-label'
|
2018-11-08 19:23:39 +05:30
|
|
|
.text-secondary= t scope, scope: [:doorkeeper, :scope_desc]
|