2016-12-05 04:19:51 +00:00
|
|
|
- scopes = local_assigns.fetch(:scopes)
|
|
|
|
- prefix = local_assigns.fetch(:prefix)
|
|
|
|
- token = local_assigns.fetch(:token)
|
|
|
|
|
|
|
|
- scopes.each do |scope|
|
2018-06-29 14:34:26 +00:00
|
|
|
%fieldset.form-group.form-check
|
2019-01-16 09:55:06 +00:00
|
|
|
= check_box_tag "#{prefix}[scopes][]", scope, token.scopes.include?(scope), id: "#{prefix}_scopes_#{scope}", class: "form-check-input qa-#{scope}-radio"
|
2018-07-19 22:11:31 +00:00
|
|
|
= label_tag ("#{prefix}_scopes_#{scope}"), scope, class: 'label-bold form-check-label'
|
2020-05-14 00:07:47 +00:00
|
|
|
.text-secondary= t scope, scope: scope_description(prefix)
|