1 <div class="scopes-input">
2 <%= label @form, :scope, "Permissions" %>
5 <%= for scope <- @available_scopes do %>
6 <%# Note: using hidden input with `unchecked_value` in order to distinguish user's empty selection from `scope` param being omitted %>
8 <%= checkbox @form, :"scope_#{scope}", value: scope in @scopes && scope, checked_value: scope, unchecked_value: "", name: "authorization[scope][]" %>
9 <%= label @form, :"scope_#{scope}", String.capitalize(scope) %>