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.
2 jobs for for_testrunner_1 in 0 seconds
Status Job ID Name Coverage
  External
failed ERP5.UnitTest-TestRunner1

02:05:57

failed ERP5.UnitTest-Zope2-ForTestRunner1

02:18:12