Skip to content

Commit

Permalink
removes duplicated code in access token form
Browse files Browse the repository at this point in the history
  • Loading branch information
josemigallas committed Oct 11, 2024
1 parent 09e62e3 commit 2e2b485
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions app/views/provider/admin/user/access_tokens/new.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,7 @@ div class="pf-c-card"
= semantic_form_for @access_token, builder: Fields::PatternflyFormBuilder,
url: [:provider, :admin, :user, @access_token],
html: { class: 'pf-c-form pf-m-limit-width' } do |f|
= f.input :name, as: :patternfly_input,
input_html: { autofocus: true }

= f.input :scopes, as: :patternfly_check_boxes,
collection: @access_token.available_scopes.to_collection_for_check_boxes

= f.input :permission, as: :patternfly_select,
collection: @access_token.available_permissions,
include_blank: false
= render 'form', form: f

= f.actions do
= f.commit_button t('.submit_button_label')

0 comments on commit 2e2b485

Please sign in to comment.