BigW Consortium Gitlab

_scopes_form.html.haml 377 Bytes
Newer Older
1 2 3 4 5
- scopes = local_assigns.fetch(:scopes)
- prefix = local_assigns.fetch(:prefix)
- token = local_assigns.fetch(:token)

- scopes.each do |scope|
6 7 8 9
  %fieldset
    = check_box_tag "#{prefix}[scopes][]", scope, token.scopes.include?(scope), id: "#{prefix}_scopes_#{scope}"
    = label_tag "#{prefix}_scopes_#{scope}", scope
    %span= "(#{t(scope, scope: [:doorkeeper, :scopes])})"