Hide delete attachment button when none present
This commit is contained in:
parent
3e5b320a6b
commit
961c50b7e5
1 changed files with 2 additions and 1 deletions
|
@ -23,6 +23,7 @@
|
||||||
= f.input :deposit, as: :string
|
= f.input :deposit, as: :string
|
||||||
= f.input :deposit_credit, as: :string
|
= f.input :deposit_credit, as: :string
|
||||||
= f.input :attachment, as: :file, hint: t('.attachment_hint')
|
= f.input :attachment, as: :file, hint: t('.attachment_hint')
|
||||||
|
- if f.object.attachment_data.present?
|
||||||
= f.input :delete_attachment, as: :boolean
|
= f.input :delete_attachment, as: :boolean
|
||||||
= f.input :note
|
= f.input :note
|
||||||
.form-actions
|
.form-actions
|
||||||
|
|
Loading…
Reference in a new issue