5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 10:06:23 +00:00

feat: no mostrar el campo borrador a les invitades #17343

This commit is contained in:
f 2024-09-06 16:11:20 -03:00
parent 78f757d429
commit fc39a780ff
No known key found for this signature in database

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
.custom-control.custom-switch
= check_box_tag "#{base}[#{attribute}]", '1', metadata.value,