Page 1 of 1
buttons at the bottom in detail view
Posted: 2020-06-20 07:14
by fgazza
Hi everyone.
I would like to make that the buttons (save, delete, preview ...) always appear at the bottom of a specific table in the detailed view.
Is there any way to do this by working only on the files in the hooks folder?
Thanks!
Fabiano
Re: buttons at the bottom in detail view
Posted: 2020-06-20 07:29
by pbottcher
Hi,
which buttons do you mean, please post a screenshot.
Re: buttons at the bottom in detail view
Posted: 2020-06-20 08:50
by fgazza
Hi and thank for your help!
I mean the group of standard button to save record, update, delete, cancel and print preview (see screenshot).
the ideal would be, when the width of the browser window allows, to have the buttons in line at the bottom of the page and not one below the other. In the case of navigation from a smartphone or if the browser window is narrow, it is better that the buttons are displayed one below the other
Thank you!
Fabiano

- buttons.png (7.39 KiB) Viewed 2742 times
Re: buttons at the bottom in detail view
Posted: 2020-06-20 09:44
by pbottcher
Hi,
isn't this the default behaviour? if you resize your browser (make it small) you will see the buttons go to the bottom of the page.
Re: buttons at the bottom in detail view
Posted: 2020-06-20 10:47
by fgazza
Thank you so much for your help.
I try to explain myself better.
In detail view, in the computer browser (large window) I would like the buttons to appear as in screenshot 1.
In the layout of the detailed view when browsing from a mobile device or with a narrow browser window there is nothing to change because the buttons already appear at the bottom.
I would like to obtain the result shown in screenshot 1 by working only on the files in the hook folder and applying the result only to a specific table.
Thank you!

- screenshot1.png (140.48 KiB) Viewed 2732 times

- screenshot2.png (35.83 KiB) Viewed 2732 times
Re: buttons at the bottom in detail view
Posted: 2020-06-20 17:28
by pbottcher
Hi,
sorry to say that this is quite complicated to achieve.
To put "only" the buttons to the bottom of the page (but still in a column), you may use
Code: Select all
$j('#YOURTABLENAME_dv_form').removeClass('col-md-8 col-lg-10');
$j('#YOURTABLENAME_dv_action_buttons').removeClass('col-md-4 col-lg-2');
in the hooks/YOURRABLENAME-dv.js
Re: buttons at the bottom in detail view
Posted: 2020-06-20 20:14
by fgazza
Ok! Wonderful! I will try it soon! Thanks!!!