app/views/garage/docs/resources/console.html.haml in the_garage-2.2.0 vs app/views/garage/docs/resources/console.html.haml in the_garage-2.3.0
- old
+ new
@@ -35,11 +35,16 @@
= form_tag authenticate_resources_path, :method => :post, :id => "oauth-authenticate" do
= hidden_field_tag :authenticity_token, form_authenticity_token
= hidden_field_tag :return_to, request.fullpath
.modal-body
- Garage::TokenScope.revealed_scopes.each do |scope|
- = check_box_tag "scopes[]", scope, :selected => true
- = scope
+ %label
+ = check_box_tag "scopes[]", scope, { :selected => true }, :class => 'token-scope-checkbox'
+ = scope
%br
.modal-footer
+ %label
+ = check_box_tag nil, nil, { :selected => true }, :class => 'token-scope-check-all'
+ Check all
+ %br
= button_tag "Close", :class => "modal-close"
= submit_tag "Authenticate"