2016-12-04 23:19:51 -05:00
|
|
|
- scopes = local_assigns.fetch(:scopes)
|
|
|
|
- prefix = local_assigns.fetch(:prefix)
|
|
|
|
- token = local_assigns.fetch(:token)
|
|
|
|
|
|
|
|
- scopes.each do |scope|
|
2018-06-29 10:34:26 -04:00
|
|
|
%fieldset.form-group.form-check
|
|
|
|
= check_box_tag "#{prefix}[scopes][]", scope, token.scopes.include?(scope), id: "#{prefix}_scopes_#{scope}", class: 'form-check-input'
|
2018-07-19 18:11:31 -04:00
|
|
|
= label_tag ("#{prefix}_scopes_#{scope}"), scope, class: 'label-bold form-check-label'
|
2018-06-29 10:34:26 -04:00
|
|
|
.text-secondary= t scope, scope: [:doorkeeper, :scope_desc]
|