fact-project / shifthelper_webinterface

The shifthelper web interface
MIT License
2 stars 0 forks source link

"Are you sure" confirmation for "ready for shutdown" #41

Open dneise opened 6 years ago

dneise commented 6 years ago

Before the parker mode, we allowed only the shifter to be "ready for shutdown". Now in SH v.1.3.0 we allow everybody to be ready for shutdown.

Adrian fears that somebody might in the morning accidentally click "ready for shutdown".

Is it easily possible to have a "confirmation" popup? So that somebody who pressed "ready for shutdown" will get a: "By pressing this button, you swar that you will observe the shutdown in ~30 minutes and fill the checklist Are you sure you want that? -Yes, -No"

I this is really needed ... well I do not know ..

maxnoe commented 6 years ago

Yes, this is pretty easy using bootsrap's "modals".

Documented here: https://getbootstrap.com/docs/4.0/components/modal/

In action here: https://cloud.e5.physik.tu-dortmund.de/pizza/ (Click "Alle Bestellungen löschen")