dms: fix hidden buttons on PDF preview

Instead of disabling in javascript, which cause the button to be visible
for a few milliseconds, disable directly in the HTML file.

Do not hide "document properties", because it can be useful and it does
not hurt and "edit images" because we don't hide the buttons to edit
annotations either, so this is consistent.
12 jobs for fix/csv-download in 0 seconds
Status Job ID Name Coverage
  External
passed ERP5.CodingStyleTest-Master

01:26:12

failed ERP5.UnitTest-Master

02:03:22

failed ERP5.UnitTest-Zope2

02:18:54

passed SlapOS.Eggs.UnitTest-Master.Python2

00:14:05

passed SlapOS.Eggs.UnitTest-Master.Python3

00:15:59

failed Wendelin.UnitTest-Master

00:51:50

passed ERP5.CodingStyleTest-Master

passed ERP5.UnitTest-Master

failed ERP5.UnitTest-Zope2

passed SlapOS.Eggs.UnitTest-Master.Python2

00:14:48

passed SlapOS.Eggs.UnitTest-Master.Python3

failed Wendelin.UnitTest-Master