mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 16:16:21 +00:00
feat: no mostrar el campo borrador a les invitades #17343
This commit is contained in:
parent
78f757d429
commit
fc39a780ff
1 changed files with 15 additions and 11 deletions
|
@ -1,12 +1,16 @@
|
||||||
.form-check
|
-# TODO: convertir los atributos draft a un tipo
|
||||||
= hidden_field_tag "#{base}[#{attribute}]", '0', id: nil
|
- if attribute == :draft && site.invitade?(current_usuarie)
|
||||||
.custom-control.custom-switch
|
-# Nada
|
||||||
= check_box_tag "#{base}[#{attribute}]", '1', metadata.value,
|
- else
|
||||||
class: "custom-control-input #{invalid(post, attribute)}",
|
.form-check
|
||||||
aria: { describedby: id_for_help(attribute) },
|
= hidden_field_tag "#{base}[#{attribute}]", '0', id: nil
|
||||||
autofocus: autofocus
|
.custom-control.custom-switch
|
||||||
= label_tag "#{base}_#{attribute}", post_label_t(attribute, post: post),
|
= check_box_tag "#{base}[#{attribute}]", '1', metadata.value,
|
||||||
class: 'custom-control-label'
|
class: "custom-control-input #{invalid(post, attribute)}",
|
||||||
|
aria: { describedby: id_for_help(attribute) },
|
||||||
|
autofocus: autofocus
|
||||||
|
= label_tag "#{base}_#{attribute}", post_label_t(attribute, post: post),
|
||||||
|
class: 'custom-control-label'
|
||||||
|
|
||||||
= render 'posts/attribute_feedback',
|
= render 'posts/attribute_feedback',
|
||||||
post: post, attribute: attribute, metadata: metadata
|
post: post, attribute: attribute, metadata: metadata
|
||||||
|
|
Loading…
Reference in a new issue