From 2e2b485c3969e2a1a464d4bd455cd6e6fbbcd101 Mon Sep 17 00:00:00 2001 From: josemigallas Date: Fri, 11 Oct 2024 12:49:22 +0200 Subject: [PATCH] removes duplicated code in access token form --- .../provider/admin/user/access_tokens/new.html.slim | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/app/views/provider/admin/user/access_tokens/new.html.slim b/app/views/provider/admin/user/access_tokens/new.html.slim index 5b417f9865..be3ace8aaa 100644 --- a/app/views/provider/admin/user/access_tokens/new.html.slim +++ b/app/views/provider/admin/user/access_tokens/new.html.slim @@ -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')