5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-27 16:36:22 +00:00

Merge branch 'issue-17343' into production.panel.sutty.nl

This commit is contained in:
f 2024-10-14 15:20:03 -03:00
commit 2befeec319
No known key found for this signature in database
2 changed files with 16 additions and 12 deletions

View file

@ -32,7 +32,7 @@ module ExceptionHandler
flash[:error] = I18n.t('errors.page_unauthorized') flash[:error] = I18n.t('errors.page_unauthorized')
ExceptionNotifier.notify_exception(exception) ExceptionNotifier.notify_exception(exception, data: { usuarie: current_usuarie.id })
redirect_to site_path(site) redirect_to site_path(site)
end end

View file

@ -1,4 +1,8 @@
.form-check -# TODO: convertir los atributos draft a un tipo
- if attribute == :draft && site.invitade?(current_usuarie)
-# Nada
- else
.form-check
= hidden_field_tag "#{base}[#{attribute}]", '0', id: nil = hidden_field_tag "#{base}[#{attribute}]", '0', id: nil
.custom-control.custom-switch .custom-control.custom-switch
= check_box_tag "#{base}[#{attribute}]", '1', metadata.value, = check_box_tag "#{base}[#{attribute}]", '1', metadata.value,