Update Bootstrap from v4 to v5

This commit is contained in:
Sebastian Serth
2022-08-11 19:10:49 +02:00
parent 6803efc023
commit 8a055a0d68
84 changed files with 559 additions and 566 deletions

View File

@@ -1,12 +1,12 @@
= form_for(@consumer) do |f|
= render('shared/form_errors', object: @consumer)
.form-group
= f.label(:name)
.mb-3
= f.label(:name, class: 'form-label')
= f.text_field(:name, class: 'form-control', required: true)
.form-group
= f.label(:oauth_key)
.mb-3
= f.label(:oauth_key, class: 'form-label')
= f.text_field(:oauth_key, class: 'form-control', required: true)
.form-group
= f.label(:oauth_secret)
.mb-3
= f.label(:oauth_secret, class: 'form-label')
= f.text_field(:oauth_secret, class: 'form-control', required: true)
.actions = render('shared/submit_button', f: f, object: @consumer)

View File

@@ -5,4 +5,4 @@ h1
= row(label: 'consumer.name', value: @consumer.name)
- %w[oauth_key oauth_secret].each do |attribute|
= row(label: "consumer.#{attribute}") do
= content_tag(:input, nil, class: 'form-control', readonly: true, value: @consumer.send(attribute))
= content_tag(:input, nil, class: 'form-control bg-secondary', readonly: true, value: @consumer.send(attribute))