Retire semantic_form_for

Also a buttload of form cleanups...
This commit is contained in:
Henne Vogelsang 2022-02-23 17:52:16 +01:00
parent 350b1ebbbe
commit 81853d1ef9
No known key found for this signature in database
GPG key ID: 97DDB66BDAF8D4D6
136 changed files with 1825 additions and 1441 deletions

View file

@ -6,15 +6,21 @@
%h3.panel-title
Sign in
.panel-body
= semantic_form_for '', method: :post, enctype: 'application/x-www-form-urlencoded', url: @login_url do |f|
= f.input :url, as: :hidden, input_html: { value: @back_url }
= f.input :context, as: :hidden, input_html: { value: @context }
= f.input :proxypath, as: :hidden, input_html: { value: @proxypath }
= f.input :username, input_html: { autofocus: true }
= f.input :password, as: :password
= form_for(@login_url, method: :post, enctype: 'application/x-www-form-urlencoded', id: 'session' do |f|
= f.hidden_field :url, value: @back_url
= f.hidden_field :context, value: @context
= f.hidden_field :proxypath, value: @proxypath
.form-group
= f.label :username, "Username"
%abbr{title: 'This field is required'} *
= f.text_field :username, autofocus: true, required: true, class: 'form-control', placeholder: 'Username'
.form-group
= f.label :password, "Password"
%abbr{title: 'This field is required'} *
= f.password_field :password, required: true, class: 'form-control', placeholder: 'Password'
%p.text-right
= f.action :submit, as: :button, label: 'Sign In', button_html: { class: 'btn btn-success' }
%button{type: 'submit', class: 'btn btn-success'}
Sign In
= render partial: 'devise/shared/help'