wlanslovenija / PiplMesh

A social info portal for wireless networks.
http://dev.wlan-si.net/wiki/PiplMesh
Other
40 stars 19 forks source link

Allow staff users to switch/mock location #293

Closed mitar closed 11 years ago

mitar commented 11 years ago

Allow staff users to switch/mock location easily. Maybe there could be additional all present menu entry in the top right menu (next to logout) with drop-down options for staff users. This should be displayed and should work only for staff users.

This could be done with storing special entry into user's session which would override value returned by our nodes API.

If you have other ideas for what this drop-down menu could provide, suggest, implement, or open a ticket.

mitjap commented 11 years ago

I will put drop-down menu in header.html and make all views (that include header.html) inherit new class that can provide all nodes from piplmesh.nodes.get_all_nodes(). Changing this drop-down would switch/mock location the way it is described above.

Is this solution ok?

mitar commented 11 years ago

I will put drop-down menu in header.html

Good.

make all views (that include header.html) inherit new class that can provide all nodes from piplmesh.nodes.get_all_nodes()

Ehm, what? You probably have to learn about context processors.

mitar commented 11 years ago

There is still user feedback missing that mocking is in progress and to which node it is locked. Probably just have to provide initial data to the form.

mitar commented 11 years ago

Check what the view does if form validation fails.