Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into feature/digest...
[akkoma] / lib / pleroma / web / templates / o_auth / o_auth / _scopes.html.eex
1 <div class="scopes-input">
2 <%= label @form, :scope, "Permissions" %>
3
4 <div class="scopes">
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 %>
7 <div class="scope">
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) %>
10 </div>
11 <% end %>
12 </div>
13 </div>