I’m looking for a reliable way to add an informational banner to the ELN, like “This is just a test instance which will be emptied from time to time, do not store you data here”.
I’ve added a <div>...</div> to the start of the <body> in servers/core-plugins/eln-lims/1/as/webapps/eln-lims/html/index.html, but this breaks the layout in some forms.
Is there a recommended way to present some textual information that is always visible?
I’m sure some views will break if a div is added at the top.
My first idea would be to add it “over”. Usually “top centre” not covering left or right side. On the centre top bar and in wide screens there is nothing.
Additionally it can also be made partially transparent and allow events to bypass to below components.
Thank you! We now use this for the ELN and the Admin-UI, added to the body of the index.html:
<div style="position:fixed; top:0; left:30%; width:40%; height:40pt; background-color:rgba(0, 0, 0, 0); z-index:9999; pointer-events:none;">
<div style="text-align:center; color:red; font-family:sans-serif">
<b>PLAYGROUND - do not store important data!<br/>Everything will be deleted after announcement!</b>
</div>
</div>
Seems to work well and will not block access to other elements, even if the text partially hides them on very small screens.