mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-18 14:16:22 +00:00
Merge branch 'issue-13113' into panel.sutty.nl
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
commit
cae7775e64
2 changed files with 8 additions and 5 deletions
6
app/views/bootstrap/_custom_checkbox_for_field.haml
Normal file
6
app/views/bootstrap/_custom_checkbox_for_field.haml
Normal file
|
@ -0,0 +1,6 @@
|
|||
- content = t("activerecord.attributes.#{field.object_name}.#{name}")
|
||||
- id = "#{field.object_name}_#{name}"
|
||||
- name = "#{field.object_name}[#{name}]"
|
||||
|
||||
= render 'bootstrap/custom_checkbox', id: id, name: name, content: content, required: local_assigns[:required], value: "1" do
|
||||
= yield
|
|
@ -28,11 +28,8 @@
|
|||
placeholder: t('login.password')
|
||||
- if devise_mapping.rememberable?
|
||||
.form-group
|
||||
= f.check_box :remember_me, aria: { describedby: 'remember-for' }
|
||||
= f.label :remember_me
|
||||
%small.form-text.text-muted#remember-for
|
||||
= t('login.remember_me',
|
||||
remember_for: distance_of_time_in_words(Usuarie.remember_for))
|
||||
= render 'bootstrap/custom_checkbox_for_field', field: f, name: :remember_me do
|
||||
= t('login.remember_me', remember_for: distance_of_time_in_words(Usuarie.remember_for))
|
||||
.actions
|
||||
= f.submit t('.sign_in'),
|
||||
class: 'btn btn-lg btn-block'
|
||||
|
|
Loading…
Reference in a new issue