5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-18 11:46:22 +00:00

fix: checkbox de bootstrap para recordar la sesión
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
f 2023-04-15 17:25:46 -03:00
parent b82fd37526
commit 11a9874afc
2 changed files with 8 additions and 5 deletions

View 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

View file

@ -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'